Subject: Re: How to see a disk's remapped sector list?
To: Rhialto <rhialto@falu.nl>
From: Manuel Bouyer <bouyer@antioche.eu.org>
List: current-users
Date: 04/19/2006 21:46:11
On Wed, Apr 19, 2006 at 12:47:39AM +0200, Rhialto wrote:
> 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)

I don't know of a way to get the list, but smart can report the number of
remapped sectors (atactl smart status)

-- 
Manuel Bouyer <bouyer@antioche.eu.org>
     NetBSD: 26 ans d'experience feront toujours la difference
--