Ubuntu 14.04 如何挂载NFS文件系统
December 16, 2014
默认情况下ubutntu 系统没有安装nfs客户端程序,所以需要先安装nfs-common包,在使用mount命令挂在,输入下面的命令:
sudo apt-get install nfs-common
命令输出:
devops@devop:~$ sudo apt-get install nfs-common [sudo] password for devops: Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: libgssglue1 libnfsidmap2 libtirpc1 rpcbind Suggested packages: watchdog The following NEW packages will be installed: libgssglue1 libnfsidmap2 libtirpc1 nfs-common rpcbind 0 upgraded, 5 newly installed, 0 to remove and 289 not upgraded. Need to get 423 kB of archives. After this operation, 1,293 kB of additional disk space will be used. Do you want to continue [Y/n]? Y WARNING: The following packages cannot be authenticated! libgssglue1 libnfsidmap2 libtirpc1 rpcbind nfs-common Install these packages without verification [y/N]? y Get:1 http://cn.archive.ubuntu.com/ubuntu/ raring/main libgssglue1 i386 0.4-2 [22.1 kB] Err http://cn.archive.ubuntu.com/ubuntu/ raring/main libnfsidmap2 i386 0.25-4ubuntu1 404 Not Found [IP: 112.124.140.210 80] Err http://cn.archive.ubuntu.com/ubuntu/ raring/main libtirpc1 i386 0.2.2-5build1 404 Not Found [IP: 112.124.140.210 80] Err http://cn.archive.ubuntu.com/ubuntu/ raring/main rpcbind i386 0.2.0-8ubuntu1 404 Not Found [IP: 112.124.140.210 80] Err http://cn.archive.ubuntu.com/ubuntu/ raring/main nfs-common i386 1:1.2.6-3ubuntu2 404 Not Found [IP: 112.124.140.210 80] Fetched 22.1 kB in 1s (17.5 kB/s) Failed to fetch http://cn.archive.ubuntu.com/ubuntu/pool/main/libn/libnfsidmap/libnfsidmap2_0.25-4ubuntu1_i386.deb 404 Not Found [IP: 112.124.140.210 80] Failed to fetch http://cn.archive.ubuntu.com/ubuntu/pool/main/libt/libtirpc/libtirpc1_0.2.2-5build1_i386.deb 404 Not Found [IP: 112.124.140.210 80] Failed to fetch http://cn.archive.ubuntu.com/ubuntu/pool/main/r/rpcbind/rpcbind_0.2.0-8ubuntu1_i386.deb 404 Not Found [IP: 112.124.140.210 80] Failed to fetch http://cn.archive.ubuntu.com/ubuntu/pool/main/n/nfs-utils/nfs-common_1.2.6-3ubuntu2_i386.deb 404 Not Found [IP: 112.124.140.210 80] E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
安装完成后,使用mount命令挂在nfs文件系统。
0 Comments