From owner-freebsd-hackers@FreeBSD.ORG Tue Apr 20 21:00:31 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 11E0E16A51E for ; Tue, 20 Apr 2004 21:00:31 -0700 (PDT) Received: from cain.gsoft.com.au (cain.gsoft.com.au [203.31.81.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7DF5743D39 for ; Tue, 20 Apr 2004 21:00:29 -0700 (PDT) (envelope-from doconnor@gsoft.com.au) Received: from inchoate.gsoft.com.au (localhost [127.0.0.1]) (authenticated bits=0) by cain.gsoft.com.au (8.12.11/8.12.10) with ESMTP id i3L401ib029385; Wed, 21 Apr 2004 13:30:02 +0930 (CST) (envelope-from doconnor@gsoft.com.au) From: "Daniel O'Connor" To: ticso@cicely.de Date: Wed, 21 Apr 2004 13:29:29 +0930 User-Agent: KMail/1.6.1 References: <200404192247.48015.doconnor@gsoft.com.au> <20040420085805.GA5279@cicely12.cicely.de> In-Reply-To: <20040420085805.GA5279@cicely12.cicely.de> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200404211329.29681.doconnor@gsoft.com.au> X-Spam-Score: -4.1 () CARRIAGE_RETURNS,IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES,SPAM_PHRASE_03_05,USER_AGENT,USER_AGENT_KMAIL X-Scanned-By: MIMEDefang 2.16 (www . roaringpenguin . com / mimedefang) cc: freebsd-hackers@freebsd.org Subject: Re: Detecting 'floppy' like umass devices X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Apr 2004 04:00:31 -0000 On Tue, 20 Apr 2004 18:28, Bernd Walter wrote: > > I am wondering if there is any way of telling if a given umass device is > > a floppy drive (or wants to look like one) - eg I have a USB FDD which > > I imagine should fall into the same basket. > > What do do you mean with "wants to look like one". > In which way does a floppy look different from other direct access > drives? > They all read and store direct access data. Partially to handle things like fdformat, and density selection, but also from a user point of view, ie it would be nice if it appeared as /dev/fdX. IMHO it's not obvious (and dangerous) to tell mtools that a: = /dev/da0 but that's what I have to do if I want to use my USB FDD with it. > > I note that you get wacky values from fdisk when you try and read > > partition table from them too.. > > > > On another note my USB floppy drive does 2k/sec in FreeBSD :( > > Sound like another instance of msdosfs does no clustering and drive > is too stupid to get speed without. > IIRC there were some work on this point, but I don't now the state. > Check the speed with dd and different blocksizes. This IS with dd :) I did a few tests.. Block Size | Speed ===========+=========== 0.5k | 2.2k/sec 1 k | 4.4k/sec 2 k | 8.0k/sec 4 k | 12.6k/sec 8 k | 17.7k/sec 16 k | 21.8k/sec 32 k | 23.9k/sec 64 k | 26.2k/sec Bleh :( > > I have a Dell Inspiron 8600 with a > > uhci0: port 0xbf80-0xbf9f irq > > 11 at device 29.0 on pci0 > > > > I have tried a USB flash card reader which gets ~500k/sec. > > If a drive doesn't preread blocks then each access has to wait for the > media - undoubly flash has a faster access time than floppies... Yeah, I just meant that "it's not my USB port" :) -- Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 9A8C 569F 685A D928 5140 AE4B 319B 41F4 5D17 FDD5