I’ve showed you in a previous article how to mount file systems on your Linux machine. It’s easy to mount partitions on a server using the mount command but note that once the server is rebooted, all mount points will be erased. To overcome this problem, Linux machines host a local filesystem table in /etc/fstab. This plain text database is checked every time the System is rebooted and all entries are mounted at startup:
- defaults – with this option activated, the System will use mount command defaults to mount the file system (enable device files, executables, read-write mode, etc.)
- errors – sets the behavior of the kernel if there is a problem when mounting the file system. This can include errors=continue, errors=remount-ro, errors=panic.
- noauto – inform the System that the entry should not be mounted when mount -a command is used. mount -a (all) is used to mount all entries from the fstab database.
- user – allows users to mount that specific entry.
– enable or disable backing up of the device/partition. By default the dump is set to 0
Linux distributions use universally unique identifier (UUID) for each storage device. You can use the blkid command to view all UUIDs for storage devices: