Page 1 of 2 12 LastLast
Results 1 to 10 of 17

Thread: [SOLVED] Dual-boot help XP/Ubuntu (separate HDs)

  1. #1
    Join Date
    May 2007
    Location
    Central PA
    Beans
    30
    Distro
    Ubuntu 8.04 Hardy Heron

    [SOLVED] Dual-boot help XP/Ubuntu (separate HDs)

    Okay, I am fairly new to Linux and wanted to try it out again. I made space on my 400GB SATA HD and resized it during the Ubuntu install to be split into two, one for Ubuntu and the other with all the data that was on it (not Windows though). The install went perfectly fine.
    Now, my XP is on an 80GB SATA HD, and the computer defaulted to that when I restarted. I figured this was normal, but when I tried to boot to the 400 GB to get to Ubuntu, I got the "Boot device not recognized" message, meaning (I think) that the GRUB loader failed to write to the 400. XP wasn't recognized during the install, so I figured it would just write to the 400. What can I do to get the GRUB loader to come up with both Ubuntu and XP? Can I just use Super GRUB Disc to put GRUB on my 80GB? Thanks in advance

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

    Re: Dual-boot help XP/Ubuntu (separate HDs)


    Dr. Fernando Duran Dollenz
    Libertad 584
    6824871

  3. #3
    Join Date
    Jun 2006
    Location
    Texas
    Beans
    3,931
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Dual-boot help XP/Ubuntu (separate HDs)

    The Super Grub Disk would probably be the easiest.

    Or faster Boot to a live CD Ubuntu, Knoppix, System Rescue - doesn't matter as long as it has grub.
    For the Ubuntu live cd open Applications > Accessories > terminal
    And get a grub> prompt

    Code:
    sudo grub
    now have grub find where it is installed

    Code:
    find /boot/grub/stage1
    will return something in the form of (hd#,#). use that to set the grub root

    Code:
    root  (hd#,#)
    and finally change the MBR of the drive to boot to GRUB in your Ubuntu install

    Code:
    setup (hd#)
    Get that much done and get Ubuntu booting then we can go through how to add XP to the grub menu.

    Hello Pumalite. See you beat me. Thats a good thread for a person new to dual booting.
    Last edited by louieb; August 15th, 2008 at 02:59 AM.
    UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things. -- Doug Gwyn
    SystemRescueCd | Dual Boot | psychocats | FAQ

  4. #4
    Join Date
    May 2007
    Location
    Central PA
    Beans
    30
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: Dual-boot help XP/Ubuntu (separate HDs)

    I think I understand, but I can't get Ubuntu booted in the first place to edit the GRUB loader.... What am I missing? Can I install the GRUB loader to the 400 with Super GRUB Disc? I don't want to mess any of this up...

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

    Re: Dual-boot help XP/Ubuntu (separate HDs)

    Make the 400 first in the boot order in BIOS and then reinstall Grub following this:
    http://ubuntuforums.org/showthread.php?t=224351
    I advise you to read the link I gave you. It's very informative.

    Dr. Fernando Duran Dollenz
    Libertad 584
    6824871

  6. #6
    Join Date
    May 2007
    Location
    Central PA
    Beans
    30
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: Dual-boot help XP/Ubuntu (separate HDs)

    Okay, I got GRUB back on hd3 (the 400) with the instructions above. Now, when I try to boot to any of the Ubuntu options from there, I get an error message: "Error 22: No such partition"
    When I try to boot to XP (no idea how it got there...), I get "NTLDR missing. Restart now" error.
    I am looking at the menu.lst file in the grub folder on the Ubuntu partition now, and it all looks correct. Here's what's there (minus comments of course):

    title Ubuntu 8.04.1, kernel 2.6.24-19-generic
    root (hd3,4)
    kernel /boot/vmlinuz-2.6.24-19-generic root=UUID=0e816250-8f34-45c6-b9da-d7cded0df554 ro quiet splash
    initrd /boot/initrd.img-2.6.24-19-generic
    quiet

    title Ubuntu 8.04.1, kernel 2.6.24-19-generic (recovery mode)
    root (hd3,4)
    kernel /boot/vmlinuz-2.6.24-19-generic root=UUID=0e816250-8f34-45c6-b9da-d7cded0df554 ro single
    initrd /boot/initrd.img-2.6.24-19-generic

    title Ubuntu 8.04.1, memtest86+
    root (hd3,4)
    kernel /boot/memtest86+.bin
    quiet

    title Other operating systems:
    root

    title Microsoft Windows XP Professional
    root (hd2,0)
    savedefault
    makeactive
    map (hd0) (hd2)
    map (hd2) (hd0)
    chainloader +1


    I have not changed any of it. hd2 is my 80GB with XP on it, hd3 is the one I split and put Ubuntu on.
    I'm totally confused.

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

    Re: Dual-boot help XP/Ubuntu (separate HDs)

    Post:
    sudo fdisk -lu

    Dr. Fernando Duran Dollenz
    Libertad 584
    6824871

  8. #8
    Join Date
    May 2007
    Location
    Central PA
    Beans
    30
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: Dual-boot help XP/Ubuntu (separate HDs)

    Disk /dev/sda: 160.0 GB, 160041885696 bytes
    255 heads, 63 sectors/track, 19457 cylinders, total 312581808 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Disk identifier: 0x1a751a74

    Device Boot Start End Blocks Id System
    /dev/sda1 * 63 312576704 156288321 7 HPFS/NTFS

    Disk /dev/sdb: 200.0 GB, 200049647616 bytes
    255 heads, 63 sectors/track, 24321 cylinders, total 390721968 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Disk identifier: 0x122ae170

    Device Boot Start End Blocks Id System
    /dev/sdb1 * 63 390716864 195358401 7 HPFS/NTFS

    Disk /dev/sdc: 80.0 GB, 80026361856 bytes
    255 heads, 63 sectors/track, 9729 cylinders, total 156301488 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Disk identifier: 0x67f4faae

    Device Boot Start End Blocks Id System
    /dev/sdc1 * 63 156280319 78140128+ 7 HPFS/NTFS

    Disk /dev/sdd: 400.0 GB, 400088457216 bytes
    255 heads, 63 sectors/track, 48641 cylinders, total 781422768 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Disk identifier: 0x2e064144

    Device Boot Start End Blocks Id System
    /dev/sdd1 63 427248674 213624306 7 HPFS/NTFS
    /dev/sdd2 427248675 781417664 177084495 5 Extended
    /dev/sdd5 427248738 766959164 169855213+ 83 Linux
    /dev/sdd6 766959228 781417664 7229218+ 82 Linux swap / Solaris

  9. #9
    Join Date
    May 2007
    Location
    Central PA
    Beans
    30
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: Dual-boot help XP/Ubuntu (separate HDs)

    I'm guessing I have to change the hd2 and hd3 in the menu.lst file to sdc and sdd respectively?

    Edit: I can't edit and save menu.lst from the live cd.... any workaround? (if I need to, that is)
    Last edited by mastaphoo; August 15th, 2008 at 06:38 PM.

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

    Re: Dual-boot help XP/Ubuntu (separate HDs)

    Post:
    cat /boot/grub/menu.lst
    (from the corresponding partition)

    Dr. Fernando Duran Dollenz
    Libertad 584
    6824871

Page 1 of 2 12 LastLast

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
  •