Flashcard reader on OpenBSD

I had bought a flashcard reader from HAMA USB 2.0 Card Reader 1000 & 1, where I did not find a good hint how to use in OpenBSD. Because GNOME on OpenBSD is not mounting automatically on insertion. But then yesterday I did a search on “difital camera openbsd” and found a link to “Digital Cameras with OpenBSD” (David Redhouse), which had some good hints. I plugged in the card reader and /var/log/messages spits out:

Jun 29 11:49:48 fish /bsd: umass0 at uhub0
Jun 29 11:49:48 fish /bsd: port 1 configuration 1 interface 0 “Hama Card Reader” rev 2.00/96.02 addr 2
Jun 29 11:49:48 fish /bsd: umass0: using SCSI over Bulk-Only
Jun 29 11:49:48 fish /bsd: scsibus1 at umass0: 2 targets, initiator 0
Jun 29 11:49:48 fish /bsd: sd0 at scsibus1 targ 1 lun 0: SCSI0 0/direct removable
Jun 29 11:49:48 fish /bsd: sd0: drive offline
Jun 29 11:49:48 fish /bsd: sd1 at scsibus1 targ 1 lun 1: SCSI0 0/direct removable
Jun 29 11:49:48 fish /bsd: sd1: drive offline
Jun 29 11:49:48 fish /bsd: sd2 at scsibus1 targ 1 lun 2: SCSI0 0/direct removable
Jun 29 11:49:48 fish /bsd: sd2: 492MB, 62 cyl, 255 head, 63 sec, 512 bytes/sec, 1008640 sec total

Jun 29 11:49:48 fish /bsd: sd3 at scsibus1 targ 1 lun 3: SCSI0 0/direct removable
Jun 29 11:49:48 fish /bsd: sd3: drive offline
Jun 29 11:53:12 fish /bsd: sd1(umass0:1:1): Check Condition (error 0x70) on opcode 0x1e
Jun 29 11:53:12 fish /bsd: SENSE KEY: Not Ready
Jun 29 11:53:12 fish /bsd: ASC/ASCQ: Medium Not Present
Jun 29 11:53:12 fish /bsd: sd1(umass0:1:1): Check Condition (error 0x70) on opcode 0x0
Jun 29 11:53:12 fish /bsd: SENSE KEY: Not Ready
Jun 29 11:53:12 fish /bsd: ASC/ASCQ: Medium Not Present
Jun 29 11:53:12 fish /bsd: sd1(umass0:1:1): Check Condition (error 0x70) on opcode 0x1e
Jun 29 11:53:12 fish /bsd: SENSE KEY: Not Ready
Jun 29 11:53:12 fish /bsd: ASC/ASCQ: Medium Not Present

The part which has yellow background shows the one slot with the SD card. “sd2 ” means /dev/sd2. So given Davids hints you can try the following: First find or create a directory ($YOUR_DIRECTORY)you can mount the disk to – then do sudo /sbin/mount_msdos /dev/sd2i $YOUR_DIRECTORY. You should receive no message as usual, but if you do a simple mount you should get a list of your mounted devices now including a line containing /dev/sd2i. I have read that “i” is used for FAT (and as you should know most usb sticks and memory cards use FAT, still).

Just to mention: I have also found a hint to use mtools to copy files from those devices. mtools was used traditionally to copy files from or to DOS floppy disks. You might also want to check this out.

Advertisements

1 Comment

Filed under OpenBSD, Technology

One response to “Flashcard reader on OpenBSD

  1. bhy

    thanks very much for the suggestion with “i” for FAT. (I recently switched from FreeBSD to OpenBSD on a HP notebook because of better broadcom wifi support and until now I couldn’t figure out how to mount the card reader.)

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s