Re: Mount options for mostly-offline drives

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

 



On Thu, 2020-06-04 at 14:21 +0200, Bob Marcan wrote:
> On Tue, 02 Jun 2020 10:57:10 +0100
> Patrick O'Callaghan <pocallaghan@xxxxxxxxx> 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.
> > 
> 
> What is wrong with autofs and in 
> /etc/auto.master
> # Include /etc/auto.master.d/*.autofs
> # The included files must conform to the format of this file.
> #
> /media	/etc/auto.master.d/auto.media --timeout=60 --ghost
> 
> and in
> 
> /etc/auto.master.d/auto.media
> #
> # This is an automounter map and it has the following format
> # key [ -mount-options-separated-by-comma ] location
> # Details may be found in the autofs(5) manpage
> WD500-MyBook		-fstype=auto,noatime,nodiratime			:/dev/disk/by-label/WD500-MyBook
> 
> It works for me. Not USB, it is eSATA.

I'll look at that, thanks. However I'm also interested in getting the
drives to power down when not in use. I've managed to do that
successfully but I don't know if autofs has hooks to enable me to
insert the appropriate commands.

poc
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
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@xxxxxxxxxxxxxxxxxxxxxxx



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux