[SOLVED] Samba - Problem viewing directories on NSLU2 Cisco
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Samba - Problem viewing directories on NSLU2 Cisco
Through KDE's Konqueror, I am attempting to view the directories and files on a Cisco NSLU2. I'm using smb://hostname This is not a permissions issue, as I am connecting as Admin, which is equivalent to root.
The NSLU2 is running the latest image from Cisco. The USB disk on the Samba NSLU2 is unfortunately formatted with fat32. I suspect this is the problem. I can still connect normally to the NSLU2 from other systems running XP. And I can connect normally to Server 2003 shares using smb and Konqueror.
I am running a generic Slackware 2.6.27.7-SMP image with full packages install.
Errors I get -
While the directory is loading, I get numerous errors such as "file does not exist smb://admin@qbook/PRGM" which is actually a folder "/PRGMS".
All files and folders show zero bytes
All subdirectories that do show available show empty
Does the Client need to have some version of FAT support loaded when connecting VIA Samba? Which one?
Is there a way to list which file systems are supported?
I am running a generic Slackware 2.6.27.7-SMP image with full packages install.
This kernel does not support the smbfs file system. Try mounting the share using the cifs filesystem. The cifs file system now supplies the functionality of the deprecated smbfs file system.
I saw this yesterday, thought about it, and I don't think this is the same issue. The thread you listed refers to the access protocol lanman, which is still supported in Windows, but is considered deprecated. It is connecting on port 139, which is Netbios.
I'm able to connect and authenticate, but my Linux system does not appear to be properly interpreting the remote file system. All my Windows to Cisco work fine, and all my Linux to Windows works fine, but my Linux to Cisco, which runs Samba on Linux connects but does not seem to interpret the directory data properly.
All files and folders show zero bytes
All subdirectories that do show available show empty
Yes, I have seen this problem when attempting to remotely access a Samba share from a Windows98 machine mounted on a server running Slackware 12.2 with the 2.6.27.7-smp kernel. From the local server, I can see all the files but the inode count is incorrect.
All the other shares from Windows2000 and WindowsXP machines are fine.
The problem was not present prior to upgrade from 12.1 to 12.2, when support for smbfs was removed.
The problem is partly due to a bug in CIFS support for legacy file systems. (I did actually write a little patch for inode.c that partly resolved the problem). I am unsure of the status of the bug in kernels later than 2.6.27.7. I just diff'd the kernel source for inode.c in 2.6.29.6 against my patched file and note quite a few differences. Obviously time for me to do some more testing!
Hi
I have got the same problem, but I'm using Debian. Could you please tell what should I exactly do to solve this?
I can't figure out how it was solved in here.
This kernel does not support the smbfs file system. Try mounting the share using the cifs filesystem. The cifs file system now supplies the functionality of the deprecated smbfs file system.
cifs = Common Internet File System.
smbfs = Server Message Block File System
Before you could just browse a remote file system in X on demand with smbfs. However, smbfs is not supported starting with Linux Kernel 2.6.27. The X applications have not caught up with this change. So for now you have to manually mount the remote system into your local filesystem tree first with cifs.
mount -t cifs //tcp-name-of-server/sharename /mnt/some-name -o user=username,pass=password,sec=(ntlm or lanman),servern=NETBIOS_NAME
For the security, use ntlm, which is what I'm using. But if that does not work, you may have to use lanman. You won't need the Password field unless you are adding this to your initialization script. The TCP/IP Server name is not the same as the "servern" field. The TCP/IP name is similar to "www.fred.com" where the "servern" is the WINS same, or Netbios name.
Hopefully the X Applications will catch up to this change soon and bring back the ease we once enjoyed connecting to our Cisco NAS devices.
Last edited by Suncoast; 08-25-2009 at 08:47 AM.
Reason: 1 letter typo
Today I upgraded the kernel from 2.6.27.7-smp to 2.6.27.31-smp on the server that I have mounting a Win98 share. I have not fully investigated the results of the kernel change, but it appears that the problem persists.
Clarification! You need to enclose the share name in quotes if it contains any spaces. The default naming on the NSLU2 uses share names of "/Disk 1" and "/Disk 2". This is not mentioned in the man page. Also you must use // and not \\, even though the mount help screen says you can use either.
Example:
mount -t cifs "//tcp-name-of-server/sharename" /mnt/some-name -o user=username,sec=ntlm,servern=NETBIOS_NAME,ip=192.168.2.101
Suncoast thank you very much, the access to the disk is now working properly, despite the fact that I must add the permissions to the files, because I can't access to them, but that is not a problem (although it will take some time).
Now I must focus on having the wifi connection speeded up, because the slowness of disc is killing me.
The NSLU2 uses either a Fat32 or NTFS file system. So I don't think you can apply that logic to those files, although I've never tried. And you set permissions for folders and drives through the NSLU2 Web Interface, not from the Linux CLI.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.