LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
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?

Notices

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

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


Hello,

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,

Julien.
 
Old 11-21-2009, 10:29 AM   #2
allend
Senior Member
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 3,485

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
The usb key probably has two disk partitions.
Plug the device and look at the output of 'dmesg | tail'. Look for the line like:
Quote:
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
balteo
LQ Newbie
 
Registered: Jul 2002
Posts: 27

Original Poster
Rep: Reputation: 15
thanks,

Actually i have just repartitioned the usb drive and an fdisk shows:
Code:
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
J.
 
  


Reply

Tags
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


All times are GMT -5. The time now is 08:36 AM.

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