7

Sometime ago I used to mount shared folders from my windows computer using the command :

sudo mount.cifs //computer/folder /mnt -o username=user

However now it bugs and yields :

mount error : cifs filesystem not supported by the system mount

error(19): No such device

Any idea on what might have happened in the meanwhile that prevents it from working ?

The package cifs-utils is installed..

zgrep -i cifs /proc/config.gz

Returns :

CONFIG_CIFS=m
CONFIG_CIFS_STATS=y
#CONFIG_CIFS_STATS2 is not set
CONFIG_CIFS_WEAK_PW_HASH=y
...

All yes except for STATS2 and DEBUG basically

  • zgrep -i cifs /proc/config.gz ? (That shall print if CIFS it is compiled as a module) – grochmal Aug 28 '16 at 0:36
  • @grochmal added output in edit – ChiseledAbs Aug 28 '16 at 1:50
  • 1
    Good, CIFS is compiled as a module. Load the CIFS module with modprobe cifs and you should be able to perform the mount (i'm ~90% confident). – grochmal Aug 28 '16 at 1:58
  • @grochmal it worked again after a reboot, if it happens again i'll do that, thanks – ChiseledAbs Aug 28 '16 at 3:15
7

CONFIG_CIFS=m means the CIFS functionality is compiled into a kernel module. If the cifs module isn't loaded after a reboot, you can append a line

cifs

to the file /etc/modules. The file lists modules which will be loaded automatically at boot time. To check if the module is already loaded type:

lsmod | grep cifs

If you don't see 'cifs' in the output, it isn't loaded. To load it manually without a reboot:

modprobe cifs
3

I had a similar problem, the module location was changed because of rolling release arch distribution, so path was different. Reboot

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.