Random img

How to fix CIFS Mount Error: wrong fs type, bad option, bad superblock while mounting windows share Drive on Linux

Jul 28, 2020 by ohiodn8




When trying to mount a cif mount to a linux server (in this case RedHat or CentOS), and you come up with this error: wrong fs type, bad option, bad superblock [see full error below], this is how you resolve it. 


Error ==>

# mount -a
mount: wrong fs type, bad option, bad superblock on //mount_shared_drive.com/path/fake_path,
       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.


If you go to the directory /sbin, you will not find mount.cifs 


The Fix ==>

To fix this, first check to see if  cif-utils is installed

rpm -qa|grep cifs-utils


And then go ahead to install it

yum install cifs-utils -y


When installed, try again to mount

mount -a

OR

mount -t cifs //mount_shared_drive.com/path/fake_path /mnt/fake_path

This time, it'll work. 



About ohiodn8

Ruby on Rails developer, AWS Engineer, anything fun, music, a little bit of mobile game. . .

Comments