From owner-freebsd-hackers@FreeBSD.ORG Mon Apr 19 06:17:58 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 D950316A4CE for ; Mon, 19 Apr 2004 06:17:58 -0700 (PDT) Received: from cain.gsoft.com.au (cain.gsoft.com.au [203.31.81.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id B95B843D4C for ; Mon, 19 Apr 2004 06:17:57 -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 i3JDHoSv065620; Mon, 19 Apr 2004 22:47:51 +0930 (CST) (envelope-from doconnor@gsoft.com.au) From: "Daniel O'Connor" To: freebsd-hackers@freebsd.org Date: Mon, 19 Apr 2004 22:47:48 +0930 User-Agent: KMail/1.6.1 MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <200404192247.48015.doconnor@gsoft.com.au> X-Spam-Score: -2.3 () CARRIAGE_RETURNS,SPAM_PHRASE_02_03,USER_AGENT,USER_AGENT_KMAIL X-Scanned-By: MIMEDefang 2.16 (www . roaringpenguin . com / mimedefang) Subject: 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: Mon, 19 Apr 2004 13:17:59 -0000 A friend of mine handed me a USB flash key today that has 2 'partition' - one 1.44Mb chunk pretends to be a floppy drive and the rest is a normal umass device. 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. 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 :( It's one of these -> Apr 19 22:45:32 inchoate kernel: umass0: NEC NEC USB UF000x, rev 1.10/1.50, addr 2 Apr 19 22:45:33 inchoate kernel: (probe0:umass-sim0:0:0:0): INQUIRY. CDB: 12 0 0 0 24 0 Apr 19 22:45:33 inchoate kernel: (probe0:umass-sim0:0:0:0): CAM Status: SCSI Status Error Apr 19 22:45:33 inchoate kernel: (probe0:umass-sim0:0:0:0): SCSI Status: Check Condition Apr 19 22:45:33 inchoate kernel: (probe0:umass-sim0:0:0:0): UNIT ATTENTION asc:29,0 Apr 19 22:45:33 inchoate kernel: (probe0:umass-sim0:0:0:0): Power on, reset, or bus device reset occurred Apr 19 22:45:33 inchoate kernel: (probe0:umass-sim0:0:0:0): Retrying Command (per Sense Data) Apr 19 22:45:35 inchoate kernel: da0 at umass-sim0 bus 0 target 0 lun 0 Apr 19 22:45:35 inchoate kernel: da0: Removable Direct Access SCSI-0 device Apr 19 22:45:35 inchoate kernel: da0: 1.000MB/s transfers Apr 19 22:45:35 inchoate kernel: da0: 1MB (2880 512 byte sectors: 64H 32S/T 1C) Apr 19 22:45:36 inchoate kernel: umass0: Unsupported UFI command 0x35 Apr 19 22:45:36 inchoate kernel: (da0:umass-sim0:0:0:0): Synchronize cache failed, status == 0x6, scsi status == 0x0 Apr 19 22:45:36 inchoate kernel: umass0: Unsupported UFI command 0x35 Apr 19 22:45:36 inchoate kernel: (da0:umass-sim0:0:0:0): Synchronize cache failed, status == 0x6, scsi status == 0x0 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. -- 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