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 //,
       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


mount -t cifs // /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. . .