Results 1 to 8 of 8

Thread: Configuring Grub with 2 hard drives.

  1. #1
    Join Date
    Jun 2006
    Location
    England
    Beans
    10
    Distro
    Ubuntu 10.04 Lucid Lynx

    Question Configuring Grub with 2 hard drives.

    I've just bought and installed a new 250GB PATA hard drive alongside my old 120GB drive which had XP on it. I did a fresh install of XP on the 250GB drive and formatted the 120GB and put Ubuntu on it. At first I had the new drive as the slave but after I installed ubuntu XP wouldn't boot because it couldn't find NTLDR. So I made the new drive the master and reinstalled XP. Basically my drives look like this:

    250GB
    ---------
    XP (20GB NTFS)
    GAMES/APPS (180GB NTFS)
    BACKUP (<50GB NTFS)

    120GB
    ---------
    Windows Swap (4GB FAT32)
    Ubuntu Swap (1GB swap)
    Ubuntu / (20GB ext3)
    Ubuntu /home (20GB ext3)
    MUSIC/VIDEOS (~75GB ext3)

    At the moment I can only boot into Windows as Grub doesn't appear. If I change my BIOS so the 120GB boots first Grub appears but can't load either operating system. Can anyone tell me where and how grub needs to be installed so I can access both?

    I've looked around but can't find anything that looks appropriate for my situation.

    Thanks

  2. #2
    Join Date
    Jan 2007
    Location
    ~/SC/USA
    Beans
    1,977
    Distro
    Ubuntu

    Re: Configuring Grub with 2 hard drives.

    You can use your "Live CD" to reinstall the GRUB bootloader. Just open a terminal and type the following:
    Code:
    sudo grub
    find /boot/grub/stage1
    (Use the output from this command in the next command)
    root (hd0,1)
    setup (hd0)
    quit
    Here is some information on the procedures:
    https://help.ubuntu.com/community/Re...tallingWindows

  3. #3
    Join Date
    Jun 2006
    Location
    England
    Beans
    10
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Configuring Grub with 2 hard drives.

    Thanks for the quick reply. I just tried that and it works to get me into linux (there now), but when I select the XP option it says:

    Code:
    Starting up...
    
    BOOTMGR is missing
    
    Press ctrl+alt+del to restart
    This is my entry for XP in menu.lst:

    Code:
    title		Windows XP Professional
    root 		(hd0,1)
    chainloader 	+1
    Is that wrong?

  4. #4
    Join Date
    Mar 2007
    Location
    Here & Now
    Beans
    16,549
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Configuring Grub with 2 hard drives.

    Try this:

    title Windows XP Professional
    map (hd0,0)
    map (hd1,0)
    root (hd0,1)
    chainloader +1

    Dr. Fernando Duran Dollenz
    Libertad 584
    6824871

  5. #5
    Join Date
    Jan 2007
    Location
    ~/SC/USA
    Beans
    1,977
    Distro
    Ubuntu

    Re: Configuring Grub with 2 hard drives.

    XP should be:
    Code:
    title		Windows XP Professional
    root 		(hd0,0)
    chainloader 	+1

  6. #6
    Join Date
    Mar 2007
    Location
    Here & Now
    Beans
    16,549
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Configuring Grub with 2 hard drives.

    Here is more info on how to boot from 2 hard drives:
    http://ubuntuforums.org/showthread.p...light=dualboot

    Dr. Fernando Duran Dollenz
    Libertad 584
    6824871

  7. #7
    Join Date
    Jun 2006
    Location
    England
    Beans
    10
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Configuring Grub with 2 hard drives.

    title Windows XP Professional
    root (hd0,0)
    chainloader +1
    Thanks, that made it work. Silly mistake to make on my part

  8. #8
    Join Date
    Jan 2007
    Location
    ~/SC/USA
    Beans
    1,977
    Distro
    Ubuntu

    Re: Configuring Grub with 2 hard drives.

    Not a silly mistake, just a simple one. congrats..

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
  •