[SOLVED] smb_userdata

Here for general support for E series TVs, request and problem solve area.

miazza
SamyGO Project Donor
Posts: 773
Joined: Wed Apr 03, 2013 6:10 pm

Re: smb_userdata

Post by miazza »

fluffi444 wrote: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...
Yes, I'm only trying to mount //192.168.1.5/PUBLIC , nothing else.
When running the script, the PUBLIC share is outomatically found by the TV.
I only have to find the way to provide the right user name at the mounting.
In WIN7 and Kubunti it works like that: user= login_name and password=no_pasword in my case.
The issue here is that I do not know the TV login_name.

I also found this suggestion from the wiki: http://wiki.samygo.tv/index.php5/Root_a ... cpu_models
if your shares are not password protected anyway you should put some randomly choosen user and password data, like:

##### CHANGE MEEEEE !!!!! ######
USER="user"
PASSWD="password"
PERM="rw" # can be ro or rw
##### CHANGE MEEEEE END ######

This might be the reason why without anu user or password the script does not progress.

Now it is worth to try:

- Remove smb_userdata from /mtd_rwarea
- Modify 04_04_samba.init as above

...and hope in a kind of black magic mounting smb.


Another Try another result:

Code: Select all

root@(none) phpsysinfo $ mount -o user=user,password= -t cifs //192.168.1.5/PUBLIC /dtv/usb/sda/smb
mount: //192.168.1.5/PUBLIC: can't read superblock
root@(none) phpsysinfo $ dmesg | tail
Function entered at [<bf71f90c>] from [<c00c8a14>]
Function entered at [<c00c89b0>] from [<c00c8b20>]
 r8:00000000 r7:c31b66a0 r6:caf57000 r5:c31b6180 r4:bf74f2d0
Function entered at [<c00c8ae4>] from [<c00e0304>]
 r8:00000000 r7:caf57000 r6:00000000 r5:c31b66a0 r4:00000020
r3:caf57000
Function entered at [<c00dfd40>] from [<c00e0424>]
Function entered at [<c00e0398>] from [<c0028840>]
 r7:00000015 r6:beefce48 r5:beefcdfc r4:0001ebe0
##### send signal from USER, SIG : 15, httpd(1554)->php-cgi(1941) sys_kill
AVOID TO PUBLISH AND DISCLOSE SAMYGO PROJECTS ON OTHER FORUM.
zdzi
Posts: 46
Joined: Sat Aug 06, 2011 3:18 pm

Re: smb_userdata

Post by zdzi »

Hold on a moment!
This is YOUR NAS right?
So you have admin rights?

Every NAS I have ever known allows user id creation/access control.

Yes the share you created may be accessed without any username and password but it should also let any valid user of the NAS also access it with those credentials. It should not need to be blank but only could be blank.

So if you manage your NAS with say username of admin then try the mount command with your admin id and password.

This should stop you trying to figure out how to mount with blank ids and let you try a username/password combination.

And don't tell me there is no admin account for the NAS!!! :)
miazza
SamyGO Project Donor
Posts: 773
Joined: Wed Apr 03, 2013 6:10 pm

Re: smb_userdata

Post by miazza »

zdzi wrote:Hold on a moment!
This is YOUR NAS right?
So you have admin rights?

Every NAS I have ever known allows user id creation/access control.

Yes the share you created may be accessed without any username and password but it should also let any valid user of the NAS also access it with those credentials. It should not need to be blank but only could be blank.

So if you manage your NAS with say username of admin then try the mount command with your admin id and password.

This should stop you trying to figure out how to mount with blank ids and let you try a username/password combination.

And don't tell me there is no admin account for the NAS!!! :)

This is the first thing I have done. Unlikely the admin username and password are not working for the smb share.
I can put a password at the share PUBLIC and the user is the name of the client user. This works on WIN and Kubuntu but i do not know why not on the TV.
I continue to keep trying manual mount.

Code: Select all

root@(none) phpsysinfo $ mount -o user=PUBLIC,password=passw -t cifs //192.168.1.5/PUBLIC /dtv/usb/sda/smb
mount: Host is down
root@(none) phpsysinfo $ dmesg | tail
CIFS VFS: cifs_mount failed w/return code = -112
SYS_GET_MEMORY_CONFIG called
SYS_GET_MEMORY_CONFIG called
SYS_GET_MEMORY_CONFIG called
SYS_GET_MEMORY_CONFIG called
SYS_GET_MEMORY_CONFIG called
SYS_GET_MEMORY_CONFIG called
SYS_GET_MEMORY_CONFIG called
SYS_GET_MEMORY_CONFIG called
SYS_GET_MEMORY_CONFIG called
AVOID TO PUBLISH AND DISCLOSE SAMYGO PROJECTS ON OTHER FORUM.
zdzi
Posts: 46
Joined: Sat Aug 06, 2011 3:18 pm

Re: smb_userdata

Post by zdzi »

What's the error msg you get with admin? Would be interesting which of the 2 mount msgs you received so far it matches.

Also seems time to try more mount options.

Eg. For one person having troubles mounting a share used the nounix and sec parameters

mount.cifs //10.0.20.3/ubuntu /media/target -o username=davidallie,nounix,sec=ntlmssp

Might also help if you said what type of NAS have. Old doesn't help much ;)

Also what OS runs on that NAS?
miazza
SamyGO Project Donor
Posts: 773
Joined: Wed Apr 03, 2013 6:10 pm

Re: smb_userdata

Post by miazza »

zdzi wrote:What's the error msg you get with admin? Would be interesting which of the 2 mount msgs you received so far it matches.

Also seems time to try more mount options.

Eg. For one person having troubles mounting a share used the nounix and sec parameters

mount.cifs //10.0.20.3/ubuntu /media/target -o username=davidallie,nounix,sec=ntlmssp

Might also help if you said what type of NAS have. Old doesn't help much ;)

Also what OS runs on that NAS?
First of all thanks for your answer.
I have tried so many mount options that I do not think there is one left :lol: and the result is always the same.
The nounix is not giving any visible effect.
sec parameters I have not yet tried ... I will try tonight.

I have tried several mounting with diffrent users like admin,user,PUBLIC,root,Root,USER and sometimes answer is different.
I will try to collect some of them tonight just for sharing with the forum.

thanks again for reading what I'm doing and giving suggestions.

The NAS is a very old LanStorage, LanDrive, Landisk based on RDC R2881 (some info here http://www.aroundmyroom.com/2008/03/04/ ... 2-landisk/). It works smbs on WWIN7,WINXP,KUBUNTU (asked user name=login_name and password=),XBMC on XBOX1, Android mobile and Tablet.
I
AVOID TO PUBLISH AND DISCLOSE SAMYGO PROJECTS ON OTHER FORUM.
zdzi
Posts: 46
Joined: Sat Aug 06, 2011 3:18 pm

Re: smb_userdata

Post by zdzi »

This worked for one guy:

-o username=guest,password=,nounix

I know you wrote you tried nounix but did you try with username guest and no password?
zdzi
Posts: 46
Joined: Sat Aug 06, 2011 3:18 pm

Re: smb_userdata

Post by zdzi »

Also what msg do you get when you run:

smbclient -L yourserverIP

?
miazza
SamyGO Project Donor
Posts: 773
Joined: Wed Apr 03, 2013 6:10 pm

Re: smb_userdata

Post by miazza »

I will try your suggestions and will report.
It is almost one week that I'm sleeping a few hours per night just to find a solution for this ... ...not its more a matter of who win :)
AVOID TO PUBLISH AND DISCLOSE SAMYGO PROJECTS ON OTHER FORUM.
miazza
SamyGO Project Donor
Posts: 773
Joined: Wed Apr 03, 2013 6:10 pm

Re: smb_userdata

Post by miazza »

zdzi wrote:This worked for one guy:

-o username=guest,password=,nounix

I know you wrote you tried nounix but did you try with username guest and no password?

YEEEEAAAAA :D :D :D :D :D zdzi you are really great. I think the sec=ntlmssp made the job.

I've sent this command:

Code: Select all

mount -o username=guest,password=,nounix,sec=ntlmssp -t cifs //192.168.1.5/PUBLIC /dtv/usb/sda/smb
Samba mounted immediately and my NAS is visible and streaming also works from the TV :D

I have also modified smb.conf as below even if this is not executed by the mount command:

Code: Select all

[global]
wins support = no
unix extensions = no
unix charset = UTF-8
dos charset = UTF-8
display charset = UTF-8
security = share
client lanman auth = Yes
auth methods = guest sam winbind
# client ntlmv2 auth = Yes
fstype = Samba

# set workgroup, own share etc...
include = /mtd_rwarea/smb.conf
workgroup = HOME
netbios name = Samsung-TV
server string = Some Server

load printers = no
printing = bsd
printcap name = /dev/null
disable spoolss = yes
guest account = root
guest ok = yes
guest only = yes
null passwords = yes
smb passwd file = /dtv/pp

[Samsung TV]
  comment = USB Drives on TV
  path = /dtv/usb
  public = yes
  writable = yes
So now I need help to transfer this manual mount into the automatic script.
AVOID TO PUBLISH AND DISCLOSE SAMYGO PROJECTS ON OTHER FORUM.
zdzi
Posts: 46
Joined: Sat Aug 06, 2011 3:18 pm

Re: smb_userdata

Post by zdzi »

That's simple.

In the 04_04_samba.init file

Find the case statement near the end of the file
Then after the insmod line, after the mkdir line put in your mount command.

If that share is all you need you can get rid of getservers and getshares lines in that section.

Btw really happy for you. Getting things working is a buzz :)

Post Reply

Return to “[E] Support”