Subject: Re: Turning SCSI drive sector remapping on; how do you do it?
To: Rob Healey <rhealey@kas.helios.mn.org>
From: Michael L. Hitch <osymh@gemini.oscs.montana.edu>
List: current-users
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

-- 
Michael L. Hitch			INTERNET:  osymh@montana.edu
Computer Consultant
Office of Systems and Computing Services
Montana State University	Bozeman, MT	USA