Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4906

Raspberry Pi OS • Re: Hard drives that won't go to sleep under Linux

$
0
0
Great. You know autofs, that's what I am suggesting you use: an automounter. Except it would be the one included in systemd, so installing and configuring autofs wouldn't be necessary.

I've found this example of an fstab entry for an automounted drive: viewtopic.php?t=347609#p2082555
I'd add option "nofail" so that the computer boots up fully even if the drive is disconnected, so the entry becomes:

Code:

/dev/sda1 /media/myuser/mydrive auto defaults,nofail,noauto,sync,noatime,x-systemd.automount,x-systemd.idle-timeout=10 0 0
(10 secs timeout is much too low obviously. 5 or 10 minutes feel more appropriate.)

Before all that, the 1st step would be to verify the drive firmware actually attempts to power down the drive when it idles for a while. To make sure the drive is idle, umount (from the command-line?) any mount initiated by the filemanager. Then wait a good 5-10 minutes and hopefully the drive will enter some power saving mode.

HTH

Statistics: Posted by epoch1970 — Mon Dec 16, 2024 4:14 pm



Viewing all articles
Browse latest Browse all 4906

Trending Articles