Andreas Vöst
19 days
Kim Klotz
1 month
Andreas Vöst
2 months
Andreas Vöst
5 months
Marc Dierig
7 months
Stefan Langenmaier
9 months

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.