Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

6
  • 1. The subunit (127 from your /dev/md127) is stored in the array metadata. It can be changed with mdadm. 2. You used to need the mdadm.conf if you're booting with an initramfs. (I don't think it's needed on systems like a Pi because they don't use initramfs.) Commented Nov 22, 2018 at 8:51
  • @roaima This recipe is not specific to Pi. I'm doing this on Linux 18.04 Server LTS, on a regular PC. I've also tried the initramfs suggested solution, which also doesn't work. So at least in Linux 18.04 Server LTS the 'mdadm' does not require /etc/mdadm/mdadm.conf file. Commented Nov 22, 2018 at 17:25
  • After trawling through posts, this is the answer that finally did it for me. The first time I tried to set up the array with disc partitions it failed though so I’m not entirely sure what I did differently. It’s possible that using the UUID for my fstab is what did the trick. Commented Nov 14, 2019 at 14:58
  • 1
    Upvoted, this one actually works. Of all the tutorials on the net, only one works, a little sad actually. Thank you for posting this solution! Commented Nov 17, 2019 at 22:23
  • Using sda1,sdb1, instead of sda,sdb (as I read in a Digital Ocean tutorial) fixed the problem to me. Commented May 27, 2024 at 13:52