LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices



Reply
 
Search this Thread
Old 09-14-2006, 05:35 PM   #1
Azzath
Member
 
Registered: Jan 2005
Location: Russia
Distribution: Mandrake, CentOS
Posts: 138

Rep: Reputation: 16
Exclamation 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.

Last edited by Azzath; 09-15-2006 at 01:33 AM.
 
Old 09-14-2006, 06:12 PM   #2
randell6564
Member
 
Registered: Nov 2005
Location: California USA
Distribution: Ubuntu,(Feisty Fawn) Windows XP(Home Edition)
Posts: 634

Rep: Reputation: 31
Hi!
What are you trying to achieve?

Can you dual-boot?

Thismight help.
 
Old 09-14-2006, 06:52 PM   #3
Azzath
Member
 
Registered: Jan 2005
Location: Russia
Distribution: Mandrake, CentOS
Posts: 138

Original Poster
Rep: Reputation: 16
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,
 
Old 09-14-2006, 07:11 PM   #4
randell6564
Member
 
Registered: Nov 2005
Location: California USA
Distribution: Ubuntu,(Feisty Fawn) Windows XP(Home Edition)
Posts: 634

Rep: Reputation: 31
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.
 
Old 09-14-2006, 08:58 PM   #5
Leisy
Member
 
Registered: Sep 2006
Location: Brno, Czech Republic
Distribution: Fedora
Posts: 56

Rep: Reputation: 15
for windows try instead of root (1,0) rootnoverify (1,0)
 
Old 09-14-2006, 09:02 PM   #6
randell6564
Member
 
Registered: Nov 2005
Location: California USA
Distribution: Ubuntu,(Feisty Fawn) Windows XP(Home Edition)
Posts: 634

Rep: Reputation: 31
Quote:
Originally Posted by Leisy
for windows try instead of root (1,0) rootnoverify (1,0)
HUH?! WHA,WHA?!
 
Old 09-15-2006, 01:30 AM   #7
Azzath
Member
 
Registered: Jan 2005
Location: Russia
Distribution: Mandrake, CentOS
Posts: 138

Original Poster
Rep: Reputation: 16
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.
 
Old 09-15-2006, 11:47 AM   #8
crash_override_me
Member
 
Registered: Aug 2005
Location: India, New Delhi
Distribution: Debian Etch, Ubuntu
Posts: 342

Rep: Reputation: 30
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!!

Last edited by crash_override_me; 09-15-2006 at 11:49 AM.
 
Old 09-15-2006, 03:05 PM   #9
Azzath
Member
 
Registered: Jan 2005
Location: Russia
Distribution: Mandrake, CentOS
Posts: 138

Original Poster
Rep: Reputation: 16
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.
 
Old 09-15-2006, 03:21 PM   #10
randell6564
Member
 
Registered: Nov 2005
Location: California USA
Distribution: Ubuntu,(Feisty Fawn) Windows XP(Home Edition)
Posts: 634

Rep: Reputation: 31
Sorry for the confusion. The Ubuntu alternate CD gives you the GRUB option to install to your MBR, or not.
 
Old 09-15-2006, 03:33 PM   #11
Azzath
Member
 
Registered: Jan 2005
Location: Russia
Distribution: Mandrake, CentOS
Posts: 138

Original Poster
Rep: Reputation: 16
No randell6564, it didn't give me the option of installing the GRUB.
 
Old 09-15-2006, 03:46 PM   #12
randell6564
Member
 
Registered: Nov 2005
Location: California USA
Distribution: Ubuntu,(Feisty Fawn) Windows XP(Home Edition)
Posts: 634

Rep: Reputation: 31
Smile

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.
 
Old 09-15-2006, 03:52 PM   #13
Azzath
Member
 
Registered: Jan 2005
Location: Russia
Distribution: Mandrake, CentOS
Posts: 138

Original Poster
Rep: Reputation: 16
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,

Last edited by Azzath; 09-15-2006 at 03:54 PM.
 
Old 09-15-2006, 03:56 PM   #14
randell6564
Member
 
Registered: Nov 2005
Location: California USA
Distribution: Ubuntu,(Feisty Fawn) Windows XP(Home Edition)
Posts: 634

Rep: Reputation: 31
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!
 
Old 09-15-2006, 04:00 PM   #15
randell6564
Member
 
Registered: Nov 2005
Location: California USA
Distribution: Ubuntu,(Feisty Fawn) Windows XP(Home Edition)
Posts: 634

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Configuring Grub to dual boot Dswissmiss Linux - Software 2 01-30-2006 07:04 AM
configuring grub-dual boot debian winXP different HD's tshontikidis Linux - Newbie 1 07-14-2005 05:46 AM
Trouble using GRUB to load Windows NT SanjayPethe Linux - Newbie 1 05-08-2004 08:33 PM
configuring GRUB to load windows merlin371 Linux - General 1 02-28-2004 11:38 AM
Trouble getting Windows XP to dual boot with Fedora using GRUB davstin2002 Linux - Newbie 12 01-22-2004 04:24 PM


All times are GMT -5. The time now is 09:26 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration