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 // /mnt/windows-share

But you get this error:  "mount: wrong fs type, bad option, bad superblock on //, 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?


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 // /mnt/windows-share

Leave a comment

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