[root@centos7 /]# 

[root@centos7 /]# cat /etc/hosts

127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4

::1         localhost localhost.localdomain localhost6 localhost6.localdomain6

[root@centos7 /]# 

[root@centos7 /]# 

[root@centos7 /]# echo 192.168.0.x nas >> /etc/hosts

[root@centos7 /]# ping nas

PING nas (192.168.0.5) 56(84) bytes of data.

64 bytes from nas (192.168.0.5): icmp_seq=1 ttl=64 time=1.14 ms

64 bytes from nas (192.168.0.5): icmp_seq=2 ttl=64 time=0.395 ms

^C

--- nas ping statistics ---

2 packets transmitted, 2 received, 0% packet loss, time 1001ms

rtt min/avg/max/mdev = 0.395/0.772/1.149/0.377 ms

[root@centos7 /]# 

[root@centos7 /]# 

[root@centos7 /]# mount -t nfs nas:/volume1/file /mnt

mount: wrong fs type, bad option, bad superblock on nas:/volume1/file,

       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.

[root@centos7 /]# 

[root@centos7 /]# 

[root@centos7 /]# yum install nfs-utils

Failed to set locale, defaulting to C

Loaded plugins: fastestmirror

Loading mirror speeds from cached hostfile

 * base: ftp.daumkakao.com

 * extras: ftp.daumkakao.com

 * updates: ftp.daumkakao.com

Resolving Dependencies

--> Running transaction check

---> Package nfs-utils.x86_64 1:1.3.0-0.33.el7 will be installed

--> Processing Dependency: libtirpc >= 0.2.4-0.7 for package: 1:nfs-utils-1.3.0-0.33.el7.x86_64

--> Processing Dependency: gssproxy >= 0.3.0-0 for package: 1:nfs-utils-1.3.0-0.33.el7.x86_64

--> Processing Dependency: rpcbind for package: 1:nfs-utils-1.3.0-0.33.el7.x86_64

--> Processing Dependency: quota for package: 1:nfs-utils-1.3.0-0.33.el7.x86_64

--> Processing Dependency: libnfsidmap for package: 1:nfs-utils-1.3.0-0.33.el7.x86_64

--> Processing Dependency: libevent for package: 1:nfs-utils-1.3.0-0.33.el7.x86_64

--> Processing Dependency: keyutils for package: 1:nfs-utils-1.3.0-0.33.el7.x86_64

--> Processing Dependency: libtirpc.so.1()(64bit) for package: 1:nfs-utils-1.3.0-0.33.el7.x86_64

--> Processing Dependency: libnfsidmap.so.0()(64bit) for package: 1:nfs-utils-1.3.0-0.33.el7.x86_64

--> Processing Dependency: libevent-2.0.so.5()(64bit) for package: 1:nfs-utils-1.3.0-0.33.el7.x86_64

--> Running transaction check

---> Package gssproxy.x86_64 0:0.4.1-13.el7 will be installed

--> Processing Dependency: libverto-tevent for package: gssproxy-0.4.1-13.el7.x86_64

--> Processing Dependency: libini_config.so.3(INI_CONFIG_1.1.0)(64bit) for package: gssproxy-0.4.1-13.el7.x86_64

--> Processing Dependency: libref_array.so.1()(64bit) for package: gssproxy-0.4.1-13.el7.x86_64

--> Processing Dependency: libini_config.so.3()(64bit) for package: gssproxy-0.4.1-13.el7.x86_64

--> Processing Dependency: libcollection.so.2()(64bit) for package: gssproxy-0.4.1-13.el7.x86_64

--> Processing Dependency: libbasicobjects.so.0()(64bit) for package: gssproxy-0.4.1-13.el7.x86_64

---> Package keyutils.x86_64 0:1.5.8-3.el7 will be installed

---> Package libevent.x86_64 0:2.0.21-4.el7 will be installed

---> Package libnfsidmap.x86_64 0:0.25-15.el7 will be installed

---> Package libtirpc.x86_64 0:0.2.4-0.8.el7 will be installed

---> Package quota.x86_64 1:4.01-14.el7 will be installed

--> Processing Dependency: quota-nls = 1:4.01-14.el7 for package: 1:quota-4.01-14.el7.x86_64

--> Processing Dependency: tcp_wrappers for package: 1:quota-4.01-14.el7.x86_64

---> Package rpcbind.x86_64 0:0.2.0-38.el7 will be installed

--> Running transaction check

---> Package libbasicobjects.x86_64 0:0.1.1-27.el7 will be installed

---> Package libcollection.x86_64 0:0.6.2-27.el7 will be installed

---> Package libini_config.x86_64 0:1.3.0-27.el7 will be installed

--> Processing Dependency: libpath_utils.so.1(PATH_UTILS_0.2.1)(64bit) for package: libini_config-1.3.0-27.el7.x86_64

--> Processing Dependency: libpath_utils.so.1()(64bit) for package: libini_config-1.3.0-27.el7.x86_64

---> Package libref_array.x86_64 0:0.1.5-27.el7 will be installed

---> Package libverto-tevent.x86_64 0:0.2.5-4.el7 will be installed

--> Processing Dependency: libtevent.so.0(TEVENT_0.9.9)(64bit) for package: libverto-tevent-0.2.5-4.el7.x86_64

--> Processing Dependency: libtalloc.so.2(TALLOC_2.0.2)(64bit) for package: libverto-tevent-0.2.5-4.el7.x86_64

--> Processing Dependency: libtevent.so.0()(64bit) for package: libverto-tevent-0.2.5-4.el7.x86_64

--> Processing Dependency: libtalloc.so.2()(64bit) for package: libverto-tevent-0.2.5-4.el7.x86_64

---> Package quota-nls.noarch 1:4.01-14.el7 will be installed

---> Package tcp_wrappers.x86_64 0:7.6-77.el7 will be installed

--> Running transaction check

---> Package libpath_utils.x86_64 0:0.2.1-27.el7 will be installed

---> Package libtalloc.x86_64 0:2.1.6-1.el7 will be installed

---> Package libtevent.x86_64 0:0.9.28-1.el7 will be installed

--> Finished Dependency Resolution

Dependencies Resolved

==========================================================================================

 Package                       Arch                 Version                           Repository          Size

===============================================================================================================

Installing:

 nfs-utils                     x86_64               1:1.3.0-0.33.el7                  base               377 k

Installing for dependencies:

 gssproxy                      x86_64               0.4.1-13.el7                      base                87 k

 keyutils                      x86_64               1.5.8-3.el7                       base                54 k

 libbasicobjects               x86_64               0.1.1-27.el7                      base                25 k

 libcollection                 x86_64               0.6.2-27.el7                      base                41 k

 libevent                      x86_64               2.0.21-4.el7                      base               214 k

 libini_config                 x86_64               1.3.0-27.el7                      base                63 k

 libnfsidmap                   x86_64               0.25-15.el7                       base                47 k

 libpath_utils                 x86_64               0.2.1-27.el7                      base                27 k

 libref_array                  x86_64               0.1.5-27.el7                      base                26 k

 libtalloc                     x86_64               2.1.6-1.el7                       base                34 k

 libtevent                     x86_64               0.9.28-1.el7                      base                34 k

 libtirpc                      x86_64               0.2.4-0.8.el7                     base                88 k

 libverto-tevent               x86_64               0.2.5-4.el7                       base               9.0 k

 quota                         x86_64               1:4.01-14.el7                     base               179 k

 quota-nls                     noarch               1:4.01-14.el7                     base                90 k

 rpcbind                       x86_64               0.2.0-38.el7                      base                59 k

 tcp_wrappers                  x86_64               7.6-77.el7                        base                78 k


Transaction Summary

===============================================================================================================

Install  1 Package (+17 Dependent packages)


Total download size: 1.5 M

Installed size: 4.3 M

Is this ok [y/d/N]: y

Downloading packages:

(1/18): libbasicobjects-0.1.1-27.el7.x86_64.rpm                                         |  25 kB  00:00:00     

(2/18): gssproxy-0.4.1-13.el7.x86_64.rpm                                                |  87 kB  00:00:00     

(3/18): keyutils-1.5.8-3.el7.x86_64.rpm                                                 |  54 kB  00:00:00     

(4/18): libcollection-0.6.2-27.el7.x86_64.rpm                                           |  41 kB  00:00:00     

(5/18): libini_config-1.3.0-27.el7.x86_64.rpm                                           |  63 kB  00:00:00     

(6/18): libnfsidmap-0.25-15.el7.x86_64.rpm                                              |  47 kB  00:00:00     

(7/18): libref_array-0.1.5-27.el7.x86_64.rpm                                            |  26 kB  00:00:00     

(8/18): libtalloc-2.1.6-1.el7.x86_64.rpm                                                |  34 kB  00:00:00     

(9/18): libtevent-0.9.28-1.el7.x86_64.rpm                                               |  34 kB  00:00:00     

(10/18): libpath_utils-0.2.1-27.el7.x86_64.rpm                                          |  27 kB  00:00:00     

(11/18): libtirpc-0.2.4-0.8.el7.x86_64.rpm                                              |  88 kB  00:00:00     

(12/18): libverto-tevent-0.2.5-4.el7.x86_64.rpm                                         | 9.0 kB  00:00:00     

(13/18): quota-nls-4.01-14.el7.noarch.rpm                                               |  90 kB  00:00:00     

(14/18): nfs-utils-1.3.0-0.33.el7.x86_64.rpm                                            | 377 kB  00:00:00     

(15/18): rpcbind-0.2.0-38.el7.x86_64.rpm                                                |  59 kB  00:00:00     

(16/18): tcp_wrappers-7.6-77.el7.x86_64.rpm                                             |  78 kB  00:00:00     

(17/18): libevent-2.0.21-4.el7.x86_64.rpm                                               | 214 kB  00:00:00     

(18/18): quota-4.01-14.el7.x86_64.rpm                                                   | 179 kB  00:00:00     

---------------------------------------------------------------------------------------------------------------

Total                                                                          2.4 MB/s | 1.5 MB  00:00:00     

Running transaction check

Running transaction test

Transaction test succeeded

Running transaction

  Installing : libref_array-0.1.5-27.el7.x86_64                                                           1/18 

  Installing : libcollection-0.6.2-27.el7.x86_64                                                          2/18 

  Installing : libtirpc-0.2.4-0.8.el7.x86_64                                                              3/18 

  Installing : rpcbind-0.2.0-38.el7.x86_64                                                                4/18 

  Installing : libtalloc-2.1.6-1.el7.x86_64                                                               5/18 

  Installing : libbasicobjects-0.1.1-27.el7.x86_64                                                        6/18 

  Installing : libtevent-0.9.28-1.el7.x86_64                                                              7/18 

  Installing : libverto-tevent-0.2.5-4.el7.x86_64                                                         8/18 

  Installing : 1:quota-nls-4.01-14.el7.noarch                                                             9/18 

  Installing : libpath_utils-0.2.1-27.el7.x86_64                                                         10/18 

  Installing : libini_config-1.3.0-27.el7.x86_64                                                         11/18 

  Installing : gssproxy-0.4.1-13.el7.x86_64                                                              12/18 

  Installing : tcp_wrappers-7.6-77.el7.x86_64                                                            13/18 

  Installing : 1:quota-4.01-14.el7.x86_64                                                                14/18 

  Installing : keyutils-1.5.8-3.el7.x86_64                                                               15/18 

  Installing : libevent-2.0.21-4.el7.x86_64                                                              16/18 

  Installing : libnfsidmap-0.25-15.el7.x86_64                                                            17/18 

  Installing : 1:nfs-utils-1.3.0-0.33.el7.x86_64                                                         18/18 

  Verifying  : rpcbind-0.2.0-38.el7.x86_64                                                                1/18 

  Verifying  : 1:quota-4.01-14.el7.x86_64                                                                 2/18 

  Verifying  : libnfsidmap-0.25-15.el7.x86_64                                                             3/18 

  Verifying  : libverto-tevent-0.2.5-4.el7.x86_64                                                         4/18 

  Verifying  : gssproxy-0.4.1-13.el7.x86_64                                                               5/18 

  Verifying  : libini_config-1.3.0-27.el7.x86_64                                                          6/18 

  Verifying  : libbasicobjects-0.1.1-27.el7.x86_64                                                        7/18 

  Verifying  : libevent-2.0.21-4.el7.x86_64                                                               8/18 

  Verifying  : libtalloc-2.1.6-1.el7.x86_64                                                               9/18 

  Verifying  : keyutils-1.5.8-3.el7.x86_64                                                               10/18 

  Verifying  : tcp_wrappers-7.6-77.el7.x86_64                                                            11/18 

  Verifying  : libtevent-0.9.28-1.el7.x86_64                                                             12/18 

  Verifying  : libpath_utils-0.2.1-27.el7.x86_64                                                         13/18 

  Verifying  : 1:nfs-utils-1.3.0-0.33.el7.x86_64                                                         14/18 

  Verifying  : libtirpc-0.2.4-0.8.el7.x86_64                                                             15/18 

  Verifying  : 1:quota-nls-4.01-14.el7.noarch                                                            16/18 

  Verifying  : libcollection-0.6.2-27.el7.x86_64                                                         17/18 

  Verifying  : libref_array-0.1.5-27.el7.x86_64                                                          18/18 


Installed:

  nfs-utils.x86_64 1:1.3.0-0.33.el7                                                                            


Dependency Installed:

  gssproxy.x86_64 0:0.4.1-13.el7                          keyutils.x86_64 0:1.5.8-3.el7                        

  libbasicobjects.x86_64 0:0.1.1-27.el7                   libcollection.x86_64 0:0.6.2-27.el7                  

  libevent.x86_64 0:2.0.21-4.el7                          libini_config.x86_64 0:1.3.0-27.el7                  

  libnfsidmap.x86_64 0:0.25-15.el7                        libpath_utils.x86_64 0:0.2.1-27.el7                  

  libref_array.x86_64 0:0.1.5-27.el7                      libtalloc.x86_64 0:2.1.6-1.el7                       

  libtevent.x86_64 0:0.9.28-1.el7                         libtirpc.x86_64 0:0.2.4-0.8.el7                      

  libverto-tevent.x86_64 0:0.2.5-4.el7                    quota.x86_64 1:4.01-14.el7                           

  quota-nls.noarch 1:4.01-14.el7                          rpcbind.x86_64 0:0.2.0-38.el7                        

  tcp_wrappers.x86_64 0:7.6-77.el7                       


Complete!

[root@centos7 /]# 

[root@centos7 /]# 

[root@centos7 /]# mount -t nfs nas:/xxxxx/yyyy /mnt

[root@centos7 /]# 

[root@centos7 /]# 

[root@centos7 /]# ls /mnt

1_OS      .....etc


[root@centos7 /]# 

[root@centos7 /]# 

[root@centos7 /]# 

Posted by cheeky_kite
,