Andreas Vöst
26 days
Claus-Theodor Riegg
4 years
Andreas Vöst
2 months
Andreas Vöst
2 months
Kim Klotz
3 months
Claus-Theodor Riegg
8 years
Andreas Vöst
5 months
Andreas Vöst
7 months
Claus-Theodor Riegg
8 years
Marc Dierig
9 months
Claus-Theodor Riegg
7 years

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.