Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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"
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).
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.