Read more

What are these numbers in /etc/fstab for?

Moritz Kraus
January 05, 2024Software engineer at makandra GmbH

Wondering what these numbers in the mount entries in /etc/fstab are meaning?

The first number fs_freq

Illustration web development

Do you need DevOps-experts?

Your development team has a full backlog? No time for infrastructure architecture? Our DevOps team is ready to support you!

  • We build reliable cloud solutions with Infrastructure as code
  • We are experts in security, Linux and databases
  • We support your dev team to perform
Read more Show archive.org snapshot

When this field is set to 1 dump(8) will make a backup of the partition. Not using dump for backups? You can ignore the field.

The second number fs_passno

This field determines the order of partition to fsck. Every partition that have seen more than Maximum mount count will undergo an fsck unless the vaule is set to 0.

Lets see how Maximum mount count is set on my Ubuntu 22.04:

 sudo tune2fs -l /dev/nvme0n1p2 | grep 'Maximum mount count'
Maximum mount count:      -1

This means the partition is not fscked after a certain number of mounts.

Conclusion

Looks like the numbers can be safely omitted on modern installations.

Posted by Moritz Kraus to makandra Operations (2024-01-05 16:13)