9

In (k)ubuntu 12.10, I could mount a cifs drive (from my Apple Airport Extreme) with

sudo mount -t cifs -o user=foobar,password=foobar,rw,hard,nosetuids,noperm //192.168.1.2/Drive ~/mnt/mount_point

This no longer works after my upgrade to 13.04 today. I now get the error

mount error(22): Invalid argument
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

I already had cifs-utils installed, and installing smbnetfs did not help. How can I mount cifs volumes in (k)ubuntu 13.04?

Sparhawk
  • 6,969

1 Answers1

9

I had this same problem trying to mount a Apple Time Capsule volume.

I solved by adding a sec=ntlm option to /etc/fstab.

For your command, use

sudo mount -t cifs -o user=foobar,password=foobar,rw,hard,nosetuids,noperm,sec=ntlm //192.168.1.2/Drive ~/mnt/mount_point

See a more detailed explanation about the root change in:

https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=81bcd8b795229c70d7244898efe282846e3b14ce

Not sure if this is the best solution because I suppose I'm lowering security.

Sparhawk
  • 6,969