I thought /etc/mtab only exists for historical reasons.
And checking it shows:
lrwxrwxrwx 1 root root 19 Okt 12 2018 /etc/mtab -> ../proc/self/mounts
This is true at least back to Xenial (which I checked).
And for compatibility reasons programs often use /etc/mtab but it is actually
the same.
Quoting the man page of mount:
"The programs mount and umount traditionally maintained a list of currently
mounted filesystems in the file /etc/mtab. This real mtab file is still
supported, but on current Linux systems it is better to make it a symlink to
/proc/mounts instead, because a regular mtab file maintained in userspace
cannot reliably work with namespaces, containers and other advanced Linux
features."
So I wonder how the output can be different for you?
Do you not have that symlink set up?
** Changed in: monitoring-plugins (Ubuntu)
Status: New => Incomplete
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1881208
Title:
check_disk should look at /proc/mounts, not mtab
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/monitoring-plugins/+bug/1881208/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs