Results 1 to 4 of 4

Thread: Boot grub legacy from grub2?

  1. #1
    Join Date
    Jun 2010
    Beans
    20

    Boot grub legacy from grub2?

    I have an old hard disk drive (the ribbon one) that I see using usb has a boot partition but don't see anything else.

    So, I thought to try to boot up the the disk (which is running legacy grub) over usb from grub2 to check it out.

    But, google has failed me. I can find the drive fine, I think.

    Code:
    grub> ls (hd1,1)
    Partition hd1,1: Filesystem type ext2 - Label "/boot" blah blah blah
    grub> set root=(hd1,1)
    grub> chainloader +1
    error: invalid signature
    grub> NOOOOOOOOOOOOOO!
    I want to see the data on that disk. Is there a way to boot it?

  2. #2
    Join Date
    Jul 2005
    Location
    England
    Beans
    Hidden!

    Re: Boot grub legacy from grub2?

    Not quite sure exactly what you mean by "the ribbon one" but perhaps it is a pata or IDE attached drive on a ribbon cable.

    If you can see it has a boot partition when it's attached by usb (in a caddy?) you should also be able to see what other partitions may be on it with the command
    Code:
    sudo fdisk -l
    Once that can be seen it should be possible to mount the partitions and get off any data on the drive quite easily. You can even do it with a live CD session if there is no other way.
    DISTRO: Xubuntu 14.04-64bit --- Code-tags --- Boot-Repair --- Grub2 wiki & Grub2 Basics --- RootSudo

  3. #3
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: Boot grub legacy from grub2?

    Even with grub legacy most users did not install it to a PBR or partition boot sector. Your chainload would only work if grub was in PBR. Grub legacy also is normally in the MBR, has part of the boot code in the sectors just after the MBR to find the partition with the boot code.

    If USB is bootable.

    I used to use an entry like this. Boot drive is always hd0, then on my system the grub2 drive order is the same as the ports plugged into the SATA ports on hard drive. But USB flash drives can change that order.

    menuentry "Lucid Lynx on sda (When from sdc) Chainboot" {
    set root=(hd1)
    chainloader +1
    }

    For more info on UEFI boot install & repair - Regularly Updated :
    http://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

  4. #4
    Join Date
    Jun 2010
    Beans
    20

    Re: Boot grub legacy from grub2?

    Quote Originally Posted by ajgreeny View Post
    Not quite sure exactly what you mean by "the ribbon one" but perhaps it is a pata or IDE attached drive on a ribbon cable.

    If you can see it has a boot partition when it's attached by usb (in a caddy?) you should also be able to see what other partitions may be on it with the command
    Code:
    sudo fdisk -l
    Once that can be seen it should be possible to mount the partitions and get off any data on the drive quite easily. You can even do it with a live CD session if there is no other way.
    Alright this helped immensely.

    What I did:

    I identified the partition I wanted to mount via:
    sudo fdisk -l

    Turns out it is a LVM partition so, I installed lvm2 and then
    vgscan vgchange -a y

    The end!

    Thanks for all the helps guys!

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
  •