Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Final objective: Two disks, one old, one new. Need to setup raid-1 without re-installing ubuntu. System is Ubuntu 12.04. Note that I am trying everything in a virtual machine (virtualbox)

What I have done so far in a nutshell:

  • Copied partitions from sda to sdb.
  • Formatted the sdb1 to Linux raid auto.
  • Created raid-array (md1) with sdb1 and one missing drive.
  • Created ext4 filesystem for /dev/md1.
  • Configured mdadm.
  • Mounted /dev/md1 to /mnt/md1 folder.
  • Used rsync to copy everything from / (filesystem) to /mnt/md1

Now I must configure grub somehow so that it boots from the degraded array which I have setup above (after reboot I will add sda1 to raid-array)

This is my UNsuccessful attempt so far:

  • Edit /etc/fstab to replace UUID with /dev/md1 for the / partition
  • Edit /etc/mtab to replace /dev/sda1 with /dev/md1
  • Edit /etc/default/grub to set this: GRUB_DISABLE_LINUX_UUID=true
  • Created a menu entry for grub which is suppose is the main reason while the whole thing failed

Here is what I see during boot after I select my menu entry

error: file not found
error: file not found
Loading Linux 3.2.0-34-generic ...
error: no such disk.
Loading initial ramdisk ...
error: you need to load the kernel first.

Press any key to continue ...
share|improve this question

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.