usb cf reader
    Riccardo Torrini 
    riccardo at torrini.org
       
    Fri Apr 18 01:00:00 PDT 2003
    
    
  
On Fri, Apr 18, 2003 at 02:24:48AM +0200, Bernd Walter wrote:
>> # ls -ln /dev/da0*
>> crw-r-----  1 0  5    4,  20 Apr 17 20:09 /dev/da0
>> 
>> # mount -tmsdos /dev/da0 /dist
>> msdosfs: /dev/da0: Invalid argument
> msdosfs usually lives on slices.
I know that, but DEVFS create _only_ /dev/da0  :-(
>> # fdisk /dev/da0
>> ******* Working on device /dev/da0 *******
>> parameters extracted from in-core disklabel are:
>> cylinders=15 heads=64 sectors/track=32 (2048 blks/cyl)
>> 
>> parameters to be used for BIOS calculations are:
>> cylinders=15 heads=64 sectors/track=32 (2048 blks/cyl)
>> 
>> fdisk: invalid fdisk partition table found
>> fdisk: /boot/mbr: length must be a multiple of sector size
> But this seems to be a real problem.
> Either the media is not fdisk'ed or reading failed.
I can access photo (read/delete/shot) using photo camera, so I think
that CF is working.
And even on a not partitioned media, dd should work (I think).
# dd if=/dev/da0 | hd
0+0 records in
0+0 records out
0 bytes transferred in 0.010928 secs (0 bytes/sec)
> Do you get any kernel messages?
No.  Nothing but attach/detach device.
-----8<-----
Apr 17 20:21:23 trudy kernel: ugen0: at uhub0 port 1 (addr 2) disconnected
Apr 17 20:21:23 trudy kernel: ugen0: detached
(forgot to kldload umass, removed usb, loaded, reattached)
Apr 17 20:21:52 trudy kernel: umass0: DataFab Systems Inc. USB CF, rev 1.10/3.06, addr 2
Apr 17 20:21:55 trudy kernel: da0 at umass-sim0 bus 0 target 0 lun 0
Apr 17 20:21:55 trudy kernel: da0: <OEI-Link Media Reader 3.06> Removable Direct Access SCSI-0 device 
Apr 17 20:21:55 trudy kernel: da0: 1.000MB/s transfers
Apr 17 20:21:55 trudy kernel: da0: 15MB (31488 512 byte sectors: 64H 32S/T 15C)
Apr 17 20:29:48 trudy ntpd[189]: time reset 0.390596 s
Apr 17 20:50:23 trudy ntpd[189]: time reset -0.450258 s
Apr 18 03:35:36 trudy kernel: umass0: at uhub0 port 1 (addr 2) disconnected
Apr 18 03:35:36 trudy kernel: (da0:umass-sim0:0:0:0): lost device
Apr 18 03:35:36 trudy kernel: (da0:umass-sim0:0:0:0): removing device entry
Apr 18 03:35:36 trudy kernel: umass0: detached
(going to sleep...)
-----8<-----
I'm at work now, but I can rebuild/add patches this night  ;)
Thanks for yor time.
-- 
Riccardo.
    
    
More information about the freebsd-current
mailing list