[GRUB] Making Windows number 1 in boot list


Recommended Posts

I just installed Ubuntu 8.04 in a separate partition. I was wondering if you guys could give me the modified code for menu.lst to get Windows XP up to first entry.

Here is the code in my menu.lst file:

title		Ubuntu 8.04, kernel 2.6.24-16-generic
root		(hd0,5)
kernel		/boot/vmlinuz-2.6.24-16-generic root=UUID=3b22e178-7c95-401d-bc98-599563495f58 ro quiet splash
initrd		/boot/initrd.img-2.6.24-16-generic
quiet

title		Ubuntu 8.04, kernel 2.6.24-16-generic (recovery mode)
root		(hd0,5)
kernel		/boot/vmlinuz-2.6.24-16-generic root=UUID=3b22e178-7c95-401d-bc98-599563495f58 ro single
initrd		/boot/initrd.img-2.6.24-16-generic

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

### END DEBIAN AUTOMAGIC KERNELS LIST

# This is a divider, added to separate the menu items below from the Debian
# ones.
title		Other operating systems:
root


# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda1
title		Microsoft Windows XP Home Edition
root		(hd0,0)
savedefault
makeactive
chainloader	+1

Link to comment
Share on other sites

Just cut the whole of the windows entry and paste it at the top. You'll need to be a Super User.

If you want to make it the default OS, there's a good thread here that covers a few options. The easiest thing to do is to go into synaptic and get that grubed app - should make it a breeze to change things.

Link to comment
Share on other sites

Damn, I keep getting this message when I try to save menu.lst

You do not have the permissions necessary to save the file.

Please check that you typed the location correctly and try again.

What am I doing wrong?

Also where do I put hiddenmenu so that the menu pops up only when I press ESC?

Link to comment
Share on other sites

Damn, I keep getting this message when I try to save menu.lst

What am I doing wrong?

Also where do I put hiddenmenu so that the menu pops up only when I press ESC?

You need to have root permissions to modify menu.lst. To gain root permissions on the command line, you can use sudo; for example, if you use vim, you would type sudo vim /boot/grub/menu.lst.

I don't think the hiddenmenu directive needs to be in any particular place. Try just putting it at (or near) the top of the file and see if that works.

Link to comment
Share on other sites

Near the top, default variable

Starts from 0, each entry (title) adds by one

So change it to 5 and it'll highlight windows by default

I have the exact same menu list as his,and I changed my 0 to a 4 and it boots perfectly. The count starts at Zero not One.

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.