From owner-freebsd-current@FreeBSD.ORG Thu Oct 14 14:51: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 696DD16A4CE for ; Thu, 14 Oct 2004 14:51:38 +0000 (GMT) Received: from web.portaone.com (mail.russia.cz [195.70.151.35]) by mx1.FreeBSD.org (Postfix) with ESMTP id C069C43D3F for ; Thu, 14 Oct 2004 14:51:37 +0000 (GMT) (envelope-from sobomax@portaone.com) Received: from [193.28.87.100] ([193.28.87.100]) (authenticated bits=0) by web.portaone.com (8.12.11/8.12.11) with ESMTP id i9EEpZtF080845 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 14 Oct 2004 16:51:36 +0200 (CEST) (envelope-from sobomax@portaone.com) Message-ID: <416E9271.6050700@portaone.com> Date: Thu, 14 Oct 2004 17:51:29 +0300 From: Maxim Sobolev Organization: Porta Software Ltd User-Agent: Mozilla Thunderbird 0.8 (Windows/20040913) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Bruce M Simpson References: <20041006092156.GA690@empiric.icir.org> <20041006112834.GC1794@empiric.icir.org> <20041006120031.GD1794@empiric.icir.org> In-Reply-To: <20041006120031.GD1794@empiric.icir.org> Content-Type: text/plain; charset=KOI8-U; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-current@freebsd.org Subject: Re: 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: Thu, 14 Oct 2004 14:51:38 -0000 Bruce M Simpson wrote: > 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"' Maybe it's worth to at least put it into ufd manpage, so that it doesn't lost in noise. -Maxim