Subject: Re: Turning SCSI drive sector remapping on; how do you do it?
To: Rob Healey <email@example.com>
From: Michael L. Hitch <firstname.lastname@example.org>
Date: 07/21/1995 22:35:49
On Jul 20, 7:25pm, Rob Healey wrote:
> I've got a drive that had 4 bad sectors and I would like to have
> them remapped without having to resort to a reformat. Under
> NetBSD's scsi disk driver how do you tell it to turn on sector
> remapping, or more specifically, have it tell the drive to
> do it?
Build a SCSI command to tell the drive to reassign the block and
send the command to the SCSI driver using the SCIOCCOMMAND ioctl.
I haven't tried this using a SCSI command that has a data buffer
associated, but I did write a simple program to send a start or
stop command to the device.
Michael L. Hitch INTERNET: email@example.com
Office of Systems and Computing Services
Montana State University Bozeman, MT USA