On Tue, 2020-06-02 at 18:18 +0800, Ed Greshko wrote:
> On 2020-06-02 17:57, Patrick O'Callaghan wrote:
> > I have a powered USB dock with a couple of SATA drives configured as
> > RAID1, and used only for nightly backups. The (minimal) manual for the
> > dock tells me it will power down after 30 minutes idle time, however I
> > don't see this happening. I presume that something (such as the md
> > system) is touching the drives periodically.
> > 
> > What is the fstab option to have the drives mounted only when accessed?
> > This used to be automount (or autofs) but with systemd getting its
> > fingers into everything I know longer know how to do this.
> > 
> > Can the drive be automatically unmounted if not in use? I presume this
> > would stop md from trying to check it and hence prevent the dock from
> > keeping it powered on.
> 
> I've not tried the timeouts....  But I think you are looking for these options
> 
> x-systemd.automount, x-systemd.device-timeout=10, x-systemd.idle-timeout=1800
> 
> I use x-systemd.automount for nfs4 mounts but the NAS takes care of spinning 
> down.

Thanks Ed. I managed to find the man pages under systemd-mount(1) but
it took a while. The man page for mount(1) should have a reference but
doesn't.

poc
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org

Reply via email to