linux /proc/mounts 被删除,如何修复?

linux /proc/mounts 被删除,如何修复?

我不知道这是怎么发生的,但 /proc/mounts 消失了

root# cat /proc/mounts
cat: /proc/mounts: No such file or directory

我也无法再长时间挂载 NFS 共享。

#  mount -t nfs 10.10.10.10:/backups /mnt/thing/ -v
mount.nfs: timeout set for Mon May  3 16:24:58 2021
mount.nfs: trying text-based options 'vers=4.1,addr=10.10.10.10,clientaddr=10.10.10.11'
mount.nfs: mount(2): Invalid argument
mount.nfs: trying text-based options 'vers=4.0,addr=10.10.10.10,clientaddr=10.10.10.11'
mount.nfs: mount(2): Invalid argument
mount.nfs: rpc.statd is not running but is required for remote locking.
mount.nfs: Either use '-o nolock' to keep locks local, or start statd.
mount.nfs: an incorrect mount option was specified

我怎样才能解决这个问题?

答案1

您不应该能够删除 /proc/mounts;据我所知, proc 伪文件系统不允许该操作。

这可能意味着您尚未将 procfs 安装在 /proc 上。尝试这样做!

mount -t proc proc /proc

相关内容