Go Back   TechArena Community > Software > Operating Systems
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read

Sponsored Links



Windows XP boot problem with Grub

Operating Systems


Reply
 
Thread Tools Search this Thread
  #1  
Old 06-03-2009
Member
 
Join Date: Jan 2006
Posts: 84
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

__________________
Waiting for (I know I cant afford em all): Halo 2 (xbox), Half-Life 2 (xbox), MGS3: Snake Eater (ps2), MGS: Twin Snakes (GC), Splinter Cell: Pandora Tomorrow (xbox), Gran Tourismo 4 (PS2), Mario Advance 4: Pikmin 2 (GC), Metroid Zero Mission (GBA), Mario and Luigi: Superstar Saga (GBA)
Reply With Quote
  #2  
Old 06-03-2009
Member
 
Join Date: Dec 2007
Posts: 1,565
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)
Reply With Quote
  #3  
Old 06-03-2009
Member
 
Join Date: Sep 2005
Posts: 1,359
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.
__________________
DFI LANPARTY SLI-DR
AMD 64 x2 4800+
OCZ (2 x 512) DDR600
Reply With Quote
  #4  
Old 06-03-2009
Member
 
Join Date: Dec 2007
Posts: 760
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

__________________
No TechArena No Experts, Know TA know Experts!
Reply With Quote
Reply

  TechArena Community > Software > Operating Systems
Tags: ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Windows XP boot problem with Grub"
Thread Thread Starter Forum Replies Last Post
Grub is unable to boot CentOS, hangs at the Grub prompt Man-Than Operating Systems 5 07-05-2011 12:17 PM
Edit grub/defaults/grub file on triple-boot system Hishem-Remashiya Operating Systems 5 14-11-2010 05:44 AM
GRUB 2 cannot boot into Windows XP UbuntU-ME Operating Systems 3 15-10-2009 11:39 AM
Windows wont boot from Grub WinSlayer Operating Systems 3 03-10-2009 10:07 AM
Grub & Boot Windows Recko Operating Systems 4 11-11-2008 03:52 PM


All times are GMT +5.5. The time now is 08:26 PM.