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

Bra*_*ran 16 nfs mount cifs 14.04

在 Ubuntu 12 LTS 中,我总是使用mount.cifsmount.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
Run Code Online (Sandbox Code Playgroud)

但不适用于 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
Run Code Online (Sandbox Code Playgroud)

ter*_*don 20

mount.cifs命令是通过提供cifs-utilsmount.nfs通过nfs-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
Run Code Online (Sandbox Code Playgroud)