Shell script for auto/manual ejecting second drive on boot
If you have SSD and HDD and you do not want to use HDD constantly, it'll help you to decrease noise level of a computer and save battery power as well.
- Open repository folder in Terminal, run
sh 2nd.sh. - From the shown list please select the disk's number you want to make disabled automatically.
- Re-run Terminal to use new
2ndonand2ndoffcommands and restart the system to see how it works on a boot.
- Selected drive will automatically be turned off each time Mac OS is loaded.
- Run
2ndonin Terminal to enable the disk - Run
2ndoffin Terminal to disable the disk
Enjoy!