Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13

Thread: Ubuntu 10.04LTS 64 bit raid1 will not boot from second drive

  1. #11
    Join Date
    Dec 2008
    Location
    Deep Woods of PA
    Beans
    699
    Distro
    Kubuntu 11.10 Oneiric Ocelot

    Re: Ubuntu 10.04LTS 64 bit raid1 will not boot from second drive

    Quote Originally Posted by mucho_maze View Post
    btw, i tried to switch the secondary hdd to the primary sata (without using the other hdd) and from here it couldn't boot either... Hmm. Exactly the same behaviour as when connected to the secondary sata.

    It seems something is missing on this drive... But what could it be?

    grub...
    Regards,

    Karlson

  2. #12
    Join Date
    Aug 2006
    Location
    Denmark
    Beans
    35
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Ubuntu 10.04LTS 64 bit raid1 will not boot from second drive

    Quote Originally Posted by karlson View Post
    grub...
    Yes exactly. GRUB was not install on /dev/sdb, even though I've run

    Code:
    sudo grub-install /dev/sda
    sudo grub-install /dev/sdb
    When trying to install on md0 I got the following
    Code:
    sudo grub-install /dev/md0
    
    usr/sbin/grub-setup: warn: Attempting to install GRUB to a partition instead of the MBR. This is a BAD idea.
    /usr/sbin/grub-setup: error: embedding is not possible, but this is required when the root device is on a RAID array or LVM volume.
    So the question was how to install GRUB. It turned out that I needed to run these commands

    Code:
    grub-setup -r  ”(hd1)” /dev/sdb
    grub-install --modules=raid /dev/sdb (thanks to HanB: http://ubuntuforums.org/showthread.php?t=1539205)
    in order to install GRUB properly. After these commands have been run, I can take out either of the two drives, sda and sdb, and have a functioning system.

    Thanks for all your help.
    Last edited by mucho_maze; October 16th, 2011 at 09:35 PM.

  3. #13
    Join Date
    Apr 2009
    Beans
    12

    Re: Ubuntu 10.04LTS 64 bit raid1 will not boot from second drive

    Quote Originally Posted by mucho_maze View Post
    Yes exactly. GRUB was not install on /dev/sdb, even though I've run

    Code:
    sudo grub-install /dev/sda
    sudo grub-install /dev/sdb
    When trying to install on md0 I got the following
    Code:
    sudo grub-install /dev/md0
    
    usr/sbin/grub-setup: warn: Attempting to install GRUB to a partition instead of the MBR. This is a BAD idea.
    /usr/sbin/grub-setup: error: embedding is not possible, but this is required when the root device is on a RAID array or LVM volume.
    So the question was how to install GRUB. It turned out that I needed to run these commands

    Code:
    grub-setup -r  ”(hd1)” /dev/sdb
    grub-install --modules=raid /dev/sdb (thanks to HanB: http://ubuntuforums.org/showthread.php?t=1539205)
    in order to install GRUB properly. After these commands have been run, I can take out either of the two drives, sda and sdb, and have a functioning system.

    Thanks for all your help.
    This post is a year old, but you just saved my bacon, sir! My hat is off to you. Thank you so much. This really should be documented somewhere.

Page 2 of 2 FirstFirst 12

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
  •