Linux挂载Windows共享文件夹

在centos mount cifs 挂window 网盘容易出现问题如下:

一、挂载时,用户/密码错误

mount error(13): Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

对应/var/log/message记录

Oct 12 16:20:01 localhost kernel: Status code returned 0xc000006d NT_STATUS_LOGON_FAILURE
Oct 12 16:20:01 localhost kernel: CIFS VFS: Send error in SessSetup = -13
Oct 12 16:20:01 localhost kernel: CIFS VFS: cifs_mount failed w/return code = -13

二、没有分享目录

Retrying with upper case share name
mount error(6): No such device or address
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

对应/var/log/message记录

Oct 12 16:20:06 localhost kernel: CIFS VFS: cifs_mount failed w/return code = -6
Oct 12 16:20:17 localhost kernel: CIFS VFS: cifs_mount failed w/return code = -6
Oct 12 16:20:17 localhost kernel: CIFS VFS: cifs_mount failed w/return code = -6

目前遇到的问题就是这些

补充一句,格式一定要写正确:

mount -t cifs -o username=administrator,password=

**

 //192.168.1.1/分享目录 /linux/share

windows的share文件挂载到linux/mnt/share下,当windows重启,会导致df卡住。

解决办法:
运行下面两个指令:
1.umount -l /mnt/share
2.killall -9 df
后恢复。

版权声明:
作者:WangGaoli
链接:https://wanggaoli.com/2840.html
来源:王高利的个人博客
文章版权归作者所有,未经允许请勿转载。

THE END
分享
二维码
< <上一篇
下一篇>>