Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I just connected my BlackBerry to Linux via USB cable. How do I know which device in /dev it actually is?

share|improve this question

migrated from May 30 '11 at 1:31

This question came from our site for professional and enthusiast programmers.

up vote 2 down vote accepted

If you execute dmesg after plugging in your Blackberry, you'll get as output something like the following:

[33399.504750] sd 7:0:0:0: [sdc] Attached SCSI removable disk
[33399.507712] sd 8:0:0:0: [sdd] Attached SCSI removable disk

where sdc and sdd are the device node identifiers.

Or you can execute hal-device to list all the devices.

Or even ls -l /dev/disk/by-id/usb* to list all usb block devices.

share|improve this answer
Offtopic: As you are using Linux, I've found this webpage which contains valuable information about using your BlackBerry in Linux. – bacchus May 29 '11 at 23:28

The lsusb command will help, it will list (ls) the USB devices.

You can then compare the device number with the major and minor numbers in your /dev dir.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .