[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

[SOLVED] smb_userdata

Post by miazza »

Hello people,
while fighting with my NAS SMB server, I have discovered that without the file smb_userdata the samygo does not go and also telnet or Shell commander will not give any feedack to commands.
This might be normal but the same happen also if you put a file smb_userdata without any user name or password:

Code: Select all

USER=""
PASSWD=""
And this is surprising because for example my SMB is without any Passwod or User.

If you want to have Samygo Virtual USB to mount SMB, you have to put a smb_userdata with set a user and a password.
In this way SMB is mounted (I made the try few times and the result was alway confirmed).

Probably this has nothing to do with my difficulty to mount my SMB :

Code: Select all

root@(none) phpsysinfo $ /mnt/etc/init.d/04_04_samba.init start
insmod: can't insert '/mnt/lib/modules/2.6.35.13/kernel/fs/cifs/cifs.ko': File exists
Search Shares
on: STORAGE-1A01
creating lame upcase table
creating lame lowcase table
Domain=[HOME] OS=[] Server=[]
Domain=[HOME] OS=[] Server=[]
mount: mounting //STORAGE-1A01/PUBLIC on /dtv/usb/sda/smb/STORAGE-1A01/PUBLIC failed: Invalid argument
Anyhow I think it is a triky point.
Last edited by miazza on Thu May 09, 2013 1:24 pm, edited 1 time in total.
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 »

I've been seeing your posts when I was searching for an answer to my problem. No one suggested you try to manually mount your share after telneting in. Did you try this and did it work?
miazza
SamyGO Project Donor
Posts: 773
Joined: Wed Apr 03, 2013 6:10 pm

Re: smb_userdata

Post by miazza »

zdzi wrote:I've been seeing your posts when I was searching for an answer to my problem. No one suggested you try to manually mount your share after telneting in. Did you try this and did it work?
I'm not very familiar with linux commands.
What would be the code for manually mount my share ?

Code: Select all

root@(none) phpsysinfo $ mount -t cifs //STORAGE-1A01/PUBLIC /dtv/usb/sda/smb/STORAGE-1A01/PUBLIC
mount: wrong fs type, bad option, bad superblock on //STORAGE-1A01/PUBLIC,
       missing codepage or helper program, or other error
       (for several filesystems (e.g. nfs, cifs) you might
       need a /sbin/mount.<type> helper program)
       In some cases useful info is found in syslog - try
       dmesg | tail  or so

Code: Select all

root@(none) phpsysinfo $ dmesg | tail
##### send signal from USER, SIG : 15, httpd(2038)->php-cgi(2107) sys_kill
 ##### call default signal (14) handler
 ##### call default signal (17) handler
 ##### call default signal (17) handler
##### send signal from USER, SIG : 9, UEP_killer.sh(2487)->UEP(2477) sys_kill
CIFS VFS: No username specified
CIFS VFS: cifs_mount failed w/return code = -22
##### send signal from USER, SIG : 15, httpd(2061)->php-cgi(2974) sys_kill
CIFS VFS: cifs_mount failed w/return code = -22
##### send signal from USER, SIG : 15, httpd(2038)->php-cgi(3015) sys_kill
Last edited by miazza on Sun May 05, 2013 10:55 pm, edited 2 times in total.
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 »

I don't know how to handle blank user names and passwords but you could try this and see what message you get:

mount -t cifs //your server ip/your server share /dtv/usb/sdj/nas

But first you need to cd /dtv/usb/sdj
Then: md nas

Sdj exists if you use virtual USB
If you use a normal USB then change sdj to sda in the mount command

To be sure, you could go: cd /dtv/usb and then do: ls

This will show you what you have
miazza
SamyGO Project Donor
Posts: 773
Joined: Wed Apr 03, 2013 6:10 pm

Re: smb_userdata

Post by miazza »

I do not have sdj, I have sda/smb instead but the command it that one.

What is interesting is the different answer if I try to maunt it as IP or with its name:

Code: Select all

root@(none) phpsysinfo $ /mnt/etc/init.d/04_04_samba.zoelchat.init start
insmod: can't insert '/mnt/lib/modules/2.6.35.13/kernel/fs/cifs/cifs.ko': File exists
Search Shares
on: STORAGE-1A01
creating lame upcase table
creating lame lowcase table
Domain=[HOME] OS=[] Server=[]
Domain=[HOME] OS=[] Server=[]
mount: mounting //STORAGE-1A01/PUBLIC on /dtv/usb/sda/smb/STORAGE-1A01/PUBLIC failed: Invalid argument
on: 192.168.1.5
creating lame upcase table
creating lame lowcase table
Domain=[HOME] OS=[] Server=[]
Domain=[HOME] OS=[] Server=[]
mount: mounting //192.168.1.5/PUBLIC on /dtv/usb/sda/smb/192.168.1.5/PUBLIC failed: Input/output error
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 »

Here shows how to mount using blank username: http://swerdna.dyndns.org/susesambacifs.html

mount -o guest //your server ip/your share /dtv/usb/sda/nas

First create the folder nas otherwise the mount will fail

md /dtv/usb/sda/nas

Then run the mount command

What happens?
zdzi
Posts: 46
Joined: Sat Aug 06, 2011 3:18 pm

Re: smb_userdata

Post by zdzi »

Oops sorry the mount command should be: mount -o guest -t cifs //server ip/share /dtv/usb/sda/nas
miazza
SamyGO Project Donor
Posts: 773
Joined: Wed Apr 03, 2013 6:10 pm

Re: smb_userdata

Post by miazza »

Code: Select all

root@(none) phpsysinfo $ mount -o guest -t cifs //192.168.1.5/PUBLIC /dtv/usb/sda/smb
mount: wrong fs type, bad option, bad superblock on //192.168.1.5/PUBLIC,
       missing codepage or helper program, or other error
       (for several filesystems (e.g. nfs, cifs) you might
       need a /sbin/mount.<type> helper program)
       In some cases useful info is found in syslog - try
       dmesg | tail  or so
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 »

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
User avatar
fluffi444
SamyGO Project Donor
Posts: 569
Joined: Fri Apr 05, 2013 9:55 pm
Location: Germany

Re: smb_userdata

Post by fluffi444 »

You can also use (completely without user/pass) - "sda" could change depending of your local USB setup at TV

Code: Select all

mount -o user=,password= -t cifs //<Server IP>/<Shared Folder> /dtv/usb/sda/<folder>
TV: UE40ES7000 @ UE40ES8090 - T-ECPDEUC-2022.0 // SamyGO
CI+: Unicam EVO 4 with HD+ (HD02) @ Pacific 4.60
NET: Samba: PC

Post Reply

Return to “[E] Support”