RE: Auto mounting shares with samba

From: Rigler, Steve (SRigler_at_MarathonOil.com)
Date: 12/31/03

  • Next message: Steve Cowles: "Re: Wht's wrong with my DNS config."
    To: <redhat-list@redhat.com>
    Date: Wed, 31 Dec 2003 06:53:17 -0600
    
    

    This is what autofs is for. Instead of hardmounting everything
    and risk having your machine hang when a filesystem goes unavailable
    it only mounts the filesystem when you are using it.

    Set up a automount pointing to an indirect map in your /etc/auto.master:

    /sambashares /etc/auto.samba

    Then setup an indirect map (like /etc/auto.samba)
    someshare -rw,fstype=smbfs,credentials=credentialsfile ://server/share

    Then restart/reload autofs service autofs reload|restart.

    Your mount point won't be visible until it's actually used, so do
    "ls /sambashares/someshare" to verify that it works.

    -- 
    S C Rigler
    RHCE #803003335409754
    > -----Original Message-----
    > From: redhat-list-admin@redhat.com
    > [mailto:redhat-list-admin@redhat.com]On Behalf Of Jason Williams
    > Sent: Tuesday, December 30, 2003 5:41 PM
    > To: redhat-list@redhat.com
    > Subject: Auto mounting shares with samba
    > 
    > 
    > Hello everyone.
    > 
    > I'm running a test samba server (2.2.8a) and was doing some 
    > testing here. 
    > (RH 8.0 box)
    > 
    > One thing I wanted to test was the ability to have Windows shares 
    > automounted if the sambaserver was rebooted for some reason.
    > 
    > Currently, I have a NT 4.0 server setup and with a couple of shares.
    > 
    > What is the best way to have shares automounted on a reboot? 
    > Is there a 
    > link some where that shows how to do this? I've been stumped 
    > on doing this.
    > 
    > I appreciate the help.
    > 
    > J.
    > 
    > 
    > -- 
    > redhat-list mailing list
    > unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
    > https://www.redhat.com/mailman/listinfo/redhat-list
    > 
    > 
    -- 
    redhat-list mailing list
    unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
    https://www.redhat.com/mailman/listinfo/redhat-list
    

  • Next message: Steve Cowles: "Re: Wht's wrong with my DNS config."

    Relevant Pages

    • Re: [VFS-RFC] autofs4 and bind, rbind and move mount requests
      ... >> Are you talking about an automounted filesystem, ... > I'm not really concerned about whether bind and move mounts work or not. ... > happy to say these types of mounts are not supported by autofs if I could ... by having the automoutnter daemon chdir to the ...
      (Linux-Kernel)
    • Re: [PATCH 3/4] autofs4 - track uid and gid of last mount requestor
      ... daemon and there are active autofs managed mounts in place at exit (ie. ... scan the file systems, mounting every mount. ...
      (Linux-Kernel)
    • Re: [VFS-RFC] autofs4 and bind, rbind and move mount requests
      ... The mounts appear in a map whose source can be a file or NIS or other ... A master map tells autofs where to find the actual ... Not sure that will be without pain down the track from a support ...
      (Linux-Kernel)
    • Re: [autofs] [RFC] Towards a Modern Autofs
      ... entangling autofs with that work. ... > map is mounted. ... I don't quite see the need for the mapkey mount option. ... But in sec. 5.3.2 I see you making filesystem dirs in /tmp which seem to ...
      (Linux-Kernel)
    • Re: [autofs] [RFC] Towards a Modern Autofs
      ... > including subdirs of other autofs filesystems. ... > anything about autofs maps that the userspace helper may or may not ... and whether the mount will be viable once the server comes back. ... userspace needs to be locked out from filesystem "a" while umounting ...
      (Linux-Kernel)