Grub Bootloader Problem

Hi

Just a small problem regarding the Grub bootloader.

Heres the situation, I got two hard drives.

Windows XP on Hard Drive 1 (first partition)

Ubuntu 6.06 on Hard Drive 2 (second partition) (the first partition contains media...)

Now when I boot up it goes straight to Ubuntu , like my Windows XP install isn't there.

So I want to add this code to my menu.lst so that I can select my Windows partition.

default 0 # Tells which one is default, the list starts at 0 with the second entry being 1

timeout 3 # How long to wait in seconds before auto-selecting the default



title Microsoft Windows

root (hd0,0) # First number represents hard drive number, second is which partition

savedefault

makeactive

chainloader +1

The thing is I can't figure out how to get root permission.

I tried sudo update-grub in Terminal but obviously that just updates it, whereas I'm trying to save a new version of menu.lst.

So how do I save a new version of menu.lst? Or how can I get back into Windows :S

#397422

In case of you don't know , root is disabled in ubuntu , tried "sudo /boot/grub/menu.lst" or wherever menu.lst is placed ?

#397427

I used the command "gksudo nautilus" to open a new file browser where I was able to replace the files.

#397428

what i useually use is 'sudo gedit /etc/file/blah' assuming you have gnome, if kde its kedit i belive

#397433

Well I'm back into Windows and now I can't get back into Ubuntu! :P

I figured I need to reinstall GRUB... I think instead I will just create another partition on my first hard drive and install Ubuntu there.

I think the main problem with putting Linux on the second hard drive was that the boot loaders have some problem figuring out what OSes are installed.

#397437

In my experience, it is better to put linux / grub on the first hard drive.

#398154

Put grub on a floppy disk. (note, I don't use grub, I'm a lilo fan)

Have it automatically boot linux, and just remove it for windows.

Note for root permission use su and sudo. I'm not sure of differences between (I only use root), so just man them.

#398398