I know how to map /etc/fstab
to the mount point with the device name:
/dev/sdb1 /mnt/home2 ext4 usrjquota=quota.user,jqfmt=vfsv0 0 0
This practice is however highly flawed as it is randomized and can change on reboots, especially when adding and removing disks. Instead, use UUID:
UUID=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx /mnt/home2 ext4 usrjquota=quota.user,jqfmt=vfsv0 0 0
The problem is that I need /dev/sda1
to remain /dev/sda1
and /dev/sdb1
to remain /dev/sdb1
(...etc with many drives) throughout reboots and changing and removing of disks.
Therefore, how can I retain BOTH the device name such as /dev/sda1
AND the mount point such as /mnt/home2
which will never be lost when adding, removing disks or on reboots?
Can both be added via fstab? If not, how to do it?