How Do You Troubleshoot Mounting a cifs File Share when You Get an Error about “wrong fs type, bad option, bad superblock”?

Problem scenario:  You run this command on a Linux CentOS server:

sudo mount -t cifs -o user=jdoe //172.33.44.55/contintshare /mnt/windows-share

But you get this error:  "mount: wrong fs type, bad option, bad superblock on //172.33.44.55/contintshare, missing codepage or helper program, or other error (for several file systems (e.g., nfs, cifs) you might need a /sbin/mount.<type> helper program)"

What do you do?

Solution

The error message is not clear or helpful.  Replace "user" with "username", and try the command again.  For example this command will work:

sudo mount -t cifs -o username=jdoe //172.33.44.55/contintshare /mnt/windows-share

Leave a comment

Your email address will not be published. Required fields are marked *