[SOLVED] [B]Can't Boot Windows Xp in a dual-boot e[/B]
UbuntuThis forum is for the discussion of Ubuntu Linux.
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.
I installed Windows XP Professional SP2 in my ~150GB harddrive.
Then, I installed Ubuntu 7.04 from a live CD creating a 1GB FAT32 partition for shared files. So, at this point I had hda1 (Windows XP), hda2 (1GB FAT32 partition) and hda3 (ext3 - Ubuntu 7.04), if I'm not mistaken. Both XP and Ubuntu 7.04 occupy about 75GB. Windows XP was drive 'C:'.
I uninstalled all 2.6.20-15 software from synaptic because I already had updated it to 2.6.20-16.
Now, when I try to boot Windows XP from grub dual-boot, I get this error message:
When I tried to enter the Windows XP CD's recovery console, I found Windows to be in D:\Windows and not C:\Windows! Why is that!?
What can I do to be able to enter both Ubuntu and Windows XP?
P.S.: I also installed ntfs-3g meanwhile. Does that have anything to do with the problem? Thanks.
Boot into your Ubuntu and edit the grub boot menu. Usually this is found in /boot/grub/menu.lst though you may need to check your distro's help documentation.
FIRST MAKE A BACKUP OF ANY FILES YOU INTEND TO EDIT
Next, as root, edit the Windows section of your boot list
Code:
title XP pro @ hda5
hide (hd0,0)
hide (hd0,1)
hide (hd0,2)
hide (hd0,3)
hide (hd0,4)
unhide (hd0,5)
root (hd0,5)
makeactive
chainloader +1
You may have to tinker with hide / unhide options to get it perfect. Also, study the setup and the comments from the GRUB boot menu linked above.
Boot into your Ubuntu and edit the grub boot menu. Usually this is found in /boot/grub/menu.lst though you may need to check your distro's help documentation.
FIRST MAKE A BACKUP OF ANY FILES YOU INTEND TO EDIT
Next, as root, edit the Windows section of your boot list
Code:
title XP pro @ hda5
hide (hd0,0)
hide (hd0,1)
hide (hd0,2)
hide (hd0,3)
hide (hd0,4)
unhide (hd0,5)
root (hd0,5)
makeactive
chainloader +1
You may have to tinker with hide / unhide options to get it perfect. Also, study the setup and the comments from the GRUB boot menu linked above.
I haven't tried this yet, but what do you mean by "You may have to tinker with hide / unhide options to get it perfect."?
I haven't tried this yet, but what do you mean by "You may have to tinker with hide / unhide options to get it perfect."?
Well, assuming your gparted output is correct, you shouldn't have to do any tinkering. The problem I always have on a dual boot system like this is that Windows XP wants to be on the first partition of the first hard drive your BIOS sees. So what you are doing with those commands is hiding the other partitions from Windows while it boots so it thinks hda5 is actually hda1.
However, if gparted is not reporting the harddrives the same way your BIOS does, it is possible that your Windows partition may be somewhere else.
[EDIT] Actually I see where I screwed up already!!!
I included too many partitions in that grub code. Use the following instead
Code:
title XP pro @ hda5
hide (hd0,0)
hide (hd0,1)
hide (hd0,2)
hide (hd0,3)
unhide (hd0,4)
root (hd0,4)
makeactive
chainloader +1
Well, assuming your gparted output is correct, you shouldn't have to do any tinkering. The problem I always have on a dual boot system like this is that Windows XP wants to be on the first partition of the first hard drive your BIOS sees. So what you are doing with those commands is hiding the other partitions from Windows while it boots so it thinks hda5 is actually hda1.
However, if gparted is not reporting the harddrives the same way your BIOS does, it is possible that your Windows partition may be somewhere else.
I have a major problem now
after doing what u suggested me to, I now get error 22 when trying to open Win "things" at hda5
and error 17 when trying to open linux.
i am using the live cd to send this message
but there is one thing that has changed
the partition mananger from the live cd says that there is
hda1 filesystem unknown 75GB
hda2 ext3 /media/disk 73.04GB
hda3 fat32 /media/LINUXP (the name i gave to the 1gb shared partition) 1GB flags boot hidden
without changing to what you edited, the grub simply won-t start
please help me! i am getting stressed and almost in panic
i started crying and i-m desperate
/////////////////////
does the unknown in the previously NTFS mean that I lost the information in my windows xp partition!_ i am really desperate
should i follow the grub troubleshooting in the first post of>
The beauty of grub and Linux is that none of your data is lost, it always possible to boot your system and correct the errors as long as you aren't formatting your drive.
Please post your grub menu.lst as found in media/disk/boot/grub from your live CD.
Also, include the full output from your partition manager.
The beauty of grub and Linux is that none of your data is lost, it always possible to boot your system and correct the errors as long as you aren't formatting your drive.
Please post your grub menu.lst as found in media/disk/boot/grub from your live CD.
Also, include the full output from your partition manager.
Mmmmm - first up, change all those "hide" into "unhide". Only needed for older Windoze systems (Win95 e.g.).
Then try to boot Windoze (it'll still fail). That should allow Ubuntu to boot after that.
Then go back and remove all those lines.
Seems you have been screwed by the Ubuntu installer - and I don't know of an easy way to un-screw things.
Can you just throw everything away and re-install both XP and Ubuntu ???.
Mmmmm - first up, change all those "hide" into "unhide". Only needed for older Windoze systems (Win95 e.g.).
Then try to boot Windoze (it'll still fail). That should allow Ubuntu to boot after that.
Then go back and remove all those lines.
Seems you have been screwed by the Ubuntu installer - and I don't know of an easy way to un-screw things.
Can you just throw everything away and re-install both XP and Ubuntu ???.
No, I can-t.
i have gigabytes of photos of decades and other important things in both Windows xp and ubuntu
i am waiting for a reply of the person who told me to write down what i have in menu.lst and in the partitioning menu
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.