From owner-freebsd-scsi@FreeBSD.ORG Wed Sep 3 22:48:13 2008 Return-Path: Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2D136106567C for ; Wed, 3 Sep 2008 22:48:13 +0000 (UTC) (envelope-from jhs@berklix.org) Received: from flat.berklix.org (flat.berklix.org [83.236.223.115]) by mx1.freebsd.org (Postfix) with ESMTP id B06BB8FC17 for ; Wed, 3 Sep 2008 22:48:12 +0000 (UTC) (envelope-from jhs@berklix.org) Received: from js.berklix.net (p549A5B64.dip.t-dialin.net [84.154.91.100]) (authenticated bits=0) by flat.berklix.org (8.13.8/8.13.8) with ESMTP id m83MXkkJ028451; Thu, 4 Sep 2008 00:33:47 +0200 (CEST) (envelope-from jhs@berklix.org) Received: from fire.js.berklix.net (fire.js.berklix.net [192.168.91.41]) by js.berklix.net (8.13.8/8.13.8) with ESMTP id m83MXfli019604; Thu, 4 Sep 2008 00:33:41 +0200 (CEST) (envelope-from jhs@berklix.org) Received: from fire.js.berklix.net (localhost [127.0.0.1]) by fire.js.berklix.net (8.13.8/8.13.8) with ESMTP id m83MXVRe015145; Thu, 4 Sep 2008 00:33:36 +0200 (CEST) (envelope-from jhs@fire.js.berklix.net) Message-Id: <200809032233.m83MXVRe015145@fire.js.berklix.net> To: freebsd-scsi@freebsd.org From: "Julian Stacey" Organization: http://berklix.com BSD Linux Unix Consultancy, Munich Germany. User-agent: EXMH on FreeBSD http://berklix.com/free/ X-URL: http://berklix.com/~jhs/cv/ Date: Thu, 04 Sep 2008 00:33:31 +0200 Sender: jhs@berklix.org Cc: jhs@berklix.com Subject: how to format an ide hard disc in a usb enclosure X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Sep 2008 22:48:13 -0000 Hi freebsd-scsi@, How does one reformat an IDE disc in a USB enclosure appearing on 7.0-Release via devd as /dev/ da0 da0s1 da0s1a da0s1c pass1 ? su camcontrol devlist at scbus2 target 0 lun 0 (pass0,cd0) at scbus3 target 0 lun 0 (pass1,da0) camcontrol format da0 You are about to REMOVE ALL DATA from the following device: camcontrol: scsiformat: error sending inquiry camcontrol format 3:0:0 You are about to REMOVE ALL DATA from the following device: camcontrol: scsiformat: error sending inquiry Should I be using something from ports/ ? eg cd /usr/ports/sysutils/smartmontools ... smartctl -i -T verypermissive /dev/da0 Device: USB 2.0 Storage Device Version: 0100 >> Terminate command early due to bad response to IEC mode page A mandatory SMART command failed: exiting. To continue, add one or more '-T permissive' options. cd /usr/ports/sysutils/sformat ... sformat -auto 0 0 3 ... Enter number of heads -1 (1 - 255)/: ... too many questions I dont know answer to, I just want to reformat whole device. Background Yes, perhaps as the disc is throwing errors, it might be dieing, &/or bad disc sector list might be full/ filling, but that doesn't worry me: I had to power cycle it rapidly while travelling, might have been the reason, &/or maybe USB hub didnt deliver enough power then (despite doubler cable, thus 1.0A not 0.5A), but theres' nothing vital on that disk, it's just a scratch space for experiments, so I'd like to reformat. Cheers, Julian -- Julian Stacey: BSDUnixLinux C Prog Admin SysEng Consult Munich www.berklix.com Mail plain ASCII text. HTML & Base64 text are spam. www.asciiribbon.org