You are not logged in.

#1 2014-09-08 10:40:12

Tisalgelijk
Member
Registered: 2013-03-08
Posts: 4

HDD spins up before suspend (and shutdown)

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

#2 2014-09-19 14:09:09

emeres
Member
Registered: 2013-10-08
Posts: 1,570

Re: HDD spins up before suspend (and shutdown)

 Is the disk unmounted before spinning down?

Offline

#3 2014-09-19 16:47:50

branch
Member
Registered: 2014-03-16
Posts: 209

Re: HDD spins up before suspend (and shutdown)

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

#4 2014-09-21 22:05:56

Tisalgelijk
Member
Registered: 2013-03-08
Posts: 4

Re: HDD spins up before suspend (and shutdown)

branch wrote:

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

Board footer

Powered by FluxBB