From owner-freebsd-scsi Sun Nov 29 16:45:01 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id QAA23904 for freebsd-scsi-outgoing; Sun, 29 Nov 1998 16:45:01 -0800 (PST) (envelope-from owner-freebsd-scsi@FreeBSD.ORG) Received: from allegro.lemis.com (allegro.lemis.com [192.109.197.134]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id QAA23891 for ; Sun, 29 Nov 1998 16:44:58 -0800 (PST) (envelope-from grog@freebie.lemis.com) Received: from freebie.lemis.com (freebie.lemis.com [192.109.197.137]) by allegro.lemis.com (8.9.1/8.9.0) with ESMTP id LAA08506 for ; Mon, 30 Nov 1998 11:14:44 +1030 (CST) Received: (from grog@localhost) by freebie.lemis.com (8.9.1/8.9.0) id LAA01240; Mon, 30 Nov 1998 11:14:18 +1030 (CST) Message-ID: <19981130111418.D831@freebie.lemis.com> Date: Mon, 30 Nov 1998 11:14:18 +1030 From: Greg Lehey To: FreeBSD SCSI Mailing List Subject: Formatting disks under CAM Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.91.1i WWW-Home-Page: http://www.lemis.com/~grog Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-41-739-7062 Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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 I've tried: camcontrol cmd -n da -u 0 -c 12 0 0 0 v 0 96 -i 96 s8 z8 z16 z4 which appears to be the equivalent camcontrol command, but I only get the error message camcontrol: error sending command I've ktraced camcontrol, and find that it calls a number of CAMIOCOMMAND ioctls just before this message. All of the CAMIOCOMMANDs are successful, so I assume it's the device returning some error indication. Obviously I'm getting the command parameters screwed up. Does camcontrol use scsi(3)? How do I specify this command? Greg -- See complete headers for address, home page and phone numbers finger grog@lemis.com for PGP public key To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message