Debian 7, fstab, mount.cifs Invalid argument
In the absence of a more detailed error from dmesg
I do see one typo that will cause things to fail. You have the option sec=ntml
. This is is wrong and should be sec=ntlm
. Notice how ml should be lm
It was determined that the OP was using OS/X as a Samba file server. There are some modifications (voodoo magic) to the options that need to be made to get this to work on most flavours of Linux. In partiuclar you need to specify the options nounix,sec=ntlmssp,noperm
. I found this buried in a Ubuntu question (and answers) that mentions a thread of messages on the Apple forums. In summary this appeared:
With reference to this post in Apple discussion community, you can try to mount with additional two options: nounix,sec=ntlmssp
A followup post suggested noperm
might be needed as well.
If you modify your fstab entry to be this it may work:
//192.168.0.1/ShareRep /home/user/share cifs credentials=/usr/local/etc/whisper.credentials,uid=501,nounix,sec=ntlmssp,noperm 0 0
Not able to mount directory after updating fstab
Ah. I had not created folder
in /mnt/folder
on the UNIX side. Did mkdir /mnt/folder
.
I was then able to see folder
in /mnt
but it was empty.
Did a mount -a
and can now see the contents of the Windows share in /mnt/folder
I seems like I had to do mount -a
from /etc
as when I issued the command from /mnt
it just hung for a while until I killed it and then tried from /etc
Related Topics
Qwidget/X11: Prevent Window from Beeing Activated/Focussed by Mouse Clicks
Go Memory Leak When Doing Concurrent Os/Exec.Command.Wait()
Embedded Linux Poll() Returns Constantly
Shell Bash Script to Print Numbers in Ascending Order
Where Do Char Device Appear After Cdev_Add() Registers Successfully with Major on 117.
Register Hotkey with Only Modifiers in Linux
Open Website from Within Eclipse's Internal Browser
How to Set Umask Default for an User
Questions About Embedded Linux Device Driver by Linux Newbie
How to Modify The Linux Kernel to Change The Version String That Uname Returns
When to Use Linux Kernel Add_Timer Vs Queue_Delayed_Work
Running Linux Container on Docker Windows
Setting Path to Shared Library Inside a Makefile for Compile
Host Doing Unnecessary Dns Lookup for Localhost
When Compiling Programs to Run Inside a Vm, What Should March and Mtune Be Set To
Changing Matlab's Startup Folder in Linux
Reusing Compression Dictionary
Shared Library Mysteriously Doesn't Get Linked to Application