From owner-freebsd-questions Tue May 23 13:14:08 1995 Return-Path: questions-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id NAA11232 for questions-outgoing; Tue, 23 May 1995 13:14:08 -0700 Received: from uustar.starnet.net (root@uustar.starnet.net [199.217.253.12]) by freefall.cdrom.com (8.6.10/8.6.6) with SMTP id NAA11213 for ; Tue, 23 May 1995 13:13:59 -0700 Received: from mumps.pfcs.com by uustar.starnet.net with UUCP id AA22832 (5.67b/IDA-1.5 for freebsd-questions@freebsd.org); Tue, 23 May 1995 15:02:53 -0500 Received: from localhost by mumps.pfcs.com with SMTP id AA12755 (5.67b/IDA-1.5 for ); Tue, 23 May 1995 15:50:41 -0400 To: freebsd-questions@FreeBSD.org Subject: How to format a SCSI disk? Date: Tue, 23 May 1995 15:50:40 -0300 Message-Id: <12753.801258640@mumps.pfcs.com> From: Harlan Stenn Sender: questions-owner@FreeBSD.org Precedence: bulk I read the scsi(8) manual page and the related pages. I have an old disk that has some bad blocks, and I want to reformat the drive. This is what happened: Script started on Mon May 22 18:25:31 1995 supfcs@pcfb1:~# time scsi -f /dev/rsd2d -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 0.006u 0.030s 0:00.10 30.0% 392+622k 1+0io 4pf+0w supfcs@pcfb1:~# . exit Script done on Mon May 22 18:26:28 1995 What am I doing wrong? Thanks... H