Subject: How to see a disk's remapped sector list?
To: None <current-users@NetBSD.org>
From: Rhialto <rhialto@falu.nl>
List: current-users
Date: 04/19/2006 00:47:39
I have a disk that I don't trust anymore since it reported at least 2
sector read errors. However they seem to be gone now, so I suspect the
sectors got remapped. Is there a way that I can get this info from the
disk? It is a SATA disk:

wd0 at atabus0 drive 0: <Maxtor 6Y250M0>
wd0: drive supports 16-sector PIO transfers, LBA48 addressing
wd0: 233 GB, 486344 cyl, 16 head, 63 sec, 512 bytes/sect x 490234752 sectors
wd0: 32-bit data port
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133)
wd0(viaide0:0:0): using PIO mode 4, Ultra-DMA mode 6 (Ultra/133) (using
DMA)

The errors are logged in the SMART error log.

(the command 'dkctl badsector list' seemed promising at first but turned
out to be different)

-Olaf.
-- 
___ Olaf 'Rhialto' Seibert      -- You author it, and I'll reader it.
\X/ rhialto/at/xs4all.nl        -- Cetero censeo "authored" delendum esse.