LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 02-17-2007, 04:06 AM   #1
bnebradd
LQ Newbie
 
Registered: Feb 2007
Posts: 13

Rep: Reputation: 0
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

Last edited by bnebradd; 02-17-2007 at 04:07 AM.
 
Old 02-17-2007, 04:17 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,396

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
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.
 
Old 02-17-2007, 09:33 AM   #3
bnebradd
LQ Newbie
 
Registered: Feb 2007
Posts: 13

Original Poster
Rep: Reputation: 0
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"
 
Old 02-17-2007, 02:38 PM   #4
teckk
Senior Member
 
Registered: Oct 2004
Distribution: FreeBSD Arch
Posts: 1,752

Rep: Reputation: 189Reputation: 189
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.
 
Old 02-17-2007, 06:10 PM   #5
bnebradd
LQ Newbie
 
Registered: Feb 2007
Posts: 13

Original Poster
Rep: Reputation: 0
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
 
Old 02-17-2007, 06:38 PM   #6
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
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.
 
Old 02-18-2007, 03:12 AM   #7
bnebradd
LQ Newbie
 
Registered: Feb 2007
Posts: 13

Original Poster
Rep: Reputation: 0
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://dboxassword@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.
 
Old 03-01-2007, 10:27 PM   #8
pwabrahams
Member
 
Registered: Nov 2005
Location: Deerfield MA
Distribution: OpenSuSE, Kubuntu
Posts: 272

Rep: Reputation: 41
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.
 
Old 03-10-2007, 06:07 PM   #9
jstars
Member
 
Registered: Jun 2005
Location: Edmonton, Canada
Distribution: SuSE 10
Posts: 51

Rep: Reputation: 15
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.
 
Old 03-11-2007, 10:43 PM   #10
pwabrahams
Member
 
Registered: Nov 2005
Location: Deerfield MA
Distribution: OpenSuSE, Kubuntu
Posts: 272

Rep: Reputation: 41
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.
 
Old 03-30-2007, 01:41 AM   #11
migube
LQ Newbie
 
Registered: Mar 2007
Posts: 2

Rep: Reputation: 0
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!
 
Old 04-07-2007, 03:40 AM   #12
migube
LQ Newbie
 
Registered: Mar 2007
Posts: 2

Rep: Reputation: 0
GOt it !!

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cifs "mount error 13 = Permission denied" CIFS SUCKS humbletech99 Linux - Networking 40 10-31-2012 08:50 AM
Why does CIFS mount fail dhoyer Fedora 5 12-02-2009 10:42 AM
mount.cifs - mount error 20 = Not a directory da_kidd_er Linux - Networking 10 10-16-2008 12:55 PM
Xman Error: no manual page found A-dummy Linux - General 3 01-13-2003 09:58 AM
see specific manual page herambshembekar Linux - Newbie 2 04-14-2002 12:33 PM


All times are GMT -5. The time now is 08:48 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration