Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 30 Nov 2002 23:36:20 +0100
From:      "Daniel Geske" <daniel.geske@yoc.de>
To:        "'Andy Farkas'" <andyf@speednet.com.au>, <freebsd-scsi@FreeBSD.ORG>
Subject:   RE: fsck: PLEASE RERUN FSCK - does not fix problem :-(
Message-ID:  <000101c298c0$f0c46220$a52efea9@Bowman>
In-Reply-To: <20021201074308.N15913-100000@hewey.af.speednet.com.au>

next in thread | previous in thread | raw e-mail | index | archive | help
Dear Andy,

> # camcontrol defects da0
> camcontrol: no defect list format specified
> 
> Is that good or bad?

Neither good nor bad. You need to specify more parameters.
'man camcontrol' gives you this:

camcontrol defects [device id] [generic args] <-f format> [-P] [-G]

 defects     Send the SCSI READ DEFECT DATA (10) command (0x37) to the
                 given device, and print out any combination of: the
total
                 number of defects, the primary defect list (PLIST), and
the
                 grown defect list (GLIST).

                 -f format    The three format options are: block, to
print
                              out the list as logical blocks, bfi, to
print
                              out the list in bytes from index format,
and
                              phys, to print out the list in physical
sector
                              format.  The format argument is required.
Most
                              drives support the physical sector format.
Some
                              drives support the logical block format.
Many
                              drives, if they don't support the
requested for-
                              mat, return the data in an alternate
format,
                              along with sense information indicating
that the
                              requested data format isn't supported.
The
                              camcontrol utility attempts to detect
this, and
                              print out whatever format the drive
returns.  If
                              the drive uses a non-standard sense code
to
                              report that it doesn't support the
requested
                              format, camcontrol will probably see the
error
                              as a failure to complete the request.

                 -G           Print out the grown defect list.  This is
a list
                              of bad blocks that have been remapped
since the
                              disk left the factory.

                 -P           Print out the primary defect list.

                 If neither -P nor -G is specified, camcontrol will
print out
                 the number of defects given in the READ DEFECT DATA
header
                 returned from the drive.

...means that you must at least run 'camcontrol defects' with these
parameters:
1) device identifier:da0 in you case, and
2) the format you wish to get your defects report in, like '-f block'
etc.

Go on from here. Much success!
Greetings

Daniel


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-scsi" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?000101c298c0$f0c46220$a52efea9>