ZachSchneider [dot] com
  • Facebook
  • Google
  • Twitter
  • Home
  • About Me
  • Terms of Use
  • Archive
  • Sitemap
Home» Geek » Editing Grub boot menu

Editing Grub boot menu

Posted on July 9, 2008 by Zach in Geek, How to..., Linux, Software, Windows - No Comments

Editing /boot/grub/menu.lst to change the GRUB boot menu

Here’s a helpful reference. And here’s what I did:

The GRUB boot menu configuration is in the file
/boot/grub/menu.ls

1. backup menu.ls:
sudo cp /boot/grub/menu.lst /boot/grub/menu.lst-backup

2. edit menu.ls:
sudo gedit /boot/grub/menu.lst

3. Move the paragraph with the WinXP options up the list.

4. Change default to 1 (was 0)
default 1

5. comment out the lines about “Other operating systems“

So now I have the following options when booting:

  • Microsoft Windows XP Professional
  • Ubuntu, kernel 2.6.17-10-generic
  • Ubuntu, kernel 2.6.17-10-generic (recovery mode)
  • Ubuntu, memtest86+

…and the second option is automatically selected and boots-up after 10 seconds if I don’t do anything.

Here is the contents of the resulting file (showing only the uncommented lines)

default 1

timeout 10

title Microsoft Windows XP Professional
root (hd0,1)
savedefault
makeactive
chainloader +1

title Ubuntu, kernel 2.6.17-10-generic
root (hd0,4)
kernel /boot/vmlinuz-2.6.17-10-generic root=/dev/sda5 ro quiet splash
initrd /boot/initrd.img-2.6.17-10-generic
quiet
savedefault
boot

title Ubuntu, kernel 2.6.17-10-generic (recovery mode)
root (hd0,4)
kernel /boot/vmlinuz-2.6.17-10-generic root=/dev/sda5 ro single
initrd /boot/initrd.img-2.6.17-10-generic
boot

title Ubuntu, memtest86+
root (hd0,4)
kernel /boot/memtest86+.bin
quiet
boot

Search

Facebook

Tags

Apache Apple bar Beer Bill Gates cheat sheet Chicago Code comic dating Download Day Election 2008 Firefox 3 flash Fun Geek Hackerspace How to... Internet Explorer Life Linux mac Microsoft Movies MySQL Nerd News PHP pickup lines politics quote Software Tech Twitter ubuntu virus vote Web Dev Web Development Windows Wine women Wordpress writings YouTube

Archives

  • December 2011
  • October 2011
  • September 2011
  • July 2011
  • May 2011
  • April 2011
  • January 2011
  • September 2010
  • August 2010
  • June 2010
  • May 2010
  • March 2010
  • November 2009
  • October 2009
  • September 2009
  • August 2009
  • July 2009
  • June 2009
  • May 2009
  • April 2009
  • March 2009
  • February 2009
  • January 2009
  • December 2008
  • November 2008
  • October 2008
  • September 2008
  • August 2008
  • July 2008
  • June 2008
  • May 2008
  • April 2008
  • March 2008
  • February 2008
  • January 2008
  • December 2007
  • November 2007
  • October 2007
  • September 2007
  • August 2007
  • July 2007
  • June 2007
  • May 2007
  • March 2007
  • February 2007

(c) 2012 ZachSchneider [dot] com