LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 03-31-2008, 02:43 AM   #1
benoitcsirois
LQ Newbie
 
Registered: Jan 2008
Location: Montreal
Distribution: fluxbuntu
Posts: 5

Rep: Reputation: 0
Question Grub: Windows XP + Ubuntu


Well I'm sure this is a common problem, but I've been struggling for a few hours now and I can't seem to get anywhere or find any useful forum post... so here is my problem:

I installed Ubuntu 7.10 on my laptop today, which already had Windows XP installed on a 40GB partition (partition sda5)

Now after installing Ubuntu of course it killed my Windows boot record so I have to get Grub to boot into Windows XP, but nothing seems to work.

I am able to read all the data on my Windows partition, just not to boot on it. I must have done something wrong

Here is my partition table:

Code:
Device Boot      Start         End      Blocks   Id  System
/dev/sda1               2        4863    39054015    f  W95 Ext'd (LBA)
/dev/sda2            4864       12158    58597087+  83  Linux
/dev/sda3           12159       12280      979965   82  Linux swap / Solaris
/dev/sda4   *           1           1           0    0  Empty
Partition 4 does not end on cylinder boundary.
/dev/sda5               2        4863    39053983+   7  HPFS/NTFS
***NOTE: There was no /dev/sda4 before, it appeared here just now... probably because I played around with the "hide" and "unhide" commands

This is my menu.lst (the relevant part):

Code:
## ## End Default Options ##

title           Ubuntu 7.10, kernel 2.6.22-14-generic
root            (hd0,1)
kernel          /boot/vmlinuz-2.6.22-14-generic root=UUID=43483bac-b440-434f-b66c-ab5ba73a3ece ro quiet splash
initrd          /boot/initrd.img-2.6.22-14-generic
quiet

## NOTE: I Have also tried this:
## root (hd0,4)
## makeactive
## chainloader +1

title           Windows XP
rootnoverify    (hd0,4)
chainloader +1
makeactive
boot

title           Ubuntu 7.10, kernel 2.6.22-14-generic (recovery mode)
root            (hd0,1)
kernel          /boot/vmlinuz-2.6.22-14-generic root=UUID=43483bac-b440-434f-b66c-ab5ba73a3ece ro single
initrd          /boot/initrd.img-2.6.22-14-generic

title           Ubuntu 7.10, memtest86+
root            (hd0,1)
kernel          /boot/memtest86+.bin
quiet
Thank you for your help!

-Ben
 
Old 03-31-2008, 03:31 AM   #2
oskar
Senior Member
 
Registered: Feb 2006
Location: Austria
Distribution: Ubuntu 12.10
Posts: 1,138

Rep: Reputation: 49
The way it looks to me, linux shouldn't boot either - since sda2 is not set bootable, and I don't know what the idea is with sda4. The way it looks to me - The configuration file is fine, but if it's on sda2 it shouldn't be loaded. Do you even get a grub screen on startup? Does it list "Windows XP"
 
Old 03-31-2008, 06:22 AM   #3
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware & Slackware64 14.1
Posts: 7,030
Blog Entries: 52

Rep: Reputation: Disabled
Shouldn't the Windows entry in menu.lst be in a separate section, below all the Ubuntu ones?
 
Old 03-31-2008, 12:51 PM   #4
benoitcsirois
LQ Newbie
 
Registered: Jan 2008
Location: Montreal
Distribution: fluxbuntu
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by oskar View Post
The way it looks to me, linux shouldn't boot either - since sda2 is not set bootable, and I don't know what the idea is with sda4. The way it looks to me - The configuration file is fine, but if it's on sda2 it shouldn't be loaded. Do you even get a grub screen on startup? Does it list "Windows XP"
Yes, it does show the Grub screen... and Windows XP does show up in the list but when I select it it... says something like "invalid device" (something like that).
 
Old 03-31-2008, 03:11 PM   #5
benoitcsirois
LQ Newbie
 
Registered: Jan 2008
Location: Montreal
Distribution: fluxbuntu
Posts: 5

Original Poster
Rep: Reputation: 0
I've just tried the following and none of the options work:

Code:
default		0
timeout		3
color blue/cyan yellow/magenta

title		Ubuntu 7.10, kernel 2.6.22-14-generic
root		(hd0,1)
kernel		/boot/vmlinuz-2.6.22-14-generic root=UUID=43483bac-b440-434f-b66c-ab5ba73a3ece ro quiet splash
initrd		/boot/initrd.img-2.6.22-14-generic
quiet

title		Ubuntu 7.10, kernel 2.6.22-14-generic (recovery mode)
root		(hd0,1)
kernel		/boot/vmlinuz-2.6.22-14-generic root=UUID=43483bac-b440-434f-b66c-ab5ba73a3ece ro single
initrd		/boot/initrd.img-2.6.22-14-generic

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

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

title		Windows XP savedefault 0,4
root		(hd0,4)
savedefault
makeactive
chainloader +1

title		Windows XP 0,0
root		(hd0,0)
makeactive
chainloader +1

title		Windows XP 0,4
root		(hd0,4)
makeactive
chainloader +1

title		Windows XP savedefault 0,0 rootnoverif
rootnoverify		(hd0,0)
savedefault
makeactive
chainloader +1

title		Windows XP savedefault 0,4 rootnoverif
rootnoverify		(hd0,4)
savedefault
makeactive
chainloader +1

title		Windows XP 0,0 rootnoverif
rootnoverify		(hd0,0)
makeactive
chainloader +1

title		Windows XP 0,4 rootnoverif
rootnoverify		(hd0,4)
makeactive
chainloader +1


title		Windows XP map 0,0
map (hd0,0) (hd0,4)
map (hd0,4) (hd0,0)
root		(hd0,0)
makeactive
chainloader +1

title		Windows XP map 0,4
map (hd0,0) (hd0,4)
map (hd0,4) (hd0,0)
root		(hd0,4)
makeactive
chainloader +1

title		Windows XP map 0,0 rootnoverify
map (hd0,0) (hd0,4)
map (hd0,4) (hd0,0)
rootnoverify		(hd0,0)
makeactive
chainloader +1

title		Windows XP map 0,4 rootnoverify
map (hd0,0) (hd0,4)
map (hd0,4) (hd0,0)
rootnoverify		(hd0,4)
makeactive
chainloader +1
 
Old 03-31-2008, 09:43 PM   #6
andreas_skw
Member
 
Registered: Jan 2008
Location: Indonesia, tanah air beta
Distribution: Knoppix v5
Posts: 97

Rep: Reputation: 15
I think you should delete :

title Windows XP savedefault 0,4
root (hd0,4)
savedefault
makeactive
chainloader +1

title Windows XP 0,0
root (hd0,0)
makeactive
chainloader +1

title Windows XP 0,4
root (hd0,4)
makeactive
chainloader +1

title Windows XP savedefault 0,0 rootnoverif
rootnoverify (hd0,0)
savedefault
makeactive
chainloader +1

title Windows XP savedefault 0,4 rootnoverif
rootnoverify (hd0,4)
savedefault
makeactive
chainloader +1

title Windows XP 0,0 rootnoverif
rootnoverify (hd0,0)
makeactive
chainloader +1

title Windows XP 0,4 rootnoverif
rootnoverify (hd0,4)
makeactive
chainloader +1


title Windows XP map 0,0
map (hd0,0) (hd0,4)
map (hd0,4) (hd0,0)
root (hd0,0)
makeactive
chainloader +1

title Windows XP map 0,4
map (hd0,0) (hd0,4)
map (hd0,4) (hd0,0)
root (hd0,4)
makeactive
chainloader +1

title Windows XP map 0,0 rootnoverify
map (hd0,0) (hd0,4)
map (hd0,4) (hd0,0)
rootnoverify (hd0,0)
makeactive
chainloader +1

title Windows XP map 0,4 rootnoverify
map (hd0,0) (hd0,4)
map (hd0,4) (hd0,0)
rootnoverify (hd0,4)
makeactive
chainloader +1

The reason is your bootloader can't catch which one is really windows. Because from your menu.lst, it mentioned that windows is in hd0,4 and hd0,0.

In my menu.lst, i only have

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


Hope this will help you
 
  


Reply

Tags
grub, gutsy, ubuntu, windows, xp


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
Windows killed my ubuntu hd - this is not the grub problem bendt.v.rasmussen Linux - General 3 02-24-2008 04:18 AM
GRUB problems trying to use Windows and Ubuntu seabass Linux - Newbie 18 07-13-2007 03:42 AM
grub dual boot ubuntu/windows dellcom1800 Linux - General 1 01-25-2007 06:02 AM
ubuntu: windows took over MBR and can't restore grub eantoranz Linux - Software 3 02-03-2006 08:29 PM
GRUB config for FC3/Ubuntu/Windows AndrewZorn Linux - General 3 04-06-2005 11:14 PM


All times are GMT -5. The time now is 11:43 PM.

Main Menu
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