Ubuntu 14.04:如何使用 mount.cifs、mount.nfs,它们不再存在于存储库中?

Ubuntu 14.04:如何使用 mount.cifs、mount.nfs,它们不再存在于存储库中?

在 Ubuntu 12 LTS 中,我总是使用安装.cifs挂载.nfs

现在它们不在 Ubuntu 14.04 存储库中,那么如何使用 mount cifs 和 mount nfs 或在 14 中安装它们?

谢谢

IE)

Ubuntu 12.04 始终适用于:

 root@ub12box# mount -t cifs -o user=administrator '\\192.168.0.1\Data' /tmp/myServer ; df ;
 Password: ***************
 Filesystem                1K-blocks      Used Available Use% Mounted
 on /dev/sdb2                 144636 85800  26058836  8% /
 \\192.168.0.1\Data 8059772 652288 407484  6% /tmp/myServer

但在 Ubuntu 14.04 机器上同样的命令不起作用:

root@ub14box# mount -t cifs -o user=administrator '\\192.168.0.1\Data' /tmp/myServer ; df ;
mount: block device \\192.168.0.1\Data is write-protected, mounting read-only 
mount: cannot mount block device \\192.168.0.1\Data read-only

Filesystem                1K-blocks      Used Available Use% Mounted
on /dev/sdb2                 126636 950900  99958936  2% /

root@ub14box# dmesg|tail
[ 2023.664186] Status code returned 0xc000006d NT_STATUS_LOGON_FAILURE
[ 2023.664197] CIFS VFS: Send error in SessSetup = -13
[ 2023.667124] CIFS VFS: cifs_mount failed w/return code = -13
[ 2023.676417] Status code returned 0xc000006d NT_STATUS_LOGON_FAILURE
[ 2023.676424] CIFS VFS: Send error in SessSetup = -13
[ 2023.676499] CIFS VFS: cifs_mount failed w/return code = -13

答案1

该命令由和mount.cifs提供。cifs-utilsmount.nfsnfs-common

一般来说,当你在寻找一个特定的文件,但不知道哪个包提供了它时,你可以在Ubuntu 存储库或在synaptic。或者,您也可以使用apt-file

如果尚未安装,请使用 安装它sudo apt-get install apt-file,然后使用 更新其数据库apt-file update。完成后,您可以轻松搜索包内容:

$ apt-file search mount.cifs mount.nfs
cifs-utils: /sbin/mount.cifs
cifs-utils: /usr/share/man/man8/mount.cifs.8.gz
$ apt-file search mount.nfs
manpages-fr-extra: /usr/share/man/fr/man8/mount.nfs.8.gz
manpages-fr-extra: /usr/share/man/fr/man8/umount.nfs.8.gz
nfs-common: /sbin/mount.nfs
nfs-common: /sbin/mount.nfs4
nfs-common: /sbin/umount.nfs
nfs-common: /sbin/umount.nfs4
nfs-common: /usr/share/man/man8/mount.nfs.8.gz
nfs-common: /usr/share/man/man8/umount.nfs.8.gz

相关内容