Debian 7, Fstab, Mount.Cifs Invalid Argument

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



Leave a reply



Submit