Andreas Vöst
1 month
Marc Dierig
3 months
Claus-Theodor Riegg
7 years
Claus-Theodor Riegg
6 years
Claus-Theodor Riegg
4 years
Andreas Vöst
8 months

What are these numbers in /etc/fstab for?

Posted 4 months ago. 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
4 months ago
Moritz Kraus
License
Source code in this card is licensed under the MIT License.