Auto Mount raid
https://www.howtoforge.com/how-to-resize-raid-partitions-shrink-and-grow-software-raid
You could add an entry to /etc/fstab
:
[crayon-662e185f95fae416022030/]
Make sure that /media/server
is present:
[crayon-662e185f95fb6970692167/]
You could use the UUID
of the partition instead of /dev/md126
The UUID of a filesystem is unlikely to change unless you alter it, whereas the partition may change its identifier and be named md0 or md255 or something like that.
Use the blkid
or lbslk
command to get the UUID, and then replace /dev/md126
with UUID=xxx-xxxxx-xxxxxx-xxx
in the above line:
[crayon-662e185f95fb9313740485/]
The UUID of /dev/md2
(the RAID array in this case) is 12341234-8a9c-43c3-cf5b-eaabd644035c, so the entry would look like:
[crayon-662e185f95fbb371203524/]