Disable NCQ linux
1. Hot-disable - This won't persist after a reboot.
Bash
echo 1 > /sys/block/sda/device/queue_depth
echo 1 > /sys/block/sd*/device/queue_depth
2. Permanent solution - edit /etc/default/grub and the "GRUB_CMDLINE_LINUX_DEFAULT=" line.
Bash
GRUB_CMDLINE_LINUX_DEFAULT="quiet libata.force=noncq,3.0"
Bash
update-grub