Claus-Theodor Riegg
8 years
Claus-Theodor Riegg
7 years
Claus-Theodor Riegg
6 years
Andreas Vöst
1 year

What are these numbers in /etc/fstab for?

Posted . Visible to the public.

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

The first number fs_freq

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.

Moritz Kraus
Last edit
Moritz Kraus
License
Source code in this card is licensed under the MIT License.