Click to See Complete Forum and Search --> : mounting smb filesystem


antitrustworthy
07-21-2001, 10:34 PM
Ive tried using the command 'mount-t smbfs //192.168.0.1/C /mnt/server' to mount my sever on my machine. It gives me the error message
"session request to 192.168.0.1 failed
session request to 'SMBSERVER' failed
SMB connection failed"
I'll be honest... I'm not really sure how to use this command properly, which is why it isnt working. If somebody could explain it to me and maybe tell me what I can do to mount my server, I would appreciate it. The main thing I need explaining is what I should use for "//server/share". If you look above at my command, Im using //192.168.0.1/C, which is what I see when I type smb://192.168.0.1 to browse my server. "C" is the share, but I dont know if I should use the IP as the server or not. Thanks in advance.

bugfix
07-22-2001, 10:11 AM
Try it with 'smbmount', I don't know if it'll make any difference but it's worth a shot.

smbmount //host/share /mnt/server

where 'host' is the name of your computer (mine is 'xenon') and 'share' is the shared drive or folder, for example you might have a share called 'c-drive'.

e.g.
smbmount //xenon/c-drive /mnt/xenon_c

Is the share password protected? If it is then you need to provide it with one (-p <password> ) and if it isn't then you need to add a switch (-n, I think) so that it won't ask.

antitrustworthy
07-22-2001, 01:01 PM
That still didnt do anything for me.... thanks though. At least now I know what my host and share are now. My host is called Dori (that is my server name) and my share is C. So it should look like //Dori/C. It tells me that the connection to Dori failed. I can ping 192.168.0.1 (the server) fine, but I get errors if I try to ping Dori. Do I need to set up Dori as a user on my machine? Any suggestions at all?

Malakin
07-22-2001, 06:49 PM
When it *works* it gives you a single message saying it failed that looks like this:
"session request to 192.168.0.201 failed"
I think this only happens when mounting smb shares on a win2k box if I remember correctly.

bugfix
07-22-2001, 06:54 PM
-----------------EDIT-------------------
Sorry, I just re-read your post. Add a line to 'hosts' so you can ping Dori, this will then let Linux convert IP-address' to names. You can either do this or set up a DNS on your network but for now it's easier to use the 'hosts' file.

Have the net-name deamon running on your machine, I'm not entirely sure you need it to make connections to another machine but give it a shot. Type 'nmbd &'. Can you use 'smbclient' to make connections? I think the syntax to make an FTP style connection is like this:

smbclient -L //server/share

It should then ask you for a password, enter it or press return if you don't have one.
-----------------/EDIT------------------

[ 22 July 2001: Message edited by: bugfix ]

bugfix
07-22-2001, 07:03 PM
Do you have the samba deamon running? Type 'smbd'. Again, I don't think you need it because I think smbmount will work without it but don't quote me on that.

Malakin
07-23-2001, 05:08 AM
You can use ip's, I do it like this, omit the password and it will prompt you for it.

smbmount //192.168.0.200/myshare$ /smb/myshare -o username=myusername,password=mypassword