Re: Mounting network smb server

From: Michael Perry (mperry_at_lnxpowered.org)
Date: 11/17/05

  • Next message: craig.hughes_at_gmail.com: "Re: running linux inside a small usb device?"
    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
    

  • Next message: craig.hughes_at_gmail.com: "Re: running linux inside a small usb device?"

    Relevant Pages

    • Re: SUSE 10.1 Printer problem
      ... Store-bought packaged SUSE v10.1 ... Attempts to mount the drive as root from ... My floppies, CD, DVD and USB flash drives all mount automatically with ...
      (alt.os.linux.suse)
    • Re: [SLE] Root filesystem on LVM on SuSE 9.0 (Progress!)
      ... SuSE needs to tweak their distribution to support this out of the box since ... Activate and mount your filesystems: ... can't believe support for this on ext3, the default filesystem on Red Hat, ...
      (SuSE)
    • SUSE 10.1 Printer problem
      ... I was the poster last week who wanted to know if I would keep my documents &c. when I loaded a new SUSE system on a machine that had been running RH Workstation. ... As Root from YaST2 I attempt to print test pages that always result in an error message window: ... SUSE sees the floppy drive and provides me with a handy desktop icon, but refuses to easily mount it. ... SUSE senses the external SCSI Zip 100 drive and provide me wit ha handy desktop icon for it, but will not mount it from the desktop. ...
      (alt.os.linux.suse)
    • Re: [opensuse] Why I dont upgrade often
      ... mount point and wonderful Suse 10.2 won't provide it. ... I'm curious what applications or programs you are having issues with. ... I've had just one application take issue with the way mount ... installer not HAL or anything related to how SUSE implements mount ...
      (SuSE)
    • Re: Serious Question - Mainstream Use - No Troll
      ... I am starting to use suse 9.1 prof, now, and the lan still includes dual ... btw I am a newb at suse and linux. ... We do not use dvds much, yet, but when getting dvd drives in future I ... I have not consciously *done* this yet, so maybe there is an auto mount ...
      (alt.os.linux.suse)