views:

89

answers:

2

I am wondering, do you need a specific device driver to read a usb device in Linux, or should it just be able to be read. If I connect my cell phone or iPod touch to my linux box, it is not found is /proc/partitions and thus is not a mountable device by fdisks standards, though gnomes nautilus does in fact mount the iPod but not the windows mobile touch pro cell phone.

So I am interested, If I just wanted to read a device(iPod touch) in linux, how can I do so. How can I get a hold of a descriptor of a set usb device so I can read it.

Thanks all.

A: 

Unfortunately there is no simple concept of "just read it" for USB devices (I am assuming that you are not referring to reading and writing the data on the USB bus that make up the USB protocol). In short, you always need a device driver for accessing a USB device and it is up to the driver to implement "the abstraction" of the device used by the system (disk, serial device, etc).

Marko Teiste
Indeed, USB stands for "Universal Serial Bus" -- it's a packetized transport protocol, which doesn't map to "read/write" without some driver (such as `usb-storage`) and/or userspace library (such as `libmtp`, built on top of `libusb`) handling the conversion.
ephemient
+2  A: 

You can access raw USB endpoints under /dev/usbdev. There is user-space libusb that makes it easier.

Alexey Feldgendler