单执行mount命令可正常手动挂载 //ip/share /nas cifs defaults,username=haha,password=***,vers=2.0 0 0 将挂载信息写入/etc/fstab,重启动无法自动挂载 通过systemctl stayus nas.mount 查看错误 只有一个active:failed,最后一行警告日志不完整或不可用。 通过tail -f /var/log/kern.log 查看日志 CIFS VFS:Error connecting to socket .Aborting operation. CIFS VFS:cifs_mount failed w/return code=-2 然后如果手动执行mount -a的命令可挂载下来,但在kern.log中有提示: CIFS VFS:Autodisabling the use of server inode numbers on new server. CIFS VFS:The server doesn't seem to support them properly or the files might be on different servers.