From owner-freebsd-questions Mon May 1 03:46:08 1995 Return-Path: questions-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id DAA20996 for questions-outgoing; Mon, 1 May 1995 03:46:08 -0700 Received: from dtr.com (dtr.rain.com [204.119.8.19]) by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id DAA20990 for ; Mon, 1 May 1995 03:46:05 -0700 From: bmk@dtr.com Received: (from bmk@localhost) by dtr.com (8.6.11/8.6.9) id DAA13146; Mon, 1 May 1995 03:35:34 -0700 Message-Id: <199505011035.DAA13146@dtr.com> Subject: Re: formatting a scsi disk To: dufault@hda.com (Peter Dufault) Date: Mon, 1 May 1995 03:35:34 -0700 (PDT) Cc: john@starfire.mn.org, questions@FreeBSD.org In-Reply-To: <199504121228.IAA03381@hda.com> from "Peter Dufault" at Apr 12, 95 08:28:21 am Reply-To: bmk@dtr.com X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Length: 843 Sender: questions-owner@FreeBSD.org Precedence: bulk > You can do a basic format of /dev/rsd0d with: > > scsi -f /dev/rsd0d -c "4 0 0 0 0 0" Can't get it to work here, any clues? root (11) % scsi -f /dev/rsd2d -v -c "4 0 0 0 0 0" Need the command format string. Usage: scsi -f device -d debug_level # To set debug level scsi -f device -p [-b bus] [-l lun] # To probe all devices scsi -f device -r [-b bus] [-t targ] [-l lun] # To reprobe a device scsi -f device [-v] -c cmd_fmt [arg0 ... argn] \ # To send a command... -o count out_fmt [arg0 ... argn] # EITHER (for data out) -i count in_fmt # OR (for data in) "out_fmt" can be "-" to read output data from stdin; "in_fmt" can be "-" to write input data to stdout; If debugging is not compiled in the kernel, "-d" will have no effect