[comp.sys.mac.hardware] SCSI Hard Disk's and Bad Sector Maps

steveh@tasman.cc.utas.edu.au (Steven Howell) (04/08/91)

	I have been curious to were they store the information concerning bad
sectors on scsi, mainly macintosh, drives. I have researched by myself with no
external help, on various drives, going thru their roms, but still cannot
find a bad sector map. The drives i am mailny interested in are Quantum, Sony
and Rodime. I have few drives with bad blocks and wish to map them out.

	I rang rodime asking them what i can do about mapping out bad sectors
in a rodime 140. He said even though the drive is only 14 months old, and
even though it system bomds at random because it attempts to write to a few bad
blocks, that i should buy  a new drive. Of course there is a diffrent way. 
IBM and PC systems can succesfully map them out their bad sectors in 
IDE, RLL and MFM systems. So why not scsi.

So if anyone has an info, i would greatly appreciate it.

Thanks In Advance

steveh

kent@visix.com (Ken Turner) (04/08/91)

In article <steveh.671112956@tasman>, steveh@tasman.cc.utas.edu.au
(Steven Howell) writes:
> 
> 	I have been curious to were they store the information concerning
bad
> sectors on scsi, mainly macintosh, drives. I have researched by myself
with no
> external help, on various drives, going thru their roms, but still
cannot
> find a bad sector map. The drives i am mailny interested in are
Quantum, Sony
> and Rodime. I have few drives with bad blocks and wish to map them
out.
> 


	SCSI drives have a built-in defect list.  It can be accessed using the
`Read Defect Data' SCSI command.  (The actual op-code escapes me.)  The
list is usually divided into two parts: the production defect list,
installed at the factory, and the `grown' defect list, constructed over
the lifetime of the drive.
	The driver that comes with your Macintosh drive is primarily
responsible for mapping out bad sectors, using the `Reassign' SCSI
command.  If it encounters a media error while reading or writing, it
should automatically do this, completely invisble to the user.  (This is
referred to as `on the fly' defect handling by some vendors.)  Many
vendors also provide a limited test capability with their utility
software.  It scans the entire drive for defects and then reassigns
them.
	If you have a drive and it has an un-reassigned defect, there are
several possibilities.  The driver installed might not automatically
reassign bad blocks.  (I know Rodime's software does, however.)  Or, the
defect list might be full and no more can be reassigned.  Most moderate
capacity drives max out at 50-100 defects.  Or, most likely, there is
some other drive error occuring (like a seek error) that is not a direct
result of a physical defect in the disk platter and will not cause the
sector to be reassigned.  I know it's drastic, but a low-level format
sometimes helps in these cases.


Ken Turner
Visix Softare Inc.
kent@visix.com