Don't let the topic fool you I had this issue when I was running that awful OS known as Windows as well. If you're getting any of the following errors I have some checks and changes you can make to reduce this problem, so if you see any of these errors in dmesg:
ata2.00: exception Emask 0x10 SAct 0x1 SErr 0x400000 action 0x6 frozen
ata2.00: failed command: WRITE FPDMA QUEUED
ata1.00: failed command: READ FPDMA QUEUED
ata2: hard resetting link
Then this will probably help you, this fix basically revolves around making sure these following files stay on max_performance:
A patch was added sometime ago to pm-utils to disable sata advanced link power management, however to make sure this is the case you can check the following file:
File path may vary depending on distro, you want to look for the following two lines:
Defaults to "false".
If these are present pm-utils will not touch the above syfs file. The last change is to adjust laptop mode tools if you have it. So edit this file:
and change this line:
Save the file and exit, this should prevent Linux using the sata alpm of your drive and hopefully avoid these errors in dmesg.