You are not logged in.
After moving my root fs to an SSD I only use my rotational drive for storage and a Win7 dualboot, so it is only lightly used when I run Arch. I have set the drive to spin down after a few minutes which works fine.
My problem is that when I suspend (to RAM), the rotational drive spins up first, delaying the suspend process quite a bit and possibly causing unnecessary wear. Has anyone found a way to prevent this from happening?
The same thing happens when I shut down my system, though due to flushing caches and such to disk this is not something I mind all that much.
Offline
Is the disk unmounted before spinning down?
Offline
It needs to spin up to unmount cleanly.
If you set it up as an automount (either with autofs or in /etc/fstab with x-systemd.automount), it will unmount when it has not been used in some amount of time, and will then likely not be mounted when you suspend or shutdown. If you set the automount timeout to less than the spin-down timeout it will attempt to unmount before it spins down.
Offline
It needs to spin up to unmount cleanly.
If you set it up as an automount (either with autofs or in /etc/fstab with x-systemd.automount), it will unmount when it has not been used in some amount of time, and will then likely not be mounted when you suspend or shutdown. If you set the automount timeout to less than the spin-down timeout it will attempt to unmount before it spins down.
Hmm yes, I figured the spin-up at shutdown is due to unmounting, but suspend/resume doesn't seem like it would require an unmount...
In any case, I have a bind mount on this disk, which can not be set up as an automount with systemd. I'll just deal with my disk spinning up on the occasional suspend-to-RAM.
Offline