SATA trouble in Linux town

SATA trouble in Linux town

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:

cat /sys/class/scsi_host/host*/link_power_management_policy

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:

/usr/lib/pm-utils/power.d/sata_alpm

File path may vary depending on distro, you want to look for the following two lines:

SATA_ALPM_ENABLE=${SATA_ALPM_ENABLE:-false}

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:

/etc/laptop-mode/conf.d/intel-sata-powermgmt.conf

and change this line:

BATT_ACTIVATE_SATA_POWER=1

to:

BATT_ACTIVATE_SATA_POWER=0

Save the file and exit, this should prevent Linux using the sata alpm of your drive and hopefully avoid these errors in dmesg.

Mata ne!

Leave a Reply

Your email address will not be published. Required fields are marked *