Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Nov 1998 06:35:08 +0100
From:      J Wunsch <j@uriah.heep.sax.de>
To:        FreeBSD SCSI Mailing List <freebsd-scsi@FreeBSD.ORG>
Cc:        Greg Lehey <grog@lemis.com>
Subject:   Re: Formatting disks under CAM
Message-ID:  <19981130063508.59638@uriah.heep.sax.de>
In-Reply-To: <19981130111418.D831@freebie.lemis.com>; from Greg Lehey on Mon, Nov 30, 1998 at 11:14:18AM %2B1030
References:  <19981130111418.D831@freebie.lemis.com>

next in thread | previous in thread | raw e-mail | index | archive | help
As Greg Lehey wrote:

> I've got a disk which has developed a number of bad spots, and I want
> to format it.  I've tried scsiformat, but it hasn't been converted for
> CAM.  scsiformat uses the following command to perform the format:
> 
>   scsi -f /dev/rsd0.ctl -v -c 12 0 0 0 v 0 96 -i 96 s8 z8 z16 z4

You err on this.  That's only the INQUIRY command.  Peter (Dufault)
only added this to the scsiformt script in order to remain
API-compatible with the 4.4BSD scsiformat(8) command (that never ran
under FreeBSD).

The actual formatting command is -c "4 0 0 0 0 0", and should work
with camcontrol as well.  You might need to bump the timeout though.

-- 
cheers, J"org

joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)

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?19981130063508.59638>