RE: Auto mounting shares with samba
From: Rigler, Steve (SRigler_at_MarathonOil.com)
Date: 12/31/03
- Previous message: Kumar: "zone file"
- Maybe in reply to: Jason Williams: "Auto mounting shares with samba"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: Kumar: "zone file"
- Maybe in reply to: Jason Williams: "Auto mounting shares with samba"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|