Hard Drive Disk Parking Safely

There is sound “clack” you can hear from the HDD when the system almost the end of power-off process.
It is caused decrease lifecycle to your HDD and could be damaged in the worst case.
I think that it needs lots of time to fix that behavior. so I recommend using this script as a workaround.
This script makes your HDD safely to park. no sound, no increases the SMART attribute Power-Off_Retract_Count at all.
I have checked some kind of HDDs with no issue. But I'm not sure that it works 100 percent to any kind of HDDs.
Thank you @Nominal Animal for giving us your idea from the odroid forum. External Link

How to apply shutdown script

Applied to HC1/HC2.
Download the script and install.

root@odroid:~# sudo apt-get install hdparm
root@odroid:~# wget https://dn.odroid.com/5422/script/odroid.shutdown
root@odroid:~# sudo install -o root -g root -m 0755 ./odroid.shutdown /lib/systemd/system-shutdown/odroid.shutdown
If you face that “The certificate” message when you try wget command, you can add the option to solve it. “–no-check-certificate -N”