This question already has an answer here:
i need to execute the following commands AFTER login.
sudo hdparm -y /dev/disk/by-uuid/443AFBAD7FE50945 sudo hdparm -y /dev/disk/by-uuid/7ABB49654B799D40
(trying to edit
rc.local does not work nor does using hdparm.conf because as soon as I log in the disks start up again). I have tried numerous things like bash files and autossh entries in the startup applications with no luck because sudo is involved.
i have tried the rc.local, the .bashrc, the autossh in startup, hdparm.conf. none of these options have worked