How to turn USB HDD properly off when shutting down OSMC

Hi

I had this issue too did not like the sudden click from hard drive did not sound good. What did was run hdparm in a shutdown script now it powers down gracefully. Make a script file with the line

hdparm -y /dev/sda1

Your hard drive may not be sda1. Run blkid in ssh to see dev name for yours. (Usually is sda1 with one hard drive attached)

And place it in /lib/systemd/system-shutdown

Hope this helps :slightly_smiling_face:

1 Like