11.2 cifs connection to NAS

Help please. I have installed 11.2 (64 bit on a laptop running AMD 64 *2)and can not get cifs to work correctly.

I have verified my setup with the Swerdna HowTo, and have searched and searched the forums for a similar situation.

I have a NAS (Pleiades which does not support Unix Extensions) Under 11.0 I have to disable LinuxExtensions and mount the drive in a separate script at boot time. Now with the nounix option it looks promsingly like itshould work as a normal auto mount.

I have played with various firewall settings but at the mo it is off.

The mount target /storage has been created with everyone having full access.

I can use the remote filesystem in konqueror using smb://ip/storage and it appears OK. Once I mount the same fs using mount.cifs, a view on /storage shows no files. The view using smb now returns different errors depending on how I mount the fs. If I mount with the nounix option, then the error is “Timeout error” (returned in milliseconds and the timeouts are large, so unlikely a valid message), but if I mount in a script, remove nounix, and mount in 11.0 style: precede the mount with echo 0 > proc/fs/cifs/LinuxExtensionsEnabled, then the error is “Internal Error” additional: “Unknown error condition in stat. No data available”.

Now the interesting thing after mount is that even though I appear to have no read access to the directory, I have write access. I can create a new file or directory and while I dont see it in Linux, it has indeed been created on the NAS.

Driving me bananas. Any ideas?

If you can write to it, then you are very close. Here is the line from my /etc/fstab.

//192.168.0.2/Volume_1/ /NAS cifs username=username,password=password,uid=1001,gid=100,_netdev 0 0

I take it that you created the user for this in Linux and then created the user in Samba? I am sure you did, or you would not have gotten this far.

As a side note, I always have a text document with this line from the fstab in it so that I can always find it when I am in need.

Hi Wilson,
Thanks for your reply. Unfortunately thats pretty much what my mount looks like. To be specific the latest fstab entry:
//192.168.1.98/storage /storage cifs auto,username=user,password=user,nounix,gid=users,setuids,noperm,dir_nore=0777,file_mode=0777 0 0
although I have tried collapsing it back to just guest,nounix and pretty much all combinations in between with no improvement in behaviour.

Interesting comment re ‘user’. I did not create it on the Linux machine, nor is it explicitly on the NAS. But thats what the fstab entry that works is like on my 11.0 and 10.3 pcs and they dont have a ‘user’ either. I did try with the NAS admin username and password, but no difference.

I’ve just tried the same from an i586 live version of 11.2 (although still on an AMD 64) with the same result: umount /storage and the smb://… view returns to normal.