Linux Administrator

Fix : wrong fs type, bad option, bad superblock error

mount-error
mm
Written by Santosh Prasad

If you are trying to mount the nfs directory on system and getting below error this tutorial will help you to fix this.

Error:

mount: wrong fs type, bad option, bad superblock on xx.xx.x.x:/mount/point,
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

In this article I will show how you can fix the above error. Install the below packages on your system.

Install nfs-common, nfs-utils and cifs-utils

On Ubuntu/Debian

Follow the below command to install nfs-common.

$ sudo apt install nfs-common

If you are trying to mount CIFS install the cifs-utils.

$ sudo apt install cifs-utils

On CentOS/RHEL

Follow the below command to install nfs-utils.

# yum install nfs-utils

You will get some output like below:

Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
 * openvz-kernel-rhel6: mirror.steadfast.net
 * openvz-utils: mirror.steadfast.net
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package nfs-utils.x86_64 1:1.2.3-75.el6_9 will be installed
--> Processing Dependency: nfs-utils-lib >= 1.1.0-3 for package: 1:nfs-utils-1.2.3-75.el6_9.x86_64
--> Processing Dependency: libtirpc >= 0.2.1-11 for package: 1:nfs-utils-1.2.3-75.el6_9.x86_64
--> Processing Dependency: keyutils >= 1.4-4 for package: 1:nfs-utils-1.2.3-75.el6_9.x86_64
--> Processing Dependency: rpcbind for package: 1:nfs-utils-1.2.3-75.el6_9.x86_64
--> Processing Dependency: python-argparse for package: 1:nfs-utils-1.2.3-75.el6_9.x86_64
--> Processing Dependency: libgssglue.so.1(libgssapi_CITI_2)(64bit) for package: 1:nfs-utils-1.2.3-75.el6_9.x86_64
--> Processing Dependency: libgssglue for package: 1:nfs-utils-1.2.3-75.el6_9.x86_64
--> Processing Dependency: libtirpc.so.1()(64bit) for package: 1:nfs-utils-1.2.3-75.el6_9.x86_64
--> Processing Dependency: libnfsidmap.so.0()(64bit) for package: 1:nfs-utils-1.2.3-75.el6_9.x86_64
--> Processing Dependency: libgssglue.so.1()(64bit) for package: 1:nfs-utils-1.2.3-75.el6_9.x86_64
--> Running transaction check
---> Package keyutils.x86_64 0:1.4-5.el6 will be installed
--> Processing Dependency: keyutils-libs = 1.4-5.el6 for package: keyutils-1.4-5.el6.x86_64
---> Package libgssglue.x86_64 0:0.1-11.el6 will be installed
---> Package libtirpc.x86_64 0:0.2.1-13.el6_9 will be installed
---> Package nfs-utils-lib.x86_64 0:1.1.5-13.el6 will be installed
---> Package python-argparse.noarch 0:1.2.1-2.1.el6 will be installed
---> Package rpcbind.x86_64 0:0.2.0-13.el6_9.1 will be installed
--> Running transaction check
---> Package keyutils-libs.x86_64 0:1.4-4.el6 will be updated
---> Package keyutils-libs.x86_64 0:1.4-5.el6 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

=====================================================================================================================================================
 Package                                Arch                          Version                                   Repository                      Size
=====================================================================================================================================================
Installing:
 nfs-utils                              x86_64                        1:1.2.3-75.el6_9                          updates                        336 k
Installing for dependencies:
 keyutils                               x86_64                        1.4-5.el6                                 base                            39 k
 libgssglue                             x86_64                        0.1-11.el6                                base                            23 k
 libtirpc                               x86_64                        0.2.1-13.el6_9                            updates                         82 k
 nfs-utils-lib                          x86_64                        1.1.5-13.el6                              base                            71 k
 python-argparse                        noarch                        1.2.1-2.1.el6                             base                            48 k
 rpcbind                                x86_64                        0.2.0-13.el6_9.1                          updates                         51 k
Updating for dependencies:
 keyutils-libs                          x86_64                        1.4-5.el6                                 base                            20 k

Transaction Summary
=====================================================================================================================================================
Install       7 Package(s)
Upgrade       1 Package(s)

Total download size: 670 k
Is this ok [y/N]: y
Downloading Packages:
(1/8): keyutils-1.4-5.el6.x86_64.rpm                                                                                          |  39 kB     00:00
(2/8): keyutils-libs-1.4-5.el6.x86_64.rpm                                                                                     |  20 kB     00:00
(3/8): libgssglue-0.1-11.el6.x86_64.rpm                                                                                       |  23 kB     00:00
(4/8): libtirpc-0.2.1-13.el6_9.x86_64.rpm                                                                                     |  82 kB     00:00
(5/8): nfs-utils-1.2.3-75.el6_9.x86_64.rpm                                                                                    | 336 kB     00:00
(6/8): nfs-utils-lib-1.1.5-13.el6.x86_64.rpm                                                                                  |  71 kB     00:00
(7/8): python-argparse-1.2.1-2.1.el6.noarch.rpm                                                                               |  48 kB     00:00
(8/8): rpcbind-0.2.0-13.el6_9.1.x86_64.rpm                                                                                    |  51 kB     00:00
-----------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                596 kB/s | 670 kB     00:01
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : libgssglue-0.1-11.el6.x86_64                                                                                                      1/9
  Installing : libtirpc-0.2.1-13.el6_9.x86_64                                                                                                    2/9
  Updating   : keyutils-libs-1.4-5.el6.x86_64                                                                                                    3/9
  Installing : keyutils-1.4-5.el6.x86_64                                                                                                         4/9
  Installing : rpcbind-0.2.0-13.el6_9.1.x86_64                                                                                                   5/9
  Installing : python-argparse-1.2.1-2.1.el6.noarch                                                                                              6/9
  Installing : nfs-utils-lib-1.1.5-13.el6.x86_64                                                                                                 7/9
  Installing : 1:nfs-utils-1.2.3-75.el6_9.x86_64                                                                                                 8/9
  Cleanup    : keyutils-libs-1.4-4.el6.x86_64                                                                                                    9/9
  Verifying  : keyutils-libs-1.4-5.el6.x86_64                                                                                                    1/9
  Verifying  : rpcbind-0.2.0-13.el6_9.1.x86_64                                                                                                   2/9
  Verifying  : libtirpc-0.2.1-13.el6_9.x86_64                                                                                                    3/9
  Verifying  : keyutils-1.4-5.el6.x86_64                                                                                                         4/9
  Verifying  : nfs-utils-lib-1.1.5-13.el6.x86_64                                                                                                 5/9
  Verifying  : libgssglue-0.1-11.el6.x86_64                                                                                                      6/9
  Verifying  : 1:nfs-utils-1.2.3-75.el6_9.x86_64                                                                                                 7/9
  Verifying  : python-argparse-1.2.1-2.1.el6.noarch                                                                                              8/9
  Verifying  : keyutils-libs-1.4-4.el6.x86_64                                                                                                    9/9

Installed:
  nfs-utils.x86_64 1:1.2.3-75.el6_9

Dependency Installed:
  keyutils.x86_64 0:1.4-5.el6             libgssglue.x86_64 0:0.1-11.el6     libtirpc.x86_64 0:0.2.1-13.el6_9  nfs-utils-lib.x86_64 0:1.1.5-13.el6
  python-argparse.noarch 0:1.2.1-2.1.el6  rpcbind.x86_64 0:0.2.0-13.el6_9.1

Dependency Updated:
  keyutils-libs.x86_64 0:1.4-5.el6

Complete!
Thank you! for visiting Look Linux.

If you find this tutorial helpful please share with your friends to keep it alive. For more helpful topic browse my website www.looklinux.com. To become an author at Look Linux Submit Article. Stay connected to Facebook.

About the author

mm

Santosh Prasad

Hi! I'm Santosh and I'm here to post some cool article for you. If you have any query and suggestion please comment in comment section.

Leave a Comment