LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   GRUB multiboot: how to change the default boot system 4 one boot (https://www.linuxquestions.org/questions/linux-software-2/grub-multiboot-how-to-change-the-default-boot-system-4-one-boot-734638/)

skipidar 06-21-2009 07:55 PM

GRUB multiboot: how to change the default boot system 4 one boot
 
Hello!

First the Rules of the Game:

I have a Barebone, which i wanna use as a Server. On this Server i have 2 OperatingSystems installed

1. Debian, Lenny + GRUB
2. Windows Server



Problem:

There is no Keyboard attached to the Server, im remote controlling it from the desktop (with NX Machine).

The default System in GRUB is Linux, to boot Windows Server i can simply change the "menu.lst", and reboot,
but from Windows menu.lst is unreachable and on every reboot Windows will be starting, so i can't get back to Linux.



Solution?:

Is there a way to change the GRUB default start System once,
so i can reboot, get into Windows, but on next reboot the default OS in GRUB should be Linux again?

kilgoretrout 06-22-2009 02:41 PM

Yes, you can do that with the "grub-reboot" command executed as root. In your example Debian is the default and listed as entry 1 in your menu.lst config file with windows listed as entry 2. To tell grub to boot entry 2 on reboot while in entry 1, i.e. Debian, run the following command as root:

# grub-reboot 2

It should be that simple.

skipidar 06-22-2009 05:27 PM

Quote:

Originally Posted by kilgoretrout (Post 3582597)
Yes, you can do that with the "grub-reboot" command executed as root. In your example Debian is the default and listed as entry 1 in your menu.lst config file with windows listed as entry 2. To tell grub to boot entry 2 on reboot while in entry 1, i.e. Debian, run the following command as root:

# grub-reboot 2

It should be that simple.

Thank you, I felt - there should be a native solution like that in GRUB.


All times are GMT -5. The time now is 03:38 PM.