Tag Archives: usb

VirtualBox USB. Sometimes things can be simple.

First of all if you find this post because you want USB to get going on Linux, than you need to know that if you use the open source varian VirtualBox USB – that does not support USB on purpose. Only the closed source version lists USB as a feature. So you have to fetch the version from www.virtualbox.org.

Secondly, there are still issues with USB on VBox in general. But there is a trivial solution for many devices if you use the latest Vbox version >3.1.2:

  • You need to enable the devices by adding a filter in the USB configuration menu. No device without a filter will work and all devices will be grayed out! (And the is a  nice HOWTO and also)

Previously I tried all the funny tricks that you can find on the net. Nothing helped – but nowhere I found this. So I decided to write it down. I did not kow what a USB filter was and assumed that rather than enablig it was meant for disabling USB devices. Lesson learned.

Yet I was not able to enable a Canon PIXMA in that way. Not sure what the cause is. I also still have issues with DVD/CDROM (which I solve by typing “eject” in terminal). But what is nice that a Windows XP on a 64bit Ubuntu 9.10 starts in about 6 seconds inside VirtualBox (unfortunately not my system).

2 Comments

Filed under Free Software, Linux, Technology

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.

1 Comment

Filed under OpenBSD, Technology