Click to See Complete Forum and Search --> : File Sharing


twofoolish2b
11-06-2000, 02:46 PM
I would like to know how am I suppose to map a network drive or folder under Linux. I have tried "smbmount, smbmnt, and mount" and I have still not had any luck. In Windows it would be like this, \\computer\folder. How does it work in Linux?

emanonii
11-06-2000, 03:40 PM
First off, you need to have samba running on your linux box. Assuming that you do, you need to create a mount point for the windows box. So create a directory that you will mount the windows machione to. The name doesn't matter, but it's easier to remember if you name the directory the same as the windows box. Then you have to mount the windows box to the directory. We'll use "winbox" for the name of the windows machine. To make it easy, just mount it off of /

So....

mkdir winbox

Then, depending on your version of samba, you will have to issue:

mount -t smbfs -o username=<windows username>,password=<windows user password> //winbox/<share name> /winbox

or:

smbmount //winbox/<share name> /winbox -U <windows username>

if you use the second command, you will then be prompted for a password.


[This message has been edited by emanonii (edited 06 November 2000).]

[This message has been edited by emanonii (edited 06 November 2000).]

twofoolish2b
11-06-2000, 04:10 PM
Well I tried what you said but it didn't work. It said Connection to winbox failed
mount: backgrounding "//winbox/ComputerName/ShareName". I know that Samba is running because I went a ran the command /etc/rc.d/init.d/samba start, and it said "Starting SMB services and Starting NMB services." What could be the problem?