I'm running Ubuntu 16.04 on a laptop. I have a small, 120GB SSD drive, and a secondary 1TB HDD.
Today I made Linux use a swap partition that is located on that second drive. After testing things out (opening LOTS of chrome tabs) and checking if the swap partition is used (it is), I noticed, that the drive in question doesn't spindown after some amount of time like it used to.
Battery life on my laptop is a huge deal to me, because I often have to work while traveling, with no way to recharge. Is there a way to force Linux out of using swap partition, and turn the second hdd off? Is there a way to do it automatically?