Added HDD sleep helper for reference

This commit is contained in:
Thord Johansson 2023-04-30 15:35:30 +02:00
parent a7135c8423
commit e4abda5134

7
sleephdd.sh Executable file
View File

@ -0,0 +1,7 @@
# would recommend using hd-idle over hdparm
SLEEPHDD_MOUNTPOINT="/mnt/backup"
SLEEPHDD_DEVICE="/dev/sdb"
! mountpoint -q "$SLEEPHDD_MOUNTPOINT" || sudo umount $SLEEPHDD_MOUNTPOINT
sudo hdparm -y $SLEEPHDD_DEVICE