Error when mounting a remote fs: "mount: wrong fs type, bad option"
Trying to mount a remote file system:
sudo mount -t cifs "//some.url/path" '~/local.path' -o
username=$(whoami),rw,iocharset=utf8,uid=1000,noperm
I get an error with a rather vague comment. What is the problem, how to mount?
Mount: wrong fs type, bad option, bad superblock on some.url/path, missing codepage or helper program, or other error (for several filesystems (e.g. nfs, cifs) you might need a /sbin/mount. helper program)
In some cases useful info is found in syslog - try dmesg | tail or so.
1 answers
In this case, the relevant part of the error message is the one about the utility needed to work with the cifs file system:
For several filesystems (e.g. nfs, cifs) you might need a /sbin/mount. helper program
To mount the required file system, such as cifs or nfs, you must install the appropriate utilities.
Check the ability to work:
ls -l /sbin/mount.cifs
ls -l /sbin/mount.nfs
Is the package installed:
dpkg -l cifs-utils
dpkg -l nfs-common
Install (example for Debian/Ubuntu, similar packages are available for other package managers):
sudo apt-get install cifs-utils
sudo apt-get install nfs-common