LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Refer to the mount.cifs(8) manual page (https://www.linuxquestions.org/questions/linux-networking-3/refer-to-the-mount-cifs-8-manual-page-529845/)

bnebradd 02-17-2007 04:06 AM

Refer to the mount.cifs(8) manual page
 
Hi all,

I'm totally new to linux (open suse 10.2), and I'm trying to mount a NAS drive, encased in a fantec landrive case. I am trying to use the command below:

mount.cifs //<server>/<share> -o username=xxx,password=yyy

Unfortunately, i'm getting

mount error 20 = Not a directory
Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)

The command is being issued from the Konsole as super user.

However, when I try to access the drive's folders through smb://admin@13.17.0.10/documents in Konqueror it works, meaning that I can browse and access the files. However, applications like bibble and others do not show these folders.

Anything I should do? I would attach my configuration files, but right now I have no idea which ones I should look for, so anybody willing to take me by the hand and help would be most appreciated. So far I have been fairly conversant with windows, but linux is proving to be very difficult for me.

thanks!

Ben

acid_kewpie 02-17-2007 04:17 AM

well did you refer to the mapage...? if you mount this shared drive, how do you expect to actually get to the data? where would it be mounted? you've not said that have you? just like the very useful error message said, there's no directory to mount it to.

bnebradd 02-17-2007 09:33 AM

Quote:

Originally Posted by acid_kewpie
well did you refer to the mapage...? if you mount this shared drive, how do you expect to actually get to the data? where would it be mounted? you've not said that have you? just like the very useful error message said, there's no directory to mount it to.


well, I actually did read the manpage and I did try many different options, believe it or not, with or without options, with or without indication of the directory in which to mount. When I wrote my message, I copied the last command issued without double-checking. Apologies for that.

Anyway, the commands

mount.cifs //<server>/<share> /mnt/NASDocs -o username=xxx,password=yyy

mount.cifs //<server>/<share> /home/<myusername>/NASDocs -o username=xxx,password=yyy

both return the same error message. And yes, I know that linux is case-sensitive. And yes, both folders exist. Now, am I getting something wrong and mistaking a folder for a directory?

BTW, I did say that I was totally new and newbies do tend to do stupid stuff. But, you did sound very patronising in your response. Just ignore my messages if they are so stupid and irritating to you. If am am going overboard, apologies. Oh, and for the record, if I don't indicate the mount directory, the error message is actually "mount error: can not change directory into mount target -o"

teckk 02-17-2007 02:38 PM

Quote:

I'm totally new to linux (open suse 10.2), and I'm trying to mount a NAS drive, encased in a fantec landrive case. I am trying to use the command below:
I'm not familiar with that. What OS and file server is it running? You are using smb:// in konqueror?

Code:

mount -t smbfs //server/share /mounting/point
You'll be prompted for name and psswrd. Old way of doing it.

http://linuxcommand.org/man_pages/mount8.html

You are trying to mount as root?
It says that you are not specifying the path correctly.

bnebradd 02-17-2007 06:10 PM

Hi,
thanks a lot for your response. Unfortunately, the mount -t smbfs also does not work, it return "smbfs filesystem not supported by the Kernel" (I think this is the case from Suse 10.1 and later versions).

As for the details of the operating system of the drive, I cannot find anything detailed. I can tell you that it is a samba and/or FTP server (what it says in the manual is "Utilizing the SMB (Server Message Block) protocol, the LanDrive allows any computer client that supports TCP/IP, NetBuei or IPX/SPX to share files. The built-in FTP server also allows any clients with internet connectivity to access the LanDrive.")

It uses a FAT32 file system.

To your other questions, yes, I am trying to mount it as root in a console, if I try without the super user console it tells me that only root can issue that command. And I assure you the path is corrected, since I am cutting and pasting it from the address bar in Konqueror.

In Konqueror, I can access the drive as smb://admin@<ipaddress>/documents, and can copy and move files. However, even though I can see the drive through applications, it tells me that saving through the protocol smb is not supported. Plus, every time I open the drive it asks for username and password.

Thanks a lot for your help, I am beginning to wonder whether this drive is compatible with Linux at all (the user manual kinda hints that it is)...

Ben

jschiwal 02-17-2007 06:38 PM

Quote:

Originally Posted by bnebradd
Unfortunately, the mount -t smbfs also does not work, it return "smbfs filesystem not supported by the Kernel"

Use cifs instead of smbfs. Smbfs is no longer maintained. As I understand it, Cifs performs better when used for Linux to Linux file sharing. Otherwise they are the same.

SuSE has a samba-doc package that includes 3 books, such as Samba3-HOWTO.pdf. They have sections on troubleshooting and using the samba command line utilities to list shares on other machines, etc.

For example, if you enter "smbtree" it should printout a tree of all of the shares on the network. You will want to find out things like whether the NAS device is a PDC or a Master Browser or a WINS server. You can't have two PDCs on a subnet for example. That could cause problems with browsing. Also make sure that the firewall isn't blocking ports that you need.

You could also use swat to configure Samba. It is also handy at listing shares, locks, and checking if the nmbd and smbd services are running.

bnebradd 02-18-2007 03:12 AM

Thanks a lot Teckk and Jschiwal for your responses.

A bit more research finally led me to this article (http://blog.boltzmann-konstante.de/a...ased-systems/), which leads me now to having to learn about lufs. Thanks a lot for your kind responses, though. Below is a quick summary of the article.

In essence, it suggests that the Fantec LD-M35NU2-2 (not my model exactly but I assume the same chip is used) is based on the RDC2882. It’s a so called System-on-Chip Design.

Drawbacks…

1. if the box is behind a router, which does NAT, its depends more on luck that you can get this box to work properly
2. SMB isn’t working from Linux (BSD untested ATM)
3. FTP unusable if you want passive ftp

To mount a share via ftp, follow this example:

# insmod lufs
# lufsmount ftpfs://dbox:password@192.168.10.250/dbox -o ftpactive

The lufs kernel module doesn’t get automatically loaded so it must be loaded by hand. The mount command is self-explanatory, but is very important that you specify “ftpactive”, otherwise it will not work and the process just hangs.

pwabrahams 03-01-2007 10:27 PM

mount.cifs doesn't do it either
 
I tried using cifs as recommended and got this (from a root shell):

Quote:

suillus:~ # mount.cifs //lactarius/downloads mnt
mount error: could not find target server. TCP name lactarius/downloads not found
No ip address specified and hostname not found
Of course I can see smb://lactarius/downloads from Konqueror.

What's particularly puzzling is that if I do the same thing from the lactarius machine, it does the mount correctly. On the other hand, from lactarius I get the error if I try to mount a suillus SMB share.

In other words, the error appears if you try to use mount.cifs for a file on some other machine but not if you use it for a file on your own machine.

jstars 03-10-2007 06:07 PM

I use:
mount.cifs //server/share /home/jstars/Documents -o user="jstars",pass="xxxxxxxxx" and it worked in SuSE 10.2
However I don't have write access. I'll have to trouble-shoot.

pwabrahams 03-11-2007 10:43 PM

I now think the cifs approach is a red herring. I finally tried recompiling the kernel (time-consuming but not terribly complicated) with the smbfs facility enabled (it was disabled by default, which it probably shouldn't have been). And after the usual ceremonies (resetting the bootloader) it worked just as it did in the good old days. One minor complication: I copied the new kernel and the new smbfs module over to another machine running SuSE 10.2 without recompiling there, and at first it couldn't find the module. But after running depmod there, all was well.

migube 03-30-2007 01:41 AM

openwrt with RDC Landrive
 
Hi All,

I’m trying to mount the landrive shared folders on a linksys WRT54G with openWRT.
I tried smbclient, mount.cifs, none wants to work with the landrive.
(error 20 or 22). I tried folder with and without password.

What is the default login on the Landrive as none can be set...

I didn’t find any fuseftp or lufs or curlftpfs on openwrt to use FTP instead.

Any idea?
thanks!

migube 04-07-2007 03:40 AM

GOt it !!
 
http://forum.openwrt.org/viewtopic.php?id=9500


All times are GMT -5. The time now is 05:35 AM.