Linux Bug: SATA failed command: WRITE FPDMA QUEUED ata3.00 ncq freeze hang

Problem: If you copy or install Files from Disk to Disk somtimes the fresh installed Debian Ubuntu Linux in Textmode (server minimal setup) current kernel freezes or lost connect to the Disks. Take a CLOSER LOOK the Error often affects ALL DISKS !! If only one Disk  affected replace the Drive to SATA600

Hardware:  Asus M4n75TD NEW with Phenom 1090T X6 and 8GB Ram and

/dev/sda:
Model=Hitachi, FwRev=GM4OA52A, SerialNo=GEA530RF1RDDGA
Config={ HardSect NotMFM HdSw>15uSec Fixed DTR>10Mbs }
RawCHS=16383/16/63, TrkSize=0, SectSize=0, ECCbytes=56
BuffType=DualPortCache, BuffSize=15118kB, MaxMultSect=16, MultSect=off
CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=976773168
IORDY=on/off, tPIO={min:120,w/IORDY:120}, tDMA={min:120,rec:120}
PIO modes:  pio0 pio1 pio2 pio3 pio4
DMA modes:  mdma0 mdma1 mdma2
UDMA modes: udma0 udma1 udma2 udma3 udma4 udma5 *udma6
AdvancedPM=yes: disabled (255) WriteCache=enabled
Drive conforms to: unknown:  ATA/ATAPI-2,3,4,5,6,7

/dev/sdb:
Model=ST3320620AS, FwRev=3.AAE, SerialNo=9QF8EZ82
Config={ HardSect NotMFM HdSw>15uSec Fixed DTR>10Mbs RotSpdTol>.5% }
RawCHS=16383/16/63, TrkSize=0, SectSize=0, ECCbytes=4
BuffType=unknown, BuffSize=16384kB, MaxMultSect=16, MultSect=off
CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=625142448
IORDY=on/off, tPIO={min:120,w/IORDY:120}, tDMA={min:120,rec:120}
PIO modes:  pio0 pio1 pio2 pio3 pio4
DMA modes:  mdma0 mdma1 mdma2
UDMA modes: udma0 udma1 udma2 udma3 udma4 udma5 *udma6
AdvancedPM=no WriteCache=enabled
Drive conforms to: Unspecified:  ATA/ATAPI-1,2,3,4,5,6,7

Errors seen on syslog:

...
Mar 17 20:31:44 phenom kernel: [   45.026839] ata1.00: status: { DRDY }
Mar 17 20:31:44 phenom kernel: [   45.026887] ata1.00: failed command: WRITE FPDMA QUEUED
Mar 17 20:31:44 phenom kernel: [   45.026934] ata1.00: cmd 61/28:20:18:9c:4c/00:00:1d:00:00/40 tag 4 ncq 20480 out
Mar 17 20:31:44 phenom kernel: [   45.027042] ata1.00: status: { DRDY }
Mar 17 20:31:44 phenom kernel: [   45.027087] ata1.00: failed command: WRITE FPDMA QUEUED
Mar 17 20:31:44 phenom kernel: [   45.027134] ata1.00: cmd 61/18:28:d8:d0:4c/00:00:1d:00:00/40 tag 5 ncq 12288 out

Solution Steps:

  • Check SATA Cable and reboot and check
  • Replug all Cables and reboot and check
  • Change the SATA PORTS! Sata1 to Sata2 for Disk0
  • Change the SATA PORTS! Sata3 to Sata4 for Disk1
  • Often the Harddisks are NOT damaged!!
  • Looks like a failed Hardware Control by the SATA 600 Controllers with SATA 300/150
  • take new SATA 600 Drives and recheck

Remark: Windows Systems have same Error without Logs, the Systems seems to hang for seconds!