You are not logged in.
When trying to mount a CIFS share in Arch with kernel 3.8.3-2-ARCH, I get this:
mount error(22): Invalid argument
dmesg shows this:
FS-Cache: Loaded
FS-Cache: Netfs 'cifs' registered for caching
Key type cifs.spnego registered
Key type cifs.idmap registered
For clarity, I'm running this command (and have tried many others):
sudo mount.cifs //desktop/mydata /mnt/mydata -o user=me
Also, I am able to browse this share properly with smbclient, and I'm also able to mount it in distributions using older kernels.
I tested this on Ubuntu 13.04 as well, and the same problem happens there (also has kernel 3.8.x, so it seems likely that this is a kernel issue). From what I understand, portions of the mount.cifs client code were moved into the kernel recently, and the argument parser was overhauled at the same time (I found similar bug reports for Fedora, Gentoo, etc). Any ideas?
The fix is to add "sec=ntlm" to the -o flag:
sudo mount.cifs //desktop/mydata /mnt/mydata -o user=me,sec=ntlm
Last edited by willroberts (2013-03-22 03:32:46)
Offline
i too am having this issue on both my arch machines. I can still mount my samba shares from windows tho.
i am getting this error
mount error(13): Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
Offline
Exactly the same issue here, Debian samba server. Shares work fine on every other machine, Windows, iPad, Linux. My Arch laptop that I just updated to 3.8.3-2 now just says:
mount error(13): Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
Last edited by dennis123123 (2013-03-21 18:34:54)
Offline
Next time, try a search first: linky
Last edited by alphaniner (2013-03-21 18:50:06)
But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner
Offline
Next time, try a search first: linky
That works, thanks. However there was no need to be an ass about it. I did search with no success - that topic isn't in the kernel section, it doesn't reference the kernel update or version in the title. How was I expected to find it? seach "cifs" and read every one of the results?
Offline
That was a gentle nudge towards good forum ettiquite.
<being an ass>Maybe you could have read just the first page of results? They are in descending chronological order after all...</being an ass>
Last edited by alphaniner (2013-03-21 19:03:43)
But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner
Offline
While the "Permission denied" error seems completely different from an "Invalid argument" error, adding sec=ntlm to my -o flag fixed my issue as well.
For the record, I did search for my error message via Google, and got this:
https://www.google.com/search?q=site%3A … today&tbm=
No results for my "invalid argument" problem, but maybe that thread hasn't been indexed by Google yet. I'll try the built-in search next time. Most sites have notoriously awful built-in search, so I didn't even try.
Offline
You had a different error, so your transgression is comparatively minor
Arch's search can suck unless you know how to use it. Eg. when I last searched for "xfce", it didn't return results containing "xfce4"; to get such results, it's necessary to search for "xfce*" (maybe "xfce?" would work too, I never tried).
But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner
Offline
Thanks for the advice. Also, if you click the link in my previous post about the Google search, this thread is now the first result. Awesome.
Offline
I am using Ubuntu, this problem bothered me for quite a long time. This is the first post that solves this. Awesome!!
Offline
This needs to be "advertised" some more then it is, this is going to break a lot of stuff and piss a lot of commandline and gui people off. Was this announced on any list ?
Offline
This saved my bacon! I've been having this issue
Offline