Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Apr 2004 22:47:48 +0930
From:      "Daniel O'Connor" <doconnor@gsoft.com.au>
To:        freebsd-hackers@freebsd.org
Subject:   Detecting 'floppy' like umass devices
Message-ID:  <200404192247.48015.doconnor@gsoft.com.au>

next in thread | raw e-mail | index | archive | help
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: <NEC USB UF000x 1.50> 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: <Intel 82801DB (ICH4) USB controller USB-A> 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



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