Results 1 to 2 of 2

Thread: mdadm linear to boot from sda1?

  1. #1
    Join Date
    May 2012

    Question mdadm linear to boot from sda1?

    Hi all,

    I currently have Ubuntu 12.10 installed on my boot disk (sda1) and I have added a 2nd drive (sdb1) which I would like to use to create a linear drive (md0) with mdadm. My question is, can I create md0 and still retain the original file system and boot sector from sda1?

    Would the following command do the trick?

    mdadm --create --verbose /dev/md0 --level=linear --raid-devices=2 /dev/sda1/ /dev/sdb1
    EDIT : Ok, I tried the above command and I can see the md0 device with cat /proc/mdstat as :

    md0 : active linear sda1[0] sdb1[1]
    201603056 blocks super 1.2 0k rounding

    unused devices: <none>

    But now when I boot I get dumped at a grub rescue prompt.. Is there any way to still boot from sda1/recover data?
    Last edited by snowball2; November 5th, 2012 at 02:08 AM. Reason: updated

  2. #2
    Join Date
    May 2012

    Re: mdadm linear to boot from sda1?

    Ok I've rolled back to the initial configuration by replacing the superblocks on sda1 and sdb1.. So question again is really to know if it is possible to convert an existing install to boot from a newly created md0?

Tags for this Thread


Posting Permissions

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