Subject: port-sparc/13228: copying files to a disk with a (presumably) bad sector causes a panic
To: None <gnats-bugs@gnats.netbsd.org>
From: None <elliot@rightnowtech.com>
List: netbsd-bugs
Date: 06/16/2001 21:40:51
>Number:         13228
>Category:       port-sparc
>Synopsis:       copying files to a disk with a (presumably) bad sector causes a panic
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    port-sparc-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Jun 16 21:39:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     elliot schlegelmilch
>Release:        NetBSD 1.5
>Organization:
n/a
>Environment:
NetBSD mr-sun.internal.schlegelmilch.org 1.5 NetBSD 1.5 (GENERIC) #1: Wed Nov 29 00:29:52 MET 2000     root@flambard:/usr/src/sys/arch/sparc/compile/GENERIC sparc

>Description:
two similar problems, probably same bug:

first:  
i installed netbsd 1.5-sparc onto a  hp scsi disk , 1003 MB,
seemed to work ok, i added a user, and 'cd /home' and caused a panic. upon rebooting, filesystems were completely hosed.  fsck -y took several minutes to run, fixing numerous (100's) of unlinked files, etc. following that, fsck would core dump every time.

second: dd'ing the good disk to the bad disk, despite different sizes, gets me

sd0(esp0:3:0):  Check Condition on CDB: 0x08 0c de 14 01 00
    SENSE KEY:  Illegal Request
   INFO FIELD:  843235
     ASC/ASCQ:  Logical Block Address Out of Range
         SKSV:  Error in CDB, Offset 1

>How-To-Repeat:
scsi disk with a bad sector?

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted: