Results 1 to 4 of 4

Thread: Windows XP boot problem with Grub

  1. #1
    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)

  2. #2
    Join Date
    Dec 2007
    Posts
    1,599

    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)

  3. #3
    Join Date
    Sep 2005
    Posts
    1,370

    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

  4. #4
    Join Date
    Dec 2007
    Posts
    765

    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!

Similar Threads

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

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,418,615.17983 seconds with 17 queries