Em sistemas modernos, o / etc / mtab é um link simbólico para / proc / mounts. / proc / mounts é um arquivo virtual fornecido pelo kernel que mostra o status atual de todas as montagens. Portanto, /proc/mounts
será sempre atualizado após qualquer operação mount
. Veja man mount
.
The programs mount and umount traditionally maintained a list of cur‐ rently 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 main‐ tained in userspace cannot reliably work with namespaces, containers and other advanced Linux features.
O RHEL7 parece ser um sistema desse tipo.
It is possible that files /etc/mtab and /proc/mounts don't match
...
use kernel (/proc/mounts) as a source about filesystems information. This solution will be used in RHEL7.
link >