Dear Friends, unfortunately I didn’t find any solutions for following problem that was founded in 11.4 (in 11.3 everything works fine)
I mount the share on my Windows server with following command:
mount -t cifs -o username=Administrator,password='mypassword',rw,dir_mode=0777,file_mode=0777,nobrl,uid=1000,gid=100 //10.8.0.1/users /mnt/
In my 11.3 computer it works well. I opening, copying files like I do in local filesystem. At the same time it’s not working well on my 11.4 computer: the share mounts without errors, I see all files, can copy them from server to local computer. But when I’m trying to make copies to server, sometimes I receive messages like “Error writing file …”. Not always, but in the most part of my attempts.
Below please find the part of my /var/log/messages file:
We have had a bug in 11.4 re Samba that might be relevant here. I think the bug was fixed but I’m no longer using 11.4 so I can’t check. The bug stems from a problem with apparmor. You can test if the bug is active by running this command:
su -c "rcnmb status;rcsmb status"
If you get a response like this then the bug is not active and you can dismiss this as an issue:
Checking for Samba NMB daemon running
Checking for Samba SMB daemon running
But if one of those lines is different, you might have to adjust apparmor.
Step 1 – alter apparmor
go to Yast → apparmor and enter the Control Panel → configure profiles area. Highlight usr.sbin.smbd and use the ToggleMode button to flip it to “complain” Similarly flip usr.sbin.nmbd to “complain”. Click Done to exit.
Step 2 – turn on Samba daemons
Go to Yast → system → runlevels. (a) Highlight nmb and make sure the setting is = yes (use the Enable button). (b) Highlight smb and make sure the setting is = yes (use the Enable button). (c) Highlight cifs and make sure the setting is = yes (use the Enable button).
Step 3: test again the command: su -c “rcnmb status;rcsmb status”
Should be good now, tell us if it isn’t
Dear swerdna, as for NMB that’s fine, but when I try to highlight cifs, I receive the message “/etc/init.d/cifs start returned 6 the program is not configured”. Could you recommend anything? Thank you!
I made a mistake. The cifs daemon is only switchable if there is a share defined in fstab. I read your first post too quickly and thought your text was the text for a cifs mount in fstab. Since it is actually a CLI mount command, it will not be aided by the cifs daemon, so skip that step in “runlevels” and adjust only nmb and smb daemons.
Dear swerdna, thank you very much! From one side it seams that everything works fine. I’m going to spend several days working on my 11.4 Linux computer with Windows server shares. From the other side, in dmesg I see the list of errors
> Dear swerdna, thank you very much! From one side it seams that
> everything works fine. I’m going to spend several days working on my
> 11.4 Linux computer with Windows server shares. From the other side, in
> dmesg I see the list of errors
> 341.691836] CIFS VFS: Unexpected SMB signature
> 342.943223] CIFS VFS: Unexpected SMB signature
> 342.963803] Status code returned 0xc0000022 NT_STATUS_ACCESS_DENIED
> 342.963810] CIFS VFS: Send error in read = -13
> 342.986152] CIFS VFS: Unexpected SMB signature
> 342.986194] CIFS VFS: Unexpected SMB signature
> 343.090696] CIFS VFS: Unexpected SMB signature
> Hope they will not have any influence on my data files integrity
Dear swerdna, thank you. Unfortunately apparmor configuration & starting of nmb is not helping yet (nor with wsize=16384, neither without it). When I’m trying to copy big files I receive the writing file error. From the other side in case I use smb:// in dolphin (without mounting) it works without error. But I don’t know how to save file in case if I’m opening them with smb:// protocol. How would you recommend to work with windows shares best of all? Thank you for your help!
I’ve tested your mount command using the same syntax (su -c “mount -t cifs -o username=john,password=xxxxxx,rw,dir_mode=0777,file_mode=0777,nobrl,uid=1000,gid=100 //yyyyyyyy/metashare /home/john/Desktop/test”) with 11.4 using kernel 220.127.116.11-0.5 and Tumbleweed 11.4 using kernel 3.0.3-42 and a 650Mb file. The copy using the Tumbleweed kernel was smooth. The copy using the 11.4 kernel had some difficulty but still worked finally. The server was windows 7, Workgroup scenario. I’ll try a file twice the size.
On 10.8.0.1 I have windows server 2003. The server is a domain controller for a corporate network (with windows XP clients). My personal notebook with openSUSE 11.4 and I’m just trying to mount my folder on this server. When I had 11.3 there was no problem. The error occurs not always, but the probability increases with the size of the file (I’d say 1M file ~ 80% probability of the error - if I try to copy it for about five or a bit more times one of these attempts is successful).
I see that this problem is widespread. But at the same time there’s no error with smb://. Do you know how to save files with smb:// (in case I make copies there’s no problem, but in case I’m opening the file I work with temporary copy). Thank you for your help!
If I am editing a file, I can save it into any Samba share that is accessible from my computer. I do this → file → save as – and then the Dolphin browser opens. The left panel/column of Dolphin is (for me) set to be “Places” and “Places” contains a “Network” icon. I click “Network” icon and navigate to the share that I need, and save the file there.