I have 3 drives in my laptop, one of which is a mechanical hard drive for mass storage. I want to set this drive to standby because I want to preserve energy and keep my laptop silent at startup.
Command to do this: hdparm -Y /dev/sdb
things I've tried:
- add the command to startup applications https://i.stack.imgur.com/p63qr.png
- add the command to a script
- added aformentioned script + the command (both as sudo and non-sudo) in the
/etc/rc.local
https://i.stack.imgur.com/p2cFo.png
But the drive is still spinning when I start Ubuntu. Can anyone help?
system information:
- it's a toshiba mechanical drive
- Ubuntu 14.04
- laptop computer
sudo
in commands. rc.local is run pretty early in the system boot, the PATH may not have your command in it. Try using this information to get it working: http://askubuntu.com/questions/297992/how-do-i-run-a-script-on-startup-as-superuser – Paul Tanzini Sep 11 '14 at 02:09