What Is Fstab in Linux?
Contents

Your Linux system’s filesystem table, aka fstab , is a configuration table designed to ease the burden of mounting and unmounting file systems to a machine. It is a set of rules used to control how different filesystems are treated each time they are introduced to a system.

How use fstab in Linux?

/etc/fstab file

  1. The /etc/fstab file is a system configuration file that contains all available disks, disk partitions and their options. …
  2. The /etc/fstab file is used by the mount command, which reads the file to determine which options should be used when mounting the specified device.
  3. Here is a sample /etc/fstab file:

What are the entries in fstab?

Each entry line in the fstab file contains six fields, each one of them describes a specific information about a filesystem.

  • First field – The block device. …
  • Second field – The mountpoint. …
  • Third field – The filesystem type. …
  • Fourth field – Mount options. …
  • Fifth field – Should the filesystem be dumped ? …
  • Sixth field – Fsck order.
James H. Sterling

James H. Sterling

Environmental Science & Climate Journalist

James Sterling reports on renewable energy developments, climate policy, ecological conservation, and green tech innovations around the globe.

Share this article
Twitter Facebook Pinterest