About nixCraft

Topics

Force Grub to Reboots into the specified OS

Posted by Vivek Gite [Last updated: June 15, 2007]

Well these days multi-booting is common. GNU GRUB is a multiboot boot-loader software package from the GNU project. I have three operating system installed at work:
* Debian Linux

* FreeBSD 6.0

* Windows XP

As per my requirements, I keep rebooting into different oses. Recently I discovered grub-reboot command. As name suggest it reboots into the specified OS entry in Grub configuration file (menu.lst or grub.conf).

Syntax:
grub-reboot entry [options to grub]

Where,

For example, if you wish to reboot in FreeBSD then you can type command (3 is entry for FreeBSD):
# grub-reboot 3
This is also useful to force remote computer to reboot in specific OS over ssh session.

Read the man page of grub and grub-reboot for more information.

Tell us how we're doing: Please answer a few questions about your experience to help us improve nixCraft.

You may also be interested in other helpful articles:

Discussion on This Article:

  1. Joackim Says:

    I have installed fedora 6 on my computer. I would like to Install windows Xp so that i will be dual booting. I am, however unable to boot from Windows disks. i have tried to remove the partitions with Gparted and SystemrescueCD but it will still not boot Windows. what should I do?

  2. anthropo Says:

    hello, it would be helpfull if you add the information that you must

    1) change the traditionnal ‘default 0′ by ‘default saved’
    2) force, in the entry you want to choose, savedefault 0 in order to re-initialise the number which is saved

    example :

    ### END DEBIAN AUTOMAGIC KERNELS LIST

    # Windows 98 Boot avec Ghost
    title Norton Ghost - Sauvegardes

    root (hd0,0)
    chainloader +1
    savedefault 0
    boot

    thanks a lot for this post

Leave a Reply

We encourage your comments, and suggestions. But please stay on topic, be polite, and avoid spam. Thank you very much for stopping by our site!

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word

Copyright © 2004-2008 nixCraft. All rights reserved - TOS/Disclaimer - Privacy policy - Sitemap - Powered by Open source software.