Ubuntu 14.04 如何挂载NFS文件系统

Linux osetc 1994℃ 0评论

默认情况下ubutntu 系统没有安装nfs客户端程序,所以需要先安装nfs-common包,在使用mount命令挂在,输入下面的命令:

1
sudo apt-get install nfs-common

命令输出:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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文件系统。

转载请注明:osetc.com » Ubuntu 14.04 如何挂载NFS文件系统

喜欢 (0)or分享 (0)
发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址