Re: Mounting network smb server
From: Michael Perry (mperry_at_lnxpowered.org)
Date: 11/17/05
- Previous message: Smack'n Rat: "Re: running linux inside a small usb device?"
- In reply to: Lars Kellogg-Stedman: "Re: Mounting network smb server"
- Next in thread: Marie-France: "Re: Mounting network smb server"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 16 Nov 2005 15:57:47 -0800
On Sun, 13 Nov 2005 17:05:14 -0600,
Lars Kellogg-Stedman <u6bhtuqv12yu5n7@jetable.com> 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
> working.
>
> 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.
>
I just went through this with a minor twist. I have two systems running
SuSE 10. One is a laptop and the other a desktop with samba setup, etc.
I ended up writing a pretty simply shell script but the issue was
figuring out how to mount smb shares in read/write mode. I had to use
uid= and gid= statements to make it work plus the excellent snippet from
the above poster. One thing that still seems strange is if I mount a
share from my SuSE laptop, I can move files around effortlessly; but I
get a warning that file attributes could not be written and operation not
permitted with each one. I've read here and there and it seems that this
may be a known issue as I've seen various and sundry errors like this
with others using smbfs to mount linux samba shares. An interesting
other point to this is that I get the same warnings with nfs mounting
from SuSE to SuSE. I don't know hardly enough about ACLs or if its
really something with Reiserfs and how its mounted.
Everything works very well either way and I can use Nautilus to browse
the shares easily once I mout them in an xterm. I never was able to get
Nautilus to mount the shares itself and be able to edit files so I gave
up after reading similar problems here and there with other users.
-- Michael Perry | Do or do not. There is no try. -Master Yoda mperry@lnxpowered.org
- Previous message: Smack'n Rat: "Re: running linux inside a small usb device?"
- In reply to: Lars Kellogg-Stedman: "Re: Mounting network smb server"
- Next in thread: Marie-France: "Re: Mounting network smb server"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|