Почему mount не показывает полный список смонтированных файлов, как показано в /etc/mtab и /proc/mounts [дубликат]

Estaba luchando con el mismo problema, ni yum clean allni rm -f /etc/yum.repos.d/nodesource*ayudaron. Luego descubrí que yum usó el repositorio de Epel para instalar el nodo, así que lo deshabilité temporalmente (en /etc/yum.repos.d/epel.repoconjuntoenabled=0)y luego

curl -sL https://rpm.nodesource.com/setup_8.x | bash -
yum install nodejs
0
13.05.2019, 12:44
1 ответ

Вопрос неточен. Согласно справочной странице, ожидается, что mount не отражает /proc/mounts.

It is possible that the files /etc/mtab and /proc/mounts don't match on systems with a regular mtab file. The first file is based only on the mount command options, but the content of the second file also depends on the kernel and others settings (e.g. on a remote NFS server -- in certain cases the mount command may report unreliable information about an NFS mount point and the /proc/mounts file usually contains more reliable information.) This is another reason to replace the mtab file with a symlink to the /proc/mounts file.

Относительно /etc/mtab я могу частично ответить на вопрос. Это таблица, поддерживаемая mount, или символическая ссылка на /proc/mounts. В первом случае несоответствие может возникнуть, если вы явно указываете mount не записывать запись (, например ).

Во втором случае, если /etc/mtab имеет символическую ссылку на /proc/mounts, у меня нет объяснения, почему mount не может прочитать все записи

0
28.01.2020, 03:41

Теги

Похожие вопросы