From owner-freebsd-current@FreeBSD.ORG Wed Oct 6 12:00:38 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0BDE716A4CE for ; Wed, 6 Oct 2004 12:00:38 +0000 (GMT) Received: from arginine.spc.org (arginine.spc.org [195.206.69.236]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7072843D39 for ; Wed, 6 Oct 2004 12:00:37 +0000 (GMT) (envelope-from bms@spc.org) Received: from localhost (localhost [127.0.0.1]) by arginine.spc.org (Postfix) with ESMTP id DA7CA6520E for ; Wed, 6 Oct 2004 13:00:35 +0100 (BST) Received: from arginine.spc.org ([127.0.0.1]) by localhost (arginine.spc.org [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 95784-01-4 for ; Wed, 6 Oct 2004 13:00:35 +0100 (BST) Received: from empiric.dek.spc.org (adsl-67-121-93-86.dsl.snfc21.pacbell.net [67.121.93.86]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by arginine.spc.org (Postfix) with ESMTP id 1135B6520C for ; Wed, 6 Oct 2004 13:00:35 +0100 (BST) Received: by empiric.dek.spc.org (Postfix, from userid 1001) id DACFE64B3; Wed, 6 Oct 2004 05:00:31 -0700 (PDT) Date: Wed, 6 Oct 2004 05:00:31 -0700 From: Bruce M Simpson To: freebsd-current@FreeBSD.org Message-ID: <20041006120031.GD1794@empiric.icir.org> Mail-Followup-To: freebsd-current@FreeBSD.org References: <20041006092156.GA690@empiric.icir.org> <20041006112834.GC1794@empiric.icir.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="reI/iBAAp9kzkmX4" Content-Disposition: inline In-Reply-To: <20041006112834.GC1794@empiric.icir.org> Subject: Formatting a USB floppy in FreeBSD [SOLVED] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Oct 2004 12:00:38 -0000 --reI/iBAAp9kzkmX4 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, Oct 06, 2004 at 04:28:34AM -0700, Bruce M Simpson wrote: > camcontrol cmd ${DEVNAME} \ > -c "04 17 00 00 00 00 00 00 00 00 00 00" \ > -o 12 "00 A0 00 08 00 00 0B 40 00 00 02 00" Bung a -t 140 in there so you don't get a complaint about mode auto-sense when the format has not yet completed. 140 seconds to format a floppy may be a bit excessive, but do bear in mind this doesn't verify the format as it goes along. A CAM-based program to format removable media (including UFI floppies) track-by-track wouldn't have that problem, and would be able to verify, give you progress indications, etc. I hope the simple camcontrol example above serves to demonstrate the problem is more or less cracked. I'm happy to live with a simple shell script wrapper with the above for now, or even just an alias for csh: alias ufdformat 'camcontrol cmd \!* -t 140 -c "04 17 00 00 00 00 00 00 00 00 00 00" -o 12 "00 A0 00 08 00 00 0B 40 00 00 02 00"' Really going to sleep now. BMS --reI/iBAAp9kzkmX4 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Comment: '' iD8DBQFBY95fueUpAYYNtTsRAoi3AKCUJuFjoT5mjJg1+5s7fGtyhgK6kQCfaaYk bkwDI4ZmHNOjO/SsWGgsuVw= =QwsO -----END PGP SIGNATURE----- --reI/iBAAp9kzkmX4--