DbAppWeb.com

Menu
  • Home
  • Linux
  • HP-UX
  • macOS
  • Windows
  • Web Servers
  • App Servers
  • Storage

Cannot mount NFS share in RHEL 7: wrong fs type, bad option, bad superblock

September 27, 2018 DbAppWeb Admin

Problem

I have configured a new server with RHEL 7.4 as a web server. I tried to mount an NFS shared folder on this machine and got the below error:

[root@RHEL7.4 ~]# mount -o tcp nfsserver:/upload /home/upload
mount: wrong fs type, bad option, bad superblock on 10.30.1.62:/upload,
       missing codepage or helper program, or other error
       (for several filesystems (e.g. nfs, cifs) you might
       need a /sbin/mount. helper program)

       In some cases useful info is found in syslog - try
       dmesg | tail or so.
[root@RHEL7.4 ~]#

Reason

  • The nfs-utils package was not installed on the NFS client system. This package is required to mount the NFS share in the client system.

Solution

  • Log in as root/superuser and first check that nfs-utils package is installed or not. The below command does not show any package it means the nfs-utils package is not installed.
    [root@RHEL7.4 ~]# rpm -qa nfs-utils
  • Install the nfs-utils package using the yum command. To install a package from the yum command you need to create a repository first or you should have internet access on the server.
    [root@RHEL7.4 ~]# yum install  nfs-utils
    Loaded plugins: product-id, search-disabled-repos, subscription-manager
    This system is not registered with an entitlement server. You can use subscription-manager to register.
    Resolving Dependencies
    --> Running transaction check
    ---> Package nfs-utils.x86_64 1:1.3.0-0.48.el7_4 will be installed
    --> Finished Dependency Resolution
    
    Dependencies Resolved
    
    ================================================================================================================================
     Package                     Arch                     Version                              Repository                      Size
    ================================================================================================================================
    Installing:
     nfs-utils                   x86_64                   1:1.3.0-0.48.el7_4                   InstallMedia                   398 k
    
    Transaction Summary
    ================================================================================================================================
    Install  1 Package
    
    Total download size: 398 k
    Installed size: 1.0 M
    Is this ok [y/d/N]: y
    Downloading packages:
    Running transaction check
    Running transaction test
    Transaction test succeeded
    Running transaction
    Warning: RPMDB altered outside of yum.
      Installing : 1:nfs-utils-1.3.0-0.48.el7_4.x86_64                                                                          1/1
      Verifying  : 1:nfs-utils-1.3.0-0.48.el7_4.x86_64                                                                          1/1
    
    Installed:
      nfs-utils.x86_64 1:1.3.0-0.48.el7_4
    
    Complete!
    [root@RHEL7.4 ~]#
    
    
  • Now you can check that nfs-utils package has been installed.
    [root@RHEL7.4 ~]# rpm -qa nfs-utils
    nfs-utils-1.3.0-0.48.el7_4.x86_64
    [root@RHEL7.4 ~]#
  • Now you can successfully mount the NFS shared folder.
    [root@RHEL7.4 ~]# mount -o tcp nfsserver:/upload /home/upload
  • Check and verify the mount points.
    [root@RHEL7.4 ~]# df -h
    Filesystem             Size  Used Avail Use% Mounted on
    /dev/mapper/rhel-root   18G  1.3G   17G   8% /
    devtmpfs                16G     0   16G   0% /dev
    tmpfs                   16G     0   16G   0% /dev/shm
    tmpfs                   16G  8.6M   16G   1% /run
    tmpfs                   16G     0   16G   0% /sys/fs/cgroup
    /dev/sda2              497M  136M  361M  28% /boot
    /dev/mapper/rhel-home   20G  1.1G   19G   6% /home
    /dev/mapper/rhel-var    80G  109M   80G   1% /var
    tmpfs                  3.2G     0  3.2G   0% /run/user/0
    nfsserver:/upload     3.0T  2.6T  227G  93% /home/upload
    [root@RHEL7.4 ~]#
    

Last Updated: September 27, 2018

Prev Article
Next Article
Tags:File System Linux NFS Sys Admin

Leave a Reply Cancel Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

  • Popular
  • Recent

Categories

  • Android (2)
  • Blogger (16)
  • Domain and Hosting (1)
  • Hardware Issues (7)
  • HP-UX (55)
  • HPE Data Protector (9)
  • IBM Lotus Notes (2)
  • IBM WebSphere Application Server (16)
  • Internet Tips & Tricks (15)
  • iOS (8)
  • JBoss/WildFly Application Server (2)
  • Linux (76)
  • macOS (15)
  • Microsoft Windows (31)
  • News and Updates (11)
  • Oracle Database (5)
  • SSL/TLS (1)
  • Storage Servers (23)
  • Tools/Softwares (1)
  • VMware ESXi (17)
  • Web Servers (14)
  • WordPress (5)

Archives

DbAppWeb.com

Solution of Database, Application and Web Server Problems

About DbAppWeb.com

One Stop Solution for Database Server, Application Server and Web Server Problems.

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

DbAppWeb on Social Media

Copyright © 2025 DbAppWeb.com
Terms and Conditions   Theme by MyThemeShop.com