Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Hardware
User Name
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?


  Search this Thread
Old 11-21-2009, 09:37 AM   #1
LQ Newbie
Registered: Jul 2002
Posts: 27

Rep: Reputation: 15
Question about usb storage device and device driver


I am new to device drivers and I would like to understand the following points:

-When say a usb storage device is inserted into the usb port, I presume the kernel uses the drivers/usb/storage driver automatically. Is the following information used at all: Bus 001 Device 006: ID 13fe:1a20 Kingston Technology Company Inc.(as provided by a lsusb)?

-It so happens I own a Kingston usb key that has the behaviour of showing two icons on the desktop upon insertion into the usb port. What determines why such usb device will exhibit this behaviour whereas another will not?

-What .c file in drivers/usb/storage is relevant to the above device (Bus 001 Device 006: ID 13fe:1a20 Kingston Technology Company Inc.) ?

Any clue welcome,

Old 11-21-2009, 10:29 AM   #2
LQ 5k Club
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,077

Rep: Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573
The usb key probably has two disk partitions.
Plug the device and look at the output of 'dmesg | tail'. Look for the line like:
sd 9:0:0:0: [sdc] Attached SCSI removable disk
Then (as root) 'fdisk -l /dev/sdc' (or whatever sdX) will show how the usb key is formatted.
Old 11-21-2009, 10:37 AM   #3
LQ Newbie
Registered: Jul 2002
Posts: 27

Original Poster
Rep: Reputation: 15

Actually i have just repartitioned the usb drive and an fdisk shows:
Disque /dev/sdb: 1027 Mo, 1027080192 octets
255 têtes, 63 secteurs/piste, 124 cylindres
Unités = cylindres de 16065 * 512 = 8225280 octets
Identifiant de disque : 0x3d19ffdc

Périphérique Amorce  Début        Fin      Blocs     Id  Système
/dev/sdb1               1         124      995998+  83  Linux


device, drivers, storage, usb

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
USB drive not working properly, read only device? (USB key storage device) Arodef Linux - Hardware 14 01-01-2010 08:32 AM
Device driver for USB storage device linuxdeveloper29 Linux - Hardware 1 10-24-2008 09:30 AM
USB Storage Device Driver netwizio Programming 3 12-03-2007 02:41 AM
Assign one USB-storage device to one device file Misel Linux - Hardware 1 08-28-2004 04:52 AM
how can I mount this device: da0: <USB 2.0 Storage Device alkad_mzu *BSD 2 11-15-2003 07:15 PM > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 07:24 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration