Code-Memo

Mounting and fstab

Mount / unmount

sudo mount /dev/sdb1 /mnt/data
mount | grep /mnt/data
sudo umount /mnt/data

Mount all entries from fstab:

sudo mount -a

Find stable identifiers

lsblk -f
sudo blkid

Prefer UUID= (or LABEL=) in /etc/fstab.

/etc/fstab format

Fields: <spec> <mountpoint> <fstype> <options> <dump> <pass>

Example:

UUID=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx  /mnt/data  ext4  defaults,noatime  0  2

Common options:

Troubleshooting