Skip to contentSkip to conversation

Set the menu choice for next reboot without access to conf file?

DISCUSSION David Mathog 1 participant 1 message Jul 30, 2008

lore
Share & tools
lore
#0 lore raw
Quoted 16 lines · Colin D Bennett
Quoted 13 lines · On Wed, 30 Jul 2008 15:25:11 -0700 "David Mathog" <[email protected]> wrote:

We have some systems which are remotely administered and dual boot linux and Windows. Under linux there is access to the grub config file, but under Windows there is not. The default grub menu option boots Windows.

On linux

grub-set-default 1

will tell grub to use the 2nd menu option (and so boot linux instead of Windows)) only for the next boot, so long as the grub config file is appropriately configured with "default saved".

Quoted 6 lines
Quoted 4 lines

If this command were applied from Windows would "grub-set-default" require access to the grub config file, or does grub-set-default just store an integer somewhere in the MBR, or elsewhere in the first disk track?

Are you using GRUB 2 or GRUB legacy (0.9x)?

Grub legacy. I would consider going to Grub 2 if it provided a way to "reboot <menu option #>" easily from both Linux and Windows, without Windows requiring access to the config file.

Thanks,

David Mathog
[email protected]
Manager, Sequence Analysis Facility, Biology Division, Caltech