On Sat, 2021-03-13 at 08:04 +0800, Ed Greshko wrote:
Of course it's possible that sending some command to the dock would power down the drives, but the thing has no useful documentation. It just comes with (of course) a Windows driver.
OK.... My understanding is that the HW you have doesn't power-down or power-up (wake-up) in response to an unmount or mount operation.
Does any hardware do this when connected via USB?
So, in the case of automount/autounmount you need "something" to
issue power-up command followed by mount
and
unmount followed by issue power-down command
Exactly.
So, it does sound to me your configuration is very "non-standard" and not common. It also sounds like you're trying to workaround deficiencies in HW that seems to have been designed with Windows in mind.
Not surprising in itself of course, but I have to wonder if there exist external docks which work better with Linux in this regard.
I don't think systemd was meant to solve these sorts of issues And a kludge is more fitting than trying to shoehorn in a standard tool. Of course you then, potentially, have to maintain the kludge. I used to do that. But no longer. I found other "hobbies". :-)
Thanks Ed.
poc