From owner-freebsd-scsi Sun Nov 29 21:50:42 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id VAA20256 for freebsd-scsi-outgoing; Sun, 29 Nov 1998 21:50:42 -0800 (PST) (envelope-from owner-freebsd-scsi@FreeBSD.ORG) Received: from sax.sax.de (sax.sax.de [193.175.26.33]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id VAA20250 for ; Sun, 29 Nov 1998 21:50:40 -0800 (PST) (envelope-from j@uriah.heep.sax.de) Received: (from uucp@localhost) by sax.sax.de (8.8.8/8.8.8) with UUCP id GAA24348; Mon, 30 Nov 1998 06:50:29 +0100 (CET) (envelope-from j@uriah.heep.sax.de) Received: (from j@localhost) by uriah.heep.sax.de (8.9.1/8.9.1) id GAA18098; Mon, 30 Nov 1998 06:35:10 +0100 (MET) (envelope-from j) Message-ID: <19981130063508.59638@uriah.heep.sax.de> Date: Mon, 30 Nov 1998 06:35:08 +0100 From: J Wunsch To: FreeBSD SCSI Mailing List Cc: Greg Lehey Subject: Re: Formatting disks under CAM Reply-To: Joerg Wunsch References: <19981130111418.D831@freebie.lemis.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.88 In-Reply-To: <19981130111418.D831@freebie.lemis.com>; from Greg Lehey on Mon, Nov 30, 1998 at 11:14:18AM +1030 X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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