我正在尝试安装我的 Buffalo NAS:
/etc/fstab:
//192.168.2.20/Movies /mnt/Movies cifs rw,noexec,nosuid,password=Password1,username=buffalonas,nodev
执行以下命令时出现以下错误:
crash@crash-M17x:/sbin$ sudo mount -a
mount: wrong fs type, bad option, bad superblock on //192.168.2.20/Movies,
missing codepage or helper program, or other error
(for several filesystems (e.g. nfs, cifs) you might
need a /sbin/mount.<type> helper program)
In some cases useful info is found in syslog - try
dmesg | tail or so
我在其他论坛上看到过,我需要更新或安装,cifs-utils
因为我目前没有/sbin/mount.cifs
文件,只有 mount.filesmount.ntfs
但是当我执行:
crash@crash-M17x:/sbin$ sudo apt-get install cifs-utils
Reading package lists... Done
Building dependency tree
Reading state information... Done
cifs-utils is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
那么我如何知道我是否拥有最新版本cifs-utils
?如果我已经拥有最新版本,我该如何安装mount.cifs
文件?
答案1
您可以使用以下命令查看版本以及其来源:
apt-cache policy cifs-utils
使用此命令您可以查看包安装的所有文件:
apt-file list cifs-utils
cifs-utils: /etc/request-key.d/cifs.idmap.conf
cifs-utils: /etc/request-key.d/cifs.spnego.conf
cifs-utils: /sbin/mount.cifs
cifs-utils: /usr/bin/cifscreds
cifs-utils: /usr/bin/getcifsacl
cifs-utils: /usr/bin/setcifsacl
cifs-utils: /usr/sbin/cifs.idmap
cifs-utils: /usr/sbin/cifs.upcall
cifs-utils: /usr/share/doc/cifs-utils/NEWS.Debian.gz
cifs-utils: /usr/share/doc/cifs-utils/README
cifs-utils: /usr/share/doc/cifs-utils/changelog.Debian.gz
cifs-utils: /usr/share/doc/cifs-utils/copyright
cifs-utils: /usr/share/man/man1/cifscreds.1.gz
cifs-utils: /usr/share/man/man1/getcifsacl.1.gz
cifs-utils: /usr/share/man/man1/setcifsacl.1.gz
cifs-utils: /usr/share/man/man8/cifs.idmap.8.gz
cifs-utils: /usr/share/man/man8/cifs.upcall.8.gz
cifs-utils: /usr/share/man/man8/mount.cifs.8.gz
正如您所见,它已安装/sbin/mount.cifs
。
最后,您可以使用以下命令检查所有 md5sum 是否正确:
dlocate -md5check cifs-utils