Re: Monitor mount points

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 2006-01-24 at 16:28 -0500, Devon Harding wrote:
> Is there a way I could monitor mount points & automatically remount
> them (mount -a) if its ever disconnected?
> 
> -Devon
> -- 
> fedora-list mailing list
> fedora-list@xxxxxxxxxx
> To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list

Try automount (8)?

http://tldp.org/HOWTO/Automount.html

Create a new file named /etc/autofs.system:
mount_point	-fstype=net_fstype    server_name:/mount_point
mount_point	-fstype=fstype		  :/dev/<device_node>

Now, add the following line to the /etc/auto.master file:
/autofs         /etc/auto.system        --timeout=60

Now activate the autofs service and start it.
Once you access /autofs/<mount_point> the kernel will mount it.
If no-one uses this mount point for more then 60 seconds, the kernel
will unmount it.

Gilboa


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux