Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 6 Oct 2004 05:00:31 -0700
From:      Bruce M Simpson <bms@spc.org>
To:        freebsd-current@FreeBSD.org
Subject:   Formatting a USB floppy in FreeBSD [SOLVED]
Message-ID:  <20041006120031.GD1794@empiric.icir.org>
In-Reply-To: <20041006112834.GC1794@empiric.icir.org>
References:  <20041006092156.GA690@empiric.icir.org> <20041006112834.GC1794@empiric.icir.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20041006120031.GD1794>