Reboot from CLI to selective partitions

From openSUSE

applicable to openSUSE-10.x and 11.0

Contents

Symptom

You wish to reboot directly to a specific boot partition, over-riding (for this one boot) the default grub boot settings (Similar to what can be done from Kmenu restart).

Cause

You do not have access to the GUI, and need to reboot directly to a specific boot partition, over-riding (for this one boot) the default grub boot settings.

Solution

Open a konsole and then type "su" to get root permissions. Then type "grubonce" to get boot options, followed by "grubonce" again with the specific option number, followed again by the "shutdown -r" command, which then it will reboot to the exact OS that you specified. .... ie something like:

Example

 oldcpu@stonehenge01:~> su
 Password:
 stonehenge01:/home/oldcpu # grubonce
 0: SUSE Linux 10.1
 1: Windows
 2: Floppy
 3: Failsafe -- SUSE Linux 10.1
 stonehenge01:/home/oldcpu # grubonce 1
 stonehenge01:/home/oldcpu # shutdown -r now

After which the PC stonehenge01 immediately boots to Windows, with no grubmenu option. After rebooting from MS-Windows, the grub menu is back.

Links

  • NIL

Author: Oldcpu, Feathermonkey




.