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 fsck
ed after a certain number of mounts.
Conclusion
Looks like the numbers can be safely omitted on modern installations.