It appears you have not registered with our community. To register please click here ...

Author Topic: [How To] Change Boot Sequence in GRUB.  (Read 2044 times)

zelo

  • Super Moderator
  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 264
  • Karma: +10/-0
    • ICQ Messenger - 233717
    • MSN Messenger - webmaster@zelo.com
    • Yahoo Instant Messenger - zelo@yahoo.com
    • View Profile
    • http://www.zelo.com
    • Email
[How To] Change Boot Sequence in GRUB.
« on: January 27, 2007, 04:22:12 PM »
For a lot of us who dual/tri/quad boot our machines we use GRUB as our Boot Loader. Sometimes the sequence that GRUB boots our machines is not what we want.

I have a machine that dual-boots Windows/MEPIS. I have a Windows network setup and need to have Windows boot instead of MEPIS on a reboot/power failure etc...

Under ROOT privileges:

Open Text editor (eg. KWrite)
Open /boot/grub/menu.lst

You will then see something close to this...

[INDENT]title MEPIS at sdb2, newest kernel
root (hd1,1)
kernel /boot/vmlinuz root=/dev/sdb2 nomce quiet vga=791
boot

title MEPIS at sdb2, older kernel
root (hd1,1)
kernel /boot/vmlinuz.old root=/dev/sdb2 nomce quiet vga=791
boot

title MEPIS at sdb2, kernel 2.6.15-27-desktop64-smp
root (hd1,1)
kernel /boot/vmlinuz-2.6.15-27-desktop64-smp root=/dev/sdb2 nomce quiet vga=791
boot

title Windows at sda1
rootnoverify (hd0,0)
chainloader +1

title Windows at sda5
rootnoverify (hd0,2)
chainloader +1

title MEMTEST
kernel /boot/memtest86+.bin[/INDENT]


Keep the three lines together and move them where you need them. In my case it was this:
[INDENT]
gfxmenu /boot/grub/message

title Windows at sda1
rootnoverify (hd0,0)
chainloader +1

title MEPIS at sdb2, newest kernel
root (hd1,1)
kernel /boot/vmlinuz root=/dev/sdb2 nomce quiet vga=791
boot

title MEPIS at sdb2, older kernel
root (hd1,1)
kernel /boot/vmlinuz.old root=/dev/sdb2 nomce quiet vga=791
boot

title MEPIS at sdb2, kernel 2.6.15-27-desktop64-smp
root (hd1,1)
kernel /boot/vmlinuz-2.6.15-27-desktop64-smp root=/dev/sdb2 nomce quiet vga=791
boot



title Windows at sda5
rootnoverify (hd0,2)
chainloader +1

title MEMTEST
kernel /boot/memtest86+.bin[/INDENT]

As with any MBR (master boot record) be careful what you do and make sure to back up before you make any changes.

 

Related Topics

  Subject / Started by Replies Last post
1 Replies
1879 Views
Last post August 03, 2005, 11:44:55 AM
by adb22791
0 Replies
1743 Views
Last post January 20, 2006, 08:14:15 AM
by silmas
1 Replies
1224 Views
Last post January 20, 2006, 12:44:30 PM
by zelo
0 Replies
2111 Views
Last post January 10, 2007, 10:33:51 PM
by dynaweb
0 Replies
2849 Views
Last post January 30, 2007, 06:11:48 PM
by dynaweb