Opened 2 years ago

Closed 2 years ago

Last modified 2 years ago

#1558 closed enhancement (fixed)

WDC WD6401AALS-00L3B2 needs '-l xerrorlba'

Reported by: Geina3ee Owned by:
Priority: minor Milestone: Release 7.3
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 years ago.
command, os, configure, make, install details
fig1.png (157.8 KB ) - added by Geina3ee 2 years ago.
explanation how to fix problem
xerrorlba.txt (19.0 KB ) - added by Geina3ee 2 years ago.
the output of: smartctl -F xerrorlba -x -a /dev/sdd

Download all attachments as: .zip

Change History (8)

by Geina3ee, 2 years ago

Attachment: bugreport-7.2.txt added

command, os, configure, make, install details

by Geina3ee, 2 years ago

Attachment: fig1.png added

explanation how to fix problem

comment:1 by Christian Franke, 2 years ago

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.

by Geina3ee, 2 years ago

Attachment: xerrorlba.txt added

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

comment:2 by Geina3ee, 2 years ago

the "-F xerrorlba" solves the problem

comment:3 by Christian Franke, 2 years ago

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 by Alex Samorukov, 2 years ago

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.

comment:5 by Christian Franke, 2 years ago

Milestone: unscheduledRelease 7.3

Merged in r5307.

Note: See TracTickets for help on using tickets.