Page 2 of 4
Re: smb_userdata
Posted: Mon May 06, 2013 10:02 pm
by miazza
zdzi wrote:the only way I can recreate the error message you got is if I also use the mount command with -o guest or with no -o parameter.
Did you try mounting with any username and password? My old Nas didn't need a password and would accept anything.
What happens if you try:
mount -o user=a,password=a -t cifs //<your server ip>/<your servername> /dtv/usb/sda/smb
Hei zdzi we are making progresses:
Code: Select all
root@(none) phpsysinfo $ mount -o user=a,password=a -t cifs //192.168.1.5/PUBLIC /dtv/usb/sda/smb
mount: block device //192.168.1.5/PUBLIC is write-protected, mounting read-only
mount: cannot mount block device //192.168.1.5/PUBLIC read-only
Re: smb_userdata
Posted: Mon May 06, 2013 10:05 pm
by zdzi
yes, I got that error when I tried using the wrong user/name password for my share - ie. access not allowed. Looks like your NAS won't accept anything but wants null usernames/passes.
Did you try the mount command suggested by fluffi444?
Re: smb_userdata
Posted: Mon May 06, 2013 10:06 pm
by miazza
YES. Same result:
Code: Select all
root@(none) phpsysinfo $ mount -o user=,password= -t cifs //192.168.1.5/PUBLIC /dtv/usb/sda/smb
mount: block device //192.168.1.5/PUBLIC is write-protected, mounting read-only
mount: cannot mount block device //192.168.1.5/PUBLIC read-only
This is getting me nervous. This is a very old NAS but I can access its SMB share from WIN XP, WIN7, LINUX , XBMC on XBOX1, Android 4.01 and 4.2.2... but not from SmartTV

Re: smb_userdata
Posted: Mon May 06, 2013 10:09 pm
by zdzi
are you able to create another share with a username and pass and try and manually mount it.
If that works could definitely point to your null username/passes.
Re: smb_userdata
Posted: Mon May 06, 2013 10:11 pm
by juusso
do
right after your samba mount command. There should be some debug info...
Re: smb_userdata
Posted: Mon May 06, 2013 10:20 pm
by miazza
juuso wrote:do
right after your samba mount command. There should be some debug info...
Code: Select all
root@(none) phpsysinfo $ dmesg | tail
Function entered at [<c00c89b0>] from [<c00c8b20>]
r8:00000001 r7:c1779980 r6:caeeb000 r5:c1779f80 r4:bf74f2d0
Function entered at [<c00c8ae4>] from [<c00e0304>]
r8:00000001 r7:caeeb000 r6:00000000 r5:c1779980 r4:00000060
r3:caeeb000
Function entered at [<c00dfd40>] from [<c00e0424>]
Function entered at [<c00e0398>] from [<c0028840>]
r7:00000015 r6:be899cd8 r5:be899c8c r4:0001ec88
CIFS VFS: cifs_mount failed w/return code = -13
##### send signal from USER, SIG : 15, httpd(1542)->php-cgi(1613) sys_kill
Re: smb_userdata
Posted: Mon May 06, 2013 11:46 pm
by miazza
I think the issue has something to do with security.
On Win7 I needed to change the security policy to have the NAS mounted.
I tried to mount SMB on a Kubuntu VM and the share ask for username and password.
Obviously I cannot access it because there is no user name nor password set un my share.
Still studying
Found a trik on kubuntu:
to access SMB I need to set:
user name = Kubuntu login user name
password = (empty or password set for the share)
This perfectly works on kubuntu.
Now what is the username of the SmartTV ?
Re: smb_userdata
Posted: Mon May 06, 2013 11:54 pm
by zdzi
If you google that cifs error code 13 then some people solved it either by using the username to be the same as the share name -o user=PUBLIC,password= or another had to pass a WRKGROUP in the mount command. Good luck trying to find the reason but if you can't do a manual mount I can't see you succeeding using the auto script.
Re: smb_userdata
Posted: Tue May 07, 2013 12:06 am
by miazza
zdzi wrote:If you google that cifs error code 13 then some people solved it either by using the username to be the same as the share name -o user=PUBLIC,password= or another had to pass a WRKGROUP in the mount command. Good luck trying to find the reason but if you can't do a manual mount I can't see you succeeding using the auto script.
I discovered something similar but look message above.
user is user of the running machine. This works in kubuntu and in Win7.
I wander what is the user name of our TV.
Code: Select all
root@(none) phpsysinfo $ cat /etc/passwd
root::0:0:Root,,,:/:/bin/sh
If I try with user root :
Code: Select all
mount -o user=root,password= -t cifs //192.168.1.5/PUBLIC /dtv/usb/sda/smb
the TV block and need to unplug from the wall.
Re: smb_userdata
Posted: Tue May 07, 2013 3:31 pm
by fluffi444
I dont know if that will help but one Problem here was that I tried to mount a child of the shared folder directly.
This gave me this block device error message...
Please make sure you mount into exactly share folder but not child of the share folder. Meaning that:
- you have WIN or NAS shared folder \\<SERVER IP>\shared
- you want to access \\<SERVER IP>\shared\movies
- you only can mount //<SERVER IP>/shared but not //<SERVER IP>/shared/movies
But I think your folder //192.168.1.5/PUBLIC IS the correct shared one...