Click to See Complete Forum and Search --> : smb mount


friend621
03-20-2002, 11:08 PM
Hello.
I am trying to mount a windows 2000 share on redhat 7.2. I use
mount -t smbfs -o username=<username>, password=<password> //Server/share /mnt/mymnt
It works fine. It mounts the "share" on the windows 2000 cluster at /mnt/mymnt on my redhat. The deal is that I want to mount not the share but a path further down for example, //Server/share/my/path/name on the mount point /mnt/mymnt. I read the documentation, but was not able to find anything about it. Does any one has any idea how to do this?

Appreciate any help.

Thanks.

liquidfx13
03-22-2002, 12:57 AM
here's the syntax i use for mounting.....

smbmount //MYBOX/MYFILE<this is what the mount is on your winbox> /HOME/LIQUIDFX13/MNT/MYBOX/MYFILE<this is where you will mount it on your linux box> -o workgroup=MINE,username=ME,password=PASSWORD


of course you will fill in your information (the stuff in CAPS is what you want for your info).....

jumpedintothefire
03-22-2002, 10:03 AM
This works the same way as mapping a drive, you can map a drive only at the "share" point not further up(down??) the subdirectoies. If you want to mount just "home" then just share it by its self.

hope it helps

friend621
03-22-2002, 11:22 AM
Actually my question was to mount a remote path on the windows share. when I give the full path on //Server/share/my/path, I get an error saying that "path" is not a share on "Server". I was wondering if I can mount the path without having to make it a share. Another heartburn I am having is that //Server/share mounts fine on one of my redhat 7.2, but I have two more machines running identical services and they seem to have problem getting it mounted. I sometimes get an "Access Denied error" and sometimes "NT_STATUS_LOGON_FAILURE". I have tried samba 2.2.1a and 2.2.3a. I am still searching for an answer. Its frustrating to see it working on one machine and not on another pretty identical one.

Any input would help.

jumpedintothefire
03-22-2002, 04:41 PM
----quote-------
I was wondering if I can mount the path without having to make it a share.
----------------

No.

With the other 2 machines, are they tring to mount the same machine as the one that works?

friend621
03-22-2002, 04:44 PM
I dont know what I was doing wrong but, they are working fine now. Thanks for the help. And I presume you cant mount the remote path on the win2K machine. I will make do.

Thanks.

jcrowe
03-22-2002, 06:00 PM
Couldn't you mount the shared file and them create a symbolic link to the directory that you want?

jcrowe

friend621
03-22-2002, 06:45 PM
Thats exactly what I ended up doing. Its not a solution of my liking but I guess I dont have much choice. Thanks for the tip though. :-)