LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/)
-   -   Trouble Configuring GRUB to boot windows.. (https://www.linuxquestions.org/questions/ubuntu-63/trouble-configuring-grub-to-boot-windows-483553/)

Azzath 09-14-2006 04:35 PM

Trouble Configuring GRUB to boot windows..
 
Hi to all,
I just installed ubuntu 6.06 along with my existing XP machine. I installed onto another partition. I looked around the forum and got some idea of editing the menu.lst file with the lines below and it still doesn't work. I have the disk configuration below for you to have a look. If somebody knows how the script should look like, then i'd appreciate it a lot.

Quote:

fdisk -l

Disk /dev/hda: 81.9 GB, 81964302336 bytes
255 heads, 63 sectors/track, 9964 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 2423 2550 1028160 82 Linux swap / Solaris
/dev/hda2 2551 9963 59544922+ f W95 Ext'd (LBA)
/dev/hda3 1 2422 19454683+ 83 Linux # Linux root parttion
/dev/hda4 9964 9964 8032+ 83 Linux
/dev/hda5 2551 7649 40957686 7 HPFS/NTFS
/dev/hda6 7650 9963 18587173+ 7 HPFS/NTFS

Partition table entries are not in disk order

Disk /dev/hdb: 10.0 GB, 10005037056 bytes
255 heads, 63 sectors/track, 1216 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hdb1 1 1215 9759456 7 HPFS/NTFS # Windows parttion
Quote:

menu.lst
title Ubuntu, kernel 2.6.15-23-386
root (hd0,2)
kernel /boot/vmlinuz-2.6.15-23-386 root=/dev/hda3 ro quiet splash
initrd /boot/initrd.img-2.6.15-23-386
savedefault
boot

title Ubuntu, kernel 2.6.15-23-386 (recovery mode)
root (hd0,2)
kernel /boot/vmlinuz-2.6.15-23-386 root=/dev/hda3 ro single
initrd /boot/initrd.img-2.6.15-23-386
boot

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

title Windows xp
root (hd1,0)
chainloader +1
Thank you in anticipation,
Regards,
Azzath.

randell6564 09-14-2006 05:12 PM

Hi!
What are you trying to achieve?

Can you dual-boot?

Thismight help.

Azzath 09-14-2006 05:52 PM

Sorry i couldn't tell that clearly before..
I want to dual-boot both windows xp and ubuntu. I am currently able to boot into ubuntu but i cant get windows on the grub loader (so i can't boot into windows).

Thank you,
regards,

randell6564 09-14-2006 06:11 PM

Quote:

Originally Posted by Azzath
Sorry i couldn't tell that clearly before..
I want to dual-boot both windows xp and ubuntu. I am currently able to boot into ubuntu but i cant get windows on the grub loader (so i can't boot into windows).

Thank you,
regards,

You said that you had an existing Windows OS already, so you missed the part of the ubuntu installation that gives you the option to install grub to your MBR. (depending on which ubuntu CD you are using.) You want grub on your MBR in order to get the dual-boot option.

If you are using the 'Alternate CD' then you will not get this option. In that case, you need to open a terminal and type:
sudo grub

then type find /boot/grub/stage1
then root (hd0,0)
then setup (hd0)
then quit

reboot and let me know if you got the dual-boot option.

Leisy 09-14-2006 07:58 PM

for windows try instead of root (1,0) rootnoverify (1,0)

randell6564 09-14-2006 08:02 PM

Quote:

Originally Posted by Leisy
for windows try instead of root (1,0) rootnoverify (1,0)

HUH?! WHA,WHA?!

Azzath 09-15-2006 12:30 AM

I am using the free CD provided by ubuntu and it didn't ask me the option of installing the boot loader.

At the moment when the PC boots up, i have to press "Esc" to enter into the boot option. SO randell6564 does that mean the boot loader is installed already?

Thank you.
regards,
azzath.

crash_override_me 09-15-2006 10:47 AM

if u have to press ESC to enter the BOOT Menu, then yes GRUB is there:)

u need to change some stuff in your /boot/grub/menu.lst file,, so that u get the BOOT Menu everytime!!

there is a line saying "Hidden Menu" or something like that..
just change value & u'll be done!!

Azzath 09-15-2006 02:05 PM

Yes,so the grub is already there. Now i have edited the menue.lst file and i think the way i put the partiton ID for windows is wrong i guess.
I have two different hard disks hda and hdb . Ubuntu loads up fine, it's only windows that doesnt load up.
Could someone please look at the hard drive configuration and tell me how the menu.lst should look like for the windows pattion.
my linux is in the following partition
Quote:

/dev/hda3 1 2422 19454683+ 83 Linux # Linux root parttion
my windows is in the following partition
Quote:

/dev/hdb1 1 1215 9759456 7 HPFS/NTFS # Windows parttion
I have my menue.lst configuration given in the first post..please refer if needed.

Thank you in anticipation,
regards.

randell6564 09-15-2006 02:21 PM

Sorry for the confusion. The Ubuntu alternate CD gives you the GRUB option to install to your MBR, or not.

Azzath 09-15-2006 02:33 PM

No randell6564, it didn't give me the option of installing the GRUB.

randell6564 09-15-2006 02:46 PM

Quote:

Originally Posted by Azzath
No randell6564, it didn't give me the option of installing the GRUB.

Then you are using the Desktop live CD instead of the Alternate CD.

The Alternate CD WILL in fact give you that option. If anyone knows of a way to attach an image to this post, I will show you.

Azzath 09-15-2006 02:52 PM

You can upload the images to http://imageshack.us/ and post the URL in here if you dont mind. Thank you..appreciate your help.

Regards,

randell6564 09-15-2006 02:56 PM

Quote:

Originally Posted by Azzath
You can upload the images to http://imageshack.us/ and post the URL in here if you dont mind. Thank you..appreciate your help.

Regards,

Thanks! Here ya go I THINK! lol!

randell6564 09-15-2006 03:00 PM

Well THAT wasn't it! lol! How about this one! ah CRAP! I'll figure it out!


All times are GMT -5. The time now is 02:09 AM.