Re: SAMBA -- automatic remounting
- From: John-Paul Stewart <jpstewart@xxxxxxxxxxxxxxxx>
- Date: Fri, 31 Mar 2006 11:13:05 -0500
The Natural Philosopher wrote:
Keith Keller wrote:
On 2006-03-30, Ignoramus27088 <ignoramus27088@xxxxxxxxxxxxxxxxxxxx> wrote:
What I do want though, is to ensure that these mounts would survive
reboots of the server and that they would auto-reconnect if something
goes bad temporarily. (one of these computers is for a 4.5 year old
kid, so I cannot expect him to do any system maintenance yet).
So...
1) How to detect when a samba mount is stale.
2) Is there some system flag to automatically remount the shared
drives, or do I just need to write a little "stale detection and
remounting" script? What is the right way to do it?
I'm surprised nobody has suggested automount. It won't necessarily
detect a stale mount, but it will timeout a mount (so that it won't be
affected if the mount is not needed when the server reboots), and will
automatically mount when a request is made for the automount point. It
works great in my NFS setup, but it's not fstype-specific (it can do
local mounts as well as network mounts).
That is what I thought the 'auto' bit in the mount command did..
Beware of the difference between these two fstab lines:
//server/share /mnt/somewhere smbfs auto,user=me 0 0
//server/share /mnt/somewhere autofs defaults 0 0
The first example will automatically mount the smbfs filesystem at boot time. The second example, where the *filesystem* type is specified as *autofs* is (I believe) what Keith was referring to when he suggested automount.
.
- Follow-Ups:
- Re: SAMBA -- automatic remounting
- From: Keith Keller
- Re: SAMBA -- automatic remounting
- From: Dances With Crows
- Re: SAMBA -- automatic remounting
- References:
- Re: SAMBA -- automatic remounting
- From: Keith Keller
- Re: SAMBA -- automatic remounting
- From: The Natural Philosopher
- Re: SAMBA -- automatic remounting
- Prev by Date: Re: Defrag? Constant HD accessing?
- Next by Date: Re: SCO vs. Fedora Core
- Previous by thread: Re: SAMBA -- automatic remounting
- Next by thread: Re: SAMBA -- automatic remounting
- Index(es):
Relevant Pages
|