Windows XP boot problem with Grub
Hello:)
After installing Ubuntu on my hard drives I have big trouble to boot.
I am a user "advanced" and yet I can not solve my problem.
So after installing Ubuntu on my hdd I have to use the SuperGrub disk to boot on Windows XP.
I managed to reinstall Grub, which is supposed to allow me to run Windows XP that is on my first HDD on Ubuntu or another HDD.
In Ubuntu, the Grub menu starts properly.
But for windows XP it tells me that NTLDR is missing, I know you will tell me how to surrender, only if it is present at the root of C:
For this ntdetect.com and other system files are indeed present, I reinstalled from the command line with the Windows XP CD without forgetting the FIXMBR.
This has replaced the file system in question to begin with NTLDR but it does not change anything, I also tried to delete and copy them manually and the result is the same.
So to start Windows using the Super Grub disc CD (fortunately I have this one) and it works, I just ask myself a question:
In the Windows Start menu of super grub disc should I select Boot Windows from second hard drive, which would mean it will look for the NTLDR on the hard disk formatted with EXT on Ubuntu?
It's really annoying to have the message NTLDR is missing when it is present.
I'd like some help to avoid me having to use every time the super grub disk and the menu to start Windows XP.
Thank you in advance:)
Re: Windows XP boot problem with Grub
Try to edit the file menu.lst in /boot/grub
add the lines
title XP
chainloader = (hd0,0)+1
You have to be root to change the file
This also can help:
If you have installed Windows on a non-first hard disk, you have to use the disk swapping technique, because that OS cannot boot from any disks but the first one. The workaround used in GRUB is the command map (see map), like this:
grub> map (hd0) (hd1)
grub> map (hd1) (hd0)
Re: Windows XP boot problem with Grub
In order to get a clearer picture of your setup, how about opening a terminal (Applications > Accessories > Terminal) and do:
Code:
cd ~/Desktop && wget 'http://home.comcast.net/~ubuntu_grub/boot_info_script.txt' && sudo bash boot_info_script.txt
That will create a "RESULTS.txt" file in the same directory from where the script is run, namely your desktop; please copy/paste the contents of that file to your next post, highlight the copied text, and click the pound sign # graphic in the Ubuntu forum message box so that the text will get "code" tags put around it. The results of that script will help clarify your setup and hopefully what your problem might be.
Re: Windows XP boot problem with Grub
Copy the XP settings ahead of the Ubuntu settings in the item list and leave everything else the same.
The relevant parts of the original menu.lst were:
—————————- /boot/grub/menu.lst —————————————-
default 0
timeout 10
## ## End Default Options ##
title Ubuntu, kernel 2.6.20-15-generic
root (hd0,1)
kernel /boot/vmlinuz-2.6.20-15-generic root=UUID=12de9aee-c011-429e-b2a9-0ed83b3eb727 ro quiet splash
initrd /boot/initrd.img-2.6.20-15-generic
quiet
savedefault
title Ubuntu, kernel 2.6.20-15-generic (recovery mode)
root (hd0,1)
kernel /boot/vmlinuz-2.6.20-15-generic root=UUID=12de9aee-c011-429e-b2a9-0ed83b3eb727 ro single
initrd /boot/initrd.img-2.6.20-15-generic
title Ubuntu, memtest86+
root (hd0,1)
kernel /boot/memtest86+.bin
quiet
### END DEBIAN AUTOMAGIC KERNELS LIST
# This is a divider, added to separate the menu items below from the Debian ones.
title Other operating systems:
root
# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda1
title Microsoft Windows XP Home Edition
root (hd0,0)
savedefault
makeactive
—————————–