Wednesday 21 March 2018

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



Not able to mount CIFS share on client getting error "mount: wrong fs type, bad option, bad superblock"


[root@linuxcnf ~]# mount –t cifs //192.168.43.9/share_drive /mnt/share_drive
mount: wrong fs type, bad option, bad superblock on //192.168.43.9/file_server
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@linuxcnf ~]#

Check to see if package cifs-utils is installed:

 [root@ linuxcnf ~]# rpm -qa|grep cifs-utils
[root@ linuxcnf ~]#

Package cifs-utils not installed on the system and that could be caused in not mounting the cifs share.

Install cifs-utils package:

[root@ linuxcnf ~]# yum install cifs-utils
….
Installed:
  cifs-utils.x86_64 0:6.2-10.el7

Dependency Installed:
  keyutils.x86_64 0:1.5.8-3.el7
Complete!

[root@ linuxcnf ~]#

Now Issue got resolved. I am able to mount cifs share folder.

[root@linuxcnf ~]# mount –t cifs //192.168.43.9/share_drive /mnt/share_drive
[root@linuxcnf ~]#

4 comments:

  1. Awesome ! Thanks a ton !! Helped like charm !

    ReplyDelete
  2. Great solution. I faced same issue and got resolved by above solution.

    ReplyDelete
  3. Thank you!! Guess I'll never came across that solution on my own therefor again. Thank you.

    ReplyDelete