mount a HD partition in the FS
prep
Get UUID of the partition
see [[lsblk command#show filesystem UUID]] or use “/mnt/data/SYS/scripts/scripts.bash/1. info-lists/list-disk-layout.sh”
=> data partion on hd0 part10 : UUID=”ebf9aa38-e1de-4bbf-b889-3a363a47f311”
If folder to mount the partition into not already exist, create it :
sudo mkdir -p /mnt/data
test
manually mount the partition using its UUID
sudo mount UUID=ebf9aa38-e1de-4bbf-b889-3a363a47f311 /mnt/data
unmount the newly mounted filesystem.
sudo umount /mnt/data
permanently mount
modify /etc/fstab
sudo xed /etc/fstab
by adding an extra entry to etc/fstab
specify UUID value in the first field (block special device)
#wm added : --> HD , part#6
UUID=ebf9aa38-e1de-4bbf-b889-3a363a47f311 /mnt/data ext4 defaults 0 1
#wm added : --> HD , part#4
UUID=ac25e02e-a9a9-4246-85f6-6554cbe43ead /mnt/backup ext4 defaults,noatime 0 1
etc/fstab line/entry stucture
- UUID : more secure that deviceid , it will keep working even if disks / parts are addeded /deleted
- mount point
- fs
- options :
- defaults
- defaults,noatime
- sw : swap
- errors=remount-ro : system partition (os) - dump : 0
- pass : 1