Page 1 of 4
[SOLVED] smb_userdata
Posted: Sun May 05, 2013 10:30 pm
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:
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.
Re: smb_userdata
Posted: Sun May 05, 2013 10:33 pm
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?
Re: smb_userdata
Posted: Sun May 05, 2013 10:39 pm
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
Re: smb_userdata
Posted: Sun May 05, 2013 10:46 pm
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
Re: smb_userdata
Posted: Sun May 05, 2013 10:59 pm
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
Re: smb_userdata
Posted: Sun May 05, 2013 11:45 pm
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?
Re: smb_userdata
Posted: Sun May 05, 2013 11:46 pm
by zdzi
Oops sorry the mount command should be: mount -o guest -t cifs //server ip/share /dtv/usb/sda/nas
Re: smb_userdata
Posted: Mon May 06, 2013 8:25 pm
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
Re: smb_userdata
Posted: Mon May 06, 2013 8:54 pm
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
Re: smb_userdata
Posted: Mon May 06, 2013 9:26 pm
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>