Linux filesystem table

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:

fstab filesystem table
Each entry has several fields that are used to identify a certain partition or set specific configurations, as follows:
– device name
– the mount point location
– the file system type
– other options that can include:
  • 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

–  informs the System to run the filesystem integrity check upon startup.The root partition should be set to 1 to indicate the first priority while the others must be set to 2. To disable boot check, set this option 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:

fstab filesystem table



Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s