Subject: marking bad blocks on SCSI?
To: None <port-i386@netbsd.org>
From: Aaron J. Grier <agrier@poofy.goof.com>
List: port-i386
Date: 12/18/1999 20:20:40
I'm running 1.4N on an old 486 with aic SCSI:

aic0 at isa0 port 0x340-0x35f irq 11
scsibus0 at aic0: 8 targets, 8 luns per target
[SNIP]
scsibus0: waiting 2 seconds for devices to settle...
sd0 at scsibus0 targ 0 lun 0: <QUANTUM, Q250  76-45004, 66> SCSI1 0/direct fixed
sd0: 42147 KB, 669 cyl, 4 head, 31 sec, 512 bytes/sect x 84294 sectors
sd1 at scsibus0 targ 1 lun 0: <DEC, RZ23     (C) DEC, 0A18> SCSI1 0/direct fixed
sd1: 100 MB, 776 cyl, 8 head, 33 sec, 512 bytes/sect x 204864 sectors
[SNIP]

I'm seeing occational messages on the console:

sd1(aic0:1:0):  Check Condition on CDB: 0x08 01 51 20 10 00
    SENSE KEY:  Recovered Error
   INFO FIELD:  86317
     ASC/ASCQ:  Recovered Data With Error Correction Applied

sd1(aic0:1:0):  Check Condition on CDB: 0x08 01 51 20 10 00
    SENSE KEY:  Recovered Error
   INFO FIELD:  86317
     ASC/ASCQ:  Recovered Data With Error Correction Applied

I assume the info field is the bad block number?  Can I do a "scsictl
reassign 86317" and fix this?

-- 
  Aaron J. Grier | "Not your ordinary poofy goof." | agrier@poofy.goof.com
  "Time Correct function allows automatically correcting slight variation
   of your key touching manner."  --  Roland MSQ-700 manual