Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
首先,我使用命令从 SMB 服务器挂载存储
sudo mount.cifs //{addr}/{path} /mnt/smb -o vers=2.0,guest
其次,我关闭了一个网络接口(通过它我可以访问 SMB 存储)。
sudo ifconfig enp0s3 down
之后出现问题。例如命令
df
挂起几分钟。
有没有办法挂载存储,这样当连接中断时,只有挂载点变得不可用,而不是所有系统?我试图阅读 mount.cifs 的手册,但找不到解决方案。