Opened 2 weeks ago

Closed 13 days ago

#1558 closed enhancement (fixed)

WDC WD6401AALS-00L3B2 needs '-l xerrorlba'

Reported by: Geina3ee Owned by:
Priority: minor Milestone: unscheduled
Component: drivedb Version: 7.2
Keywords: hdd Cc:

Description

I play with unreadable sector at LBA 768453424.
But the following command displays wrong LBA:
smartctl -i -l xerror
...

40 -- 51 00 00 00 2d ab 00 cd 30 40 00 Error: UNC at LBA = 0x2dab00cd30 = 196142484784

Note, that 768453424 = 0x2dcdab30, not 0x2dab00cd30 !
So calculated LBA is wrong: 196142484784 <> 768453424

I've just downloaded and build fresh 7.2 version from https://deac-ams.dl.sourceforge.net/project/smartmontools/smartmontools/7.2/smartmontools-7.2.tar.gz

Attachments (3)

bugreport-7.2.txt (23.1 KB) - added by Geina3ee 2 weeks ago.
command, os, configure, make, install details
fig1.png (157.8 KB) - added by Geina3ee 2 weeks ago.
explanation how to fix problem
xerrorlba.txt (19.0 KB) - added by Geina3ee 2 weeks ago.
the output of: smartctl -F xerrorlba -x -a /dev/sdd

Download all attachments as: .zip

Change History (7)

Changed 2 weeks ago by Geina3ee

Attachment: bugreport-7.2.txt added

command, os, configure, make, install details

Changed 2 weeks ago by Geina3ee

Attachment: fig1.png added

explanation how to fix problem

comment:1 Changed 2 weeks ago by Christian Franke

Component: alldrivedb
Keywords: hdd added; xerror UNC LBA removed
Milestone: undecided
Summary: xerror log wrong UNC LBA calculationxerror log wrong UNC LBA calculation (WDC WD6401AALS-00L3B2)
Type: defectenhancement

Please provide output of smartctl -F xerrorlba -x -a /dev/sdd as an attachment.

Changed 2 weeks ago by Geina3ee

Attachment: xerrorlba.txt added

the output of: smartctl -F xerrorlba -x -a /dev/sdd

comment:2 Changed 2 weeks ago by Geina3ee

the "-F xerrorlba" solves the problem

comment:3 Changed 2 weeks ago by Christian Franke

Milestone: undecidedunscheduled
Summary: xerror log wrong UNC LBA calculation (WDC WD6401AALS-00L3B2)WDC WD6401AALS-00L3B2 needs '-l xerrorlba'

This is a typical drive firmware bug: Using little endian instead of ATA register byte ordering in the error log.

Could be fixed by adding -F xerrorlba to the existing drivedb entry.

Note that in this case this does not fix the LBA info in the Commands leading to the command that caused the error... list. It uses another byte ordering.

comment:4 Changed 13 days ago by Alex Samorukov

Resolution: fixed
Status: newclosed

Added xerrorlba flag to the WD Caviar Black family in r5301. I am not sure if other drives in this line are impacted by this bug but there is no enough data yet, so lets assume this atm.

Note: See TracTickets for help on using tickets.