Re: Mounting network smb server
From: Chris Cox (ccox_nopenotthis_at_airmail.net)
Date: Sun, 13 Nov 2005 21:09:10 -0600
Lars Kellogg-Stedman wrote:
>>subnet). I can ftp to the NAS box OK,but can't get the syntax right for a
>>mount command.Do I need to specify the device first before I try to mount
>>the file system, or can I mount it by IP?
> If you're mounting a network filesystem like smb, there is no "device".
> Before you try mounting it, make sure you can actually access it via smb by
> using the 'smbclient' command:
> smbclient //server/share -U username
> If this works, you'll get an ftp-like interface to the share. If this
> doesn't work, you'll want to get it working before you try to get the mount
> To mount the device, you can try something like this:
> mount -t smbfs -o username=foo,password=bar \
> //server/share /local/directory
> See the 'smbmount' man page for more information. If you're still having
> problems, it would help us help you if you were to post the commands you're
> actually trying to use.
Alternatively, if this is running a new enough samba, you can
use cifs.mount instead of smbmount. I found it was necessary with
our W2K3 servers.