ubuntu挂载win共享目录出错的解决方法

在ubuntu系统上要挂载win系统中的共享目录,挂载的时候出现以下警告信息:

root@drfdai:~# mount -t cifs -o username=administrator,password=123456 //192.168.0.31/python /python
mount: wrong fs type, bad option, bad superblock on //192.168.0.31/python,
missing codepage or helper program, or other error
(for several filesystems (e.g. nfs, cifs) you might
need a /sbin/mount.<type> helper program)
系统日志中可能有一些重要的信息,
试试用 dmesg | tail 之类的命令查看。
解决方法
安装相应的包:
apt-get install -y cifs-utils
或者:
apt-get install smbfs -y

(如果是clentos,可以用yum安装)

 

如果上面apt-get都安装不了,就直接下载cifs-utils安装包

cifs-utils_5.5-1ubuntu1_i386.deb下载地址:
http://ftp.isu.edu.tw/pub/Linux/Ubuntu/ubuntu/pool/main/c/cifs-utils/

posted @ 2019-09-05 17:54  JackieDYH  阅读(26)  评论(0编辑  收藏  举报  来源