xubuntu System76 harddrive running clicking

I have a System76 Kudu that I am very happy with. I installed xubuntu over the top of Ubuntu already on it. It is setup with a mSATA SSD drive for the operating system and storage AND a 1TB traditional drive for backups and other stuff. I am not sure of the cause but for some reason the extra drive doesn't always spin down the way it is set to, and in rebellion is ticks every few seconds.

I have found that going to System Manage -> Disks and altering any setting for the extra drive will cause it to spin down and go silent. However when you put the machine into suspend and later wake it up, the spinning and clicking starts up again. I found a quick way to kill it off in terminal

sudo hdparm -B 40 /dev/sdb

Source of wisdom: https://sites.google.com/site/easylinuxtipsproject/bugs#TOC-Some-laptops...

And here is what is needed to make it so you don't have to enter it every time the machine wakes up from suspend:

cd /etc/pm/sleep.d/
sudo touch 20-hdparm
sudo chmod +x 20-hdparm
sudo gedit 20-hdparm

Then in the file put:

case "$1" in
hdparm -B 40 /dev/sdb


dev/sdb may have to be adjusted to target the id of your particular drive.

source of making it permanent: http://ubuntuforums.org/showthread.php?t=2064679