我使用autofs挂载服务器(cifs)的驱动器,该驱动器在过去运行良好。将Ubuntu从15.04(Vivid)更新到15.10(Wily)之后,这些挂载点会定期挂断。ls / mnt / serverdrive / {mountpoint}不会给出任何结果,但是会导致终端冻结。过去使用fstab时,我遇到了类似的问题-认为这是Windows服务器的超时。当时,Autofs是解决方案。
但是,我不知道是什么原因导致autofs死机,也不知道在哪里搜索问题。一段时间后,有时会再次访问安装点。不过,通过Nautilus进行访问没有问题。
升级到15.10时,我将配置复制到了新的(默认)auto.master中。我的auto.master配置在下面给出。auto.cifs-shares中的配置是我以前的配置,未更改。
sudo服务重新启动autofs也无济于事。
这是我的配置中的问题还是新的autofs-packages的问题?最终还与以下内容有关:https : //bugs.launchpad.net/ubuntu/+source/autofs/+bug/1503034吗?
感谢大家!
#
# Sample auto.master file
# This is a 'master' automounter map and it has the following format:
# mount-point [map-type[,format]:]map [options]
# For details of the format look at auto.master(5).
#
#/misc /etc/auto.misc
#
# NOTE: mounts done from a hosts map will be mounted with the
# "nosuid" and "nodev" options unless the "suid" and "dev"
# options are explicitly given.
#
#/net -hosts
#
# Include /etc/auto.master.d/*.autofs
# The included files must conform to the format of this file.
#
+dir:/etc/auto.master.d
#
# Include central master map if it can be found using
# nsswitch sources.
#
# Note that if there are entries for /net or /misc (as
# above) in the included master map any keys that are the
# same will not be seen as the first read key seen takes
# precedence.
#
+auto.master
# Own configs from ubuntu 15.04
/mnt/merkur /etc/auto.cifs-shares
您可以获得一些线索,请按照调试步骤操作:
如果您在自动挂载文件系统时遇到麻烦,则在前台运行自动挂载可能会很有用。
停止autofs守护程序
sudo service autofs stop
使用详细信息在前台运行自动挂载
sudo automount -f -v
从另一个终端,尝试通过将目录更改为安装点来安装文件系统。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句