Find the answer to your Linux question:
Results 1 to 8 of 8
I just installed Debian "sarge" dual booting with Windows XP Home Edition. My bootloader is GRUB, but I didn't install it to the MBR. Now Debian boots just fine, but ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jun 2005
    Posts
    30

    grub won't boot Windows XP.


    I just installed Debian "sarge" dual booting with Windows XP Home Edition.
    My bootloader is GRUB, but I didn't install it to the MBR. Now Debian boots just fine, but Windows refuses to load. when I select it from the list, it just says:

    rootnoverify (hd0,2)
    savedefault
    chainloader +1

    which, byt the way, is what's written in /boot/grub/menu.lst

    I've changed rootnoverify to root, but that just makes it say "unknown file system" before it hangs.
    Could this be caused by a bad bootsector on the windows partition? I recently had to fix it (It was listed sometimes as FAT12, sometimes FAT16, and sometimes NTFS.)

  2. #2
    Linux Guru dylunio's Avatar
    Join Date
    Aug 2004
    Location
    Cymru
    Posts
    4,157
    You may want to try changng the windows stanza in the menu.lst file to
    title Windows
    map (hd0) (hd2)
    map (hd2) (hd0)
    rootnoverify (hd0,2)
    savedefault
    chainloader +1
    Registered Linux User #371543!
    Get force-get May The Source Be With You
    /dev/null
    /dev/null2

  3. #3
    Just Joined!
    Join Date
    Jun 2005
    Posts
    30
    When I do that, it gives me a generic "error loading OS. Press any key to restart" type of message. (I don't know exactly what it says as I don't have access to that computer right now.) This message seems to come from windows rather than GRUB, so that's a good sign. Still won't boot, though. Do I need to configure boot.ini or something like that?

  4. #4
    Linux Guru dylunio's Avatar
    Join Date
    Aug 2004
    Location
    Cymru
    Posts
    4,157
    Can you post the exact error message you get when booting XP?
    Registered Linux User #371543!
    Get force-get May The Source Be With You
    /dev/null
    /dev/null2

  5. #5
    Just Joined!
    Join Date
    Jun 2005
    Posts
    30
    Sorry. It says "Disk error. Press any key to restart."

  6. #6
    Linux Guru loft306's Avatar
    Join Date
    Oct 2003
    Location
    The DairyLand
    Posts
    1,666
    try putting this in your menu.lst instead
    Code:
    title Windows
    map (hd0,0) (hd0,2)
    map (hd0,2) (hd0,0)
    rootnoverify (hd0,2)
    makeactive
    savedefault
    chainloader +1
    if this dosnt work then please paste the output of
    Code:
    fdisk -l
    (and that is a small 'l' ell not a '1'one)
    that is to be typed in a shell,terminal,konsole
    ~Mike ~~~ Forum Rules
    Testing? What's that? If it compiles, it is good, if it boots up, it is perfect. ~ Linus Torvalds
    http://loft306.org

  7. #7
    Just Joined!
    Join Date
    Jun 2005
    Posts
    30
    I just formatted my windows partition, reinstalled XP, and now everything works fine. I think that the NT bootcode had somehow gotten fubared. Anyway, thanks for the help! case closed.

  8. #8
    Just Joined!
    Join Date
    Dec 2005
    Posts
    2

    It worked for me (menu.lst to boot XP)

    Thanks, your menu.lst entry did allow me to boot XP, Not sure why the map statements are needed, however.

    title Windows
    map (hd0,0) (hd0,2)
    map (hd0,2) (hd0,0)
    rootnoverify (hd0,2)
    makeactive
    chainloader +1

    Thanks,

    Dan

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •