|
Post by polarbear on Sept 9, 2010 22:14:27 GMT 7
Hello Thecus friends,
got a little problem on which the official Thecus support is not yet willing to help (forwarded my ticket to HQ), as it's connected to third party modules. Well, maybe some power user might help me ...
When I'm logged in to our Thecus N8800PRO via ssh (using modules _SSH and _SYSUSER), I try to mount a CIFS share on another server, with
mount -t cifs //cifs-share-server/share-folder //raid1/data/path-to-mountpoint -o username=myname,password=secret,domain=ourdomain,iocharset=utf8
which is working on any other linux system. The server I try to connect to is reachable via WAN port (ping works fine).
Anyway, the mount command on our N8800PRO leads to the following error message: > mount: wrong fs type, bad option, bad superblock on //cifs-share-server/share-folder, > missing codepage or other error > In some cases useful info is found in syslog - try > dmesg | tail or so
And dmesg gives me just: > CIFS VFS: cifs_mount failed w/return code = -22
I've read somewher, that a insmod cifs/smbfs would help, but it didn't.
A lsmod says: > Module Size Used by Not tainted > smbfs 56440 0 > cifs 229004 0
And smbfs/cifs are listed in /proc/filesystems, too.
I'd be very pleased if you have any suggestions how to solve this problem.
Many thanks in advance!
Best regards, Andreas Dilling Technical University Munich Chair for process systems engineering
|
|
|
Post by uncover on Sept 13, 2010 7:39:20 GMT 7
Hi,
Shouldn't "//" in "//raid1/data/path-to-mountpoint" actually be a single "/"?
|
|
|
Post by polarbear on Sept 13, 2010 18:34:59 GMT 7
Yes, of course it should ... But that is just a simple misstyping and actual not part of the problem. Maybe another info might be helpful: The command ... smbclient --list //cifs-share-server -U myuser ... is working fine and is listing me the shares on the server. So, I have no ideas why I can't mount one of the shares to our N8800PRO
|
|
|
Post by uncover on Sept 13, 2010 23:03:02 GMT 7
Have you tried using an IP address, like: //<ip-address-of-cifs-share-server>/share-folder ?
|
|
|
Post by polarbear on Sept 14, 2010 19:49:48 GMT 7
Yes, I did ... Not that I really thought it would help, since ping is working as fine as any other operation that resolves the hostname ... But anyway, yes, I've tried the pure ip address, too. I think the problem is that there's neither a mount.cifs, respectively mount.smbfs, nor an smbmount command installed on the N8800PRO. There are only the commands that could be found in /opt/samba/bin ... But I haven't found a module which installs the actual mounting components onto the Thecus NAS.
|
|
|
Post by uncover on Sept 15, 2010 8:40:03 GMT 7
Yeah, I'm just throwing some bones here Sometimes the trivial and obvious are overlooked. You probably already have looked at this page too: forums.hexus.net/thecus-care-hexus/152285-n5200-cant-mount-cifs-smb-share.htmlCommands used in that thread: insmod cifs modprobe cifs insmod smbfs modprobe smbfs mount -t cifs //serverip/share /raid/subfolder/where/youre/files/should/go -ousername=username,password=secret,domain=windozedomain,iocharset=iso8859-1,codepage=cp850 Notice the codepage option. I don't know which version of firmware you use, but version 3.04.03 contains the command smbmnt in /opt/samba/bin amongst wbinfo, tdbtool, tdbdump, smbstatus, smbpasswd, smbcontrol, smbclient, profiles and net. You could have a point there concerning mount.cifs and mount.smbfs which can't be found in this version. Don't know whether they are required.
|
|
|
Post by polarbear on Sept 15, 2010 13:57:43 GMT 7
Re-Hi! Yes, I know, the obvious things are often hidden for the tired eye ... Anyway, I can asure you that my problem isn't the way how to google for answers, but the answers I've found don't work. Therefore I'm looking forward for new suggestions, as you are quite at the point, now, to have adviced me all the things I've already mentioned to have done them before. Please be aware of the "ou" in smbm ount, which invokes smbmnt (without "ou") located in /opt/samba/bin beside the other samba tools. BTW: Have you succeeded in mounting a cifs share on a Thecus NAS yourself? How did you get it working? Many thanks, Andreas
|
|
|
Post by uncover on Sept 16, 2010 9:49:03 GMT 7
No, unfortunately, I haven't got it working yet Using strace to start the mount command shows: ... "/sbin/mount.cifs" ... (No such file or directory) So nothing to gain there with these binaries missing. What does work is using only smbclient (SMB, no CIFS) for i.e. back-up purposes. Create a tar file from a file in the share./opt/samba/bin/smbclient //<server-ip>/<sharename> --user=<username>%<password> -Tc /tmp/sharebackup.tar <file-on-share-to-backup>
Show "smb: \>" prompt./opt/samba/bin/smbclient //<server-ip>/<sharename> --user=<username>%<password> Thus, unless someone is capable of producing mount.cifs and mount.smbfs, it seems unlikely to successfully use the mount command. For now, good luck!
|
|
|
Post by polarbear on Sept 21, 2010 17:25:27 GMT 7
HEUREKA! I've finally made it! Somewhere in the net I've found the info that i386-Debian packages work well on Thecus' linux distribution. So I just downloaded the missing package (smbfs) and extracted it on a Debian system and copied the whole package content to /raid/data/module/SMBFS on my Thecus NAS. (I've used an external USB drive, but rsync should work, too.) To make things smart and fancy, I've assembled everything to a module that can be uploaded via the web interface in the usual way. (BTW: This took me some days, as I've scrambled the firmware of our NAS during the tests. ) In the current version the module just adds the missing smbfs package and creates links in /sbin and /usr/bin. Maybe someday I'll also find the time to add a web interface for mounting/unmounting, so you don't need to work on the command shell via ssh. A simple way to mount cifs shares automatically is to add the mount/unmount commands to the start/stop procedures in SMBFS' module.rc. Anyone who's interested in the SMBFS module can download it from www.wzw.tum.de/svt/wiki/bin/view/SVT/Staff/IT/ThecusModules(Please note that this URL might change within the next month's as we plan to restructure our wiki. In the case the link is dead visit our homepage www.wzw.tum.de/svt/ and navigate to/search for the module manually.) Hope this might help others, too. Regards, Andreas
|
|