Subject: None
To: John P. Refling <nbsdnh@earth.lbl.gov>
From: Manuel Bouyer <bouyer@antioche.lip6.fr>
List: netbsd-help
Date: 02/01/1999 14:07:11
On Jan 29, John P. Refling wrote
> I'm trying to install a new scsi disk, a dec dsp3210s, and
> am having problems....
> 
> dmesg says: sd3: 2049mb 3045 cyl 16 hds 86 s/t 4197520 sec.
> 
> When I do the math, I get 4189920 sec.
> 
> But a site (http://hpline.epfl.ch/HPUX/tools/disktab.html)
> gives the specs for this drive as
> 3051 cyl, 16 hds, 86 sec, which is a different number of sectors.
> 
> Another site (theref.deepthought.rl.af.mil) [excellent site]
> gives 3045cly, 16hds, and MZ for the s/t (I assume mz=multiple
> zone recording).

For modern disks, the geometry is always a fake one, as the number of
sectors/tracks depends on the track number. What is important here is the
total number of sectors reported by the disk, and this is what is
used by NetBSD anyway.

> 
> So, what numbers do I use, and does disklabel really get the
> math wrong, or does it know something I don't?
> 
> -------------------------
> 
> When I used my more conservative sec count, i started getting
> soft errors when copying massive amounts of data to the new
> drive:
> 
> sd3(esp0.0.0): DEFERRED ERROR, key = 0x1
> 
> and
> 
> sd3(esp0.0.0): soft error (corrected), info = 2779720 (decimal), data =
>            00 00 51 40 17 06 02 00 00 00
> 	   
> I assume these are bad sectors.  How do I map them out?

Well, as the error has been corrected, I guess it has been mapped out
automatically.

> 
> How can I thoughly test the drive for bad sectors before using it?

dd if=/dev/rsd0d of=/dev/zero bs=64k
would be a good start I guess. I'm not sure this will remap the bad sectors.
dd if=/dev/zero of=/dev/rsd0d bs=64k would do it, but will erase the content
of your disk.
The SCSI bios of Adaptec's boards, as well as the newer BIOSes for NCR based
board can format a HD, or scan it for bad blocks ...

--
Manuel Bouyer, LIP6, Universite Paris VI.           Manuel.Bouyer@lip6.fr
--