HostOnNet Blog


Mounting NFS file system in CentOS 7

When i try mounting NFS file system on CentOS 7, i get following error

[root@s1 ~]# mount -t nfs ftpback-bhs1-42.ip-198-100-151.net:/export/ftpbackup/ns513301.ip-167-114-157.net /backup
mount: wrong fs type, bad option, bad superblock on ftpback-bhs1-42.ip-198-100-151.net:/export/ftpbackup/ns513301.ip-167-114-157.net,
       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@s1 ~]# 

To mount NFS File system on CentOS 7, you need to install nfs-utils

yum install nfs-utils

Once installed mount -t nfs worked properly.

[root@s1 ~]#  mount -t nfs ftpback-bhs1-42.ip-198-100-151.net:/export/ftpbackup/ns513301.ip-167-114-157.net /backup
[root@s1 ~]# df -h
Filesystem                                                                        Size  Used Avail Use% Mounted on
/dev/root                                                                          20G  2.8G   16G  16% /
devtmpfs                                                                           32G     0   32G   0% /dev
tmpfs                                                                              32G     0   32G   0% /dev/shm
tmpfs                                                                              32G  3.2G   29G  10% /run
tmpfs                                                                              32G     0   32G   0% /sys/fs/cgroup
/dev/md3                                                                          1.8T  1.5T  282G  84% /var
ftpback-bhs1-42.ip-198-100-151.net:/export/ftpbackup/ns513301.ip-167-114-157.net  4.9T     0  4.9T   0% /backup
[root@s1 ~]# 

Posted in CentOS