https://www.howtoforge.com/how-to-resize-raid-partitions-shrink-and-grow-software-raid
You could add an entry to /etc/fstab:
|
1 2 |
/dev/md126 /media/server ext4 defaults 0 0 |
Make sure that /media/server is present:
|
1 2 |
sudo mkdir -p /media/kutay |
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:
|
1 2 3 4 5 6 7 8 9 10 11 12 |
# lsblk -o NAME,UUID NAME UUID sdc └─sdc1 8ebc357c-3d93-fd86-0535-cb852bbc7289 └─md2 12341234-8a9c-43c3-cf5b-eaabd644035c sdd └─sdd1 8ebc357c-3d93-fd86-0535-cb852bbc7289 └─md2 12341234-8a9c-43c3-cf5b-eaabd644035c # blkid /dev/sdc1: UUID="8ebc357c-3d93-fd86-0535-cb852bbc7289" UUID_SUB="77e19cfe-ed79-613f-bb18-b56bc30e0858" LABEL="titan:2" TYPE="linux_raid_member" /dev/sdd1: UUID="8ebc357c-3d93-fd86-0535-cb852bbc7289" UUID_SUB="e99d0a33-4944-4f1e-4a90-b65fa2e57b56" LABEL="titan:2" TYPE="linux_raid_member" /dev/md2: UUID="12341234-8a9c-43c3-cf5b-eaabd644035c" TYPE="ext4" |
The UUID of /dev/md2 (the RAID array in this case) is 12341234-8a9c-43c3-cf5b-eaabd644035c, so the entry would look like:
|
1 |
UUID=12341234-8a9c-43c3-cf5b-eaabd644035c /media/kutay ext4 defaults 0 0 |

