Re: Mounting by example..newbie question

From: J.O. Aho (
Date: 11/03/05

Date: Thu, 03 Nov 2005 09:04:55 +0100

Todd wrote:
> Server: SME Server 6.0.1-01.
> OS: Mixed Windows and Linux home network
> Here is what I am looking for. I have no problem going into Network
> Browsing in Linux and finding my network shares. I can see them and do
> what ever I need to. But, when I use a prog, Firefox or BearFTP for
> example, and it asks me where to save the file, i cannot get the
> program to see any network drives from their menu that lists the
> directories available. Therefore, I have to download the file to my
> local drive and then copy/move it across the network to the server. I
> understand that I have to use the "mount" command but I'm not doing it
> right. So, if I list my parameters can someone tell me the syntax to
> use. And, what would I configure so when I boot up into Linux that it
> would mount/map my network drives when they could be accessed from a
> prog so I can send downloads to the server.
> Thank you in advance.
> server name:memoryprime
> ip address:
> network share on server: //memoryprime/download
> Someone told me that I have to marry it to a directory that exists on
> my client PC. Is that true?

Yes, of course, or else it won't know where to mount it.

As I don't use samba, but nfs, I'm not sure if this will work or not, but you
can read the man page ('man smbmount' or click on the link).

mkdir -p /mnt/samba
mount -t smbfs //memoryprime/download /mnt/samba

The mkdir you only use the first time you mount the share, as I don't know how
your filesystem looks like, I added the -p option, so that the /mnt directory
is created if you don't already have it. This example don't use
password/login, for that I suggest you look at the man page for smbmount to
find the options.

If you want the smb share to be mounted at bootup, then add the following to
your /etc/fstab

//memoryprime/download /mnt/samba smbfs username=login,password=pass 0 0

This example uses the login/pass for samba and replace in that case it to what
you use instead of the 'login' and 'pass' that I have been using here.

Of course you may want to mount your samba share somewhere else, change the
paths. Things may not work from scratch, but you have most of what you need,
just modify until it goes as you want.