LinuxQuestions.org
Visit Jeremy's Blog.
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-17-2006, 03:46 AM   #1
binarybob0001
Member
 
Registered: Dec 2004
Distribution: Debian Wheezy
Posts: 444

Rep: Reputation: 30
Need Help Setting Up a USB Flash Disk Reader


The specific reader is a Lexar RW018 Ver: B4. First off, what do I need to enable in the kernel options to get general USB support working? Once that is done then, what do I need to add to the kernel to get the flash disk support (do I need a special driver for this reader)? What filesystem does the flash disk use (or how do I determine that information) and what will be the devices name?
 
Old 11-17-2006, 08:03 AM   #2
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
USB Flash Drives are usually formatted FAT32 by default

USB support is already in most kernels by default

You can test like this..

tail -F /var/log/messages

That will tail the Messages log and then Follow the log file for any NEW messages that appear.
Afte you have issued that command plug in your USB device and see if any new messages appear on the screen. If they do then the system has detected your USB device and should assign a designator to it.


Code:
itg-debian:~# tail -F /var/log/messages
Nov 17 09:44:35 localhost kernel: DROPPED IN=eth0 OUT= MAC=01:00:5e:00:00:01:00:0d:56:49:f5:b4:08:00 SRC=192.168.0.12 DST=224.0.0.1 LEN=28 TOS=0x00 PREC=0x00 TTL=1 ID=59806 PROTO=2
Nov 17 09:45:57 localhost kernel: martian destination 0.0.0.0 from 192.168.0.102, dev eth0
Nov 17 09:46:44 localhost kernel: DROPPED IN=eth0 OUT= MAC=01:00:5e:00:00:01:00:0d:56:49:f5:b4:08:00 SRC=192.168.0.12 DST=224.0.0.1 LEN=28 TOS=0x00 PREC=0x00 TTL=1 ID=59807 PROTO=2
Nov 17 09:48:53 localhost kernel: DROPPED IN=eth0 OUT= MAC=01:00:5e:00:00:01:00:0d:56:49:f5:b4:08:00 SRC=192.168.0.12 DST=224.0.0.1 LEN=28 TOS=0x00 PREC=0x00 TTL=1 ID=59808 PROTO=2
Nov 17 09:49:57 localhost kernel: martian destination 0.0.0.0 from 192.168.0.102, dev eth0
Nov 17 09:51:03 localhost kernel: DROPPED IN=eth0 OUT= MAC=01:00:5e:00:00:01:00:0d:56:49:f5:b4:08:00 SRC=192.168.0.12 DST=224.0.0.1 LEN=28 TOS=0x00 PREC=0x00 TTL=1 ID=59809 PROTO=2
Nov 17 09:53:12 localhost kernel: DROPPED IN=eth0 OUT= MAC=01:00:5e:00:00:01:00:0d:56:49:f5:b4:08:00 SRC=192.168.0.12 DST=224.0.0.1 LEN=28 TOS=0x00 PREC=0x00 TTL=1 ID=59810 PROTO=2
Nov 17 09:53:56 localhost kernel: martian destination 0.0.0.0 from 192.168.0.102, dev eth0
Nov 17 09:55:21 localhost kernel: DROPPED IN=eth0 OUT= MAC=01:00:5e:00:00:01:00:0d:56:49:f5:b4:08:00 SRC=192.168.0.12 DST=224.0.0.1 LEN=28 TOS=0x00 PREC=0x00 TTL=1 ID=59811 PROTO=2
Nov 17 09:56:07 localhost kernel: DROPPED IN= OUT=eth0 SRC=192.168.0.188 DST=85.214.65.100 LEN=76 TOS=0x10 PREC=0x00 TTL=64 ID=0 DF PROTO=UDP SPT=123 DPT=123 LEN=56
Nov 17 09:57:06 localhost kernel: usb 2-2: new full speed USB device using address 4
Nov 17 09:57:06 localhost kernel: scsi2 : SCSI emulation for USB Mass Storage devices
Nov 17 09:57:06 localhost kernel:   Vendor: OTi       Model: Flash Disk        Rev: 1.89
Nov 17 09:57:06 localhost kernel:   Type:   Direct-Access                      ANSI SCSI revision: 02
Nov 17 09:57:06 localhost kernel: SCSI device sda: 128000 512-byte hdwr sectors (66 MB)
Nov 17 09:57:06 localhost kernel: sda: assuming Write Enabled
Nov 17 09:57:06 localhost kernel:  /dev/scsi/host2/bus0/target0/lun0: p1
Nov 17 09:57:06 localhost kernel: Attached scsi removable disk sda at scsi2, channel 0, id 0, lun 0
Nov 17 09:57:06 localhost kernel: Attached scsi generic sg0 at scsi2, channel 0, id 0, lun 0,  type 0
Nov 17 09:57:07 localhost scsi.agent[24436]:      sd_mod: loaded sucessfully (for disk)
Nov 17 09:57:08 localhost usb.agent[24427]:      usb-storage: already loaded
I Issued the command, plugged in my device it was detected as hda so I would mount it with the typical mount /dev/hda1 /mnt/mountpoint

As you can see it is also using the sd_mod and usb_storage modules to support the device.

This works pretty much the same for USB Drives, Memory card readers, etc..

Here is the output from a memory card reader..

Code:
Nov 17 10:01:12 localhost kernel: usb 2-2: new full speed USB device using address 6
Nov 17 10:01:12 localhost kernel: scsi4 : SCSI emulation for USB Mass Storage devices
Nov 17 10:01:12 localhost kernel:   Vendor: ICSI      Model: SD Card           Rev: 2.7C
Nov 17 10:01:12 localhost kernel:   Type:   Direct-Access                      ANSI SCSI revision: 02
Nov 17 10:01:12 localhost kernel: Attached scsi removable disk sda at scsi4, channel 0, id 0, lun 0
Nov 17 10:01:12 localhost kernel: Attached scsi generic sg0 at scsi4, channel 0, id 0, lun 0,  type 0
Nov 17 10:01:12 localhost kernel:   Vendor: ICSI      Model: CF Card           Rev: 2.7C
Nov 17 10:01:12 localhost kernel:   Type:   Direct-Access                      ANSI SCSI revision: 02
Nov 17 10:01:12 localhost scsi.agent[25233]:      sd_mod: loaded sucessfully (for disk)
Nov 17 10:01:12 localhost kernel: Attached scsi removable disk sdb at scsi4, channel 0, id 0, lun 1
Nov 17 10:01:12 localhost kernel: Attached scsi generic sg1 at scsi4, channel 0, id 0, lun 1,  type 0
Nov 17 10:01:12 localhost kernel:   Vendor: ICSI      Model: SM Card            Rev: 2.7C
Nov 17 10:01:12 localhost kernel:   Type:   Direct-Access                      ANSI SCSI revision: 02
Nov 17 10:01:12 localhost kernel: Attached scsi removable disk sdc at scsi4, channel 0, id 0, lun 2
Nov 17 10:01:12 localhost kernel: Attached scsi generic sg2 at scsi4, channel 0, id 0, lun 2,  type 0
Nov 17 10:01:12 localhost kernel:   Vendor: ICSI      Model: SM Card           Rev: 2.7C
Nov 17 10:01:12 localhost kernel:   Type:   Direct-Access                      ANSI SCSI revision: 02
Nov 17 10:01:13 localhost scsi.agent[25333]:      sd_mod: loaded sucessfully (for disk)
Nov 17 10:01:13 localhost kernel: Attached scsi removable disk sdd at scsi4, channel 0, id 0, lun 3
Nov 17 10:01:13 localhost kernel: Attached scsi generic sg3 at scsi4, channel 0, id 0, lun 3,  type 0
Nov 17 10:01:13 localhost scsi.agent[25364]:      sd_mod: loaded sucessfully (for disk)
Nov 17 10:01:13 localhost scsi.agent[25314]:      sd_mod: loaded sucessfully (for disk)
Nov 17 10:01:14 localhost usb.agent[25377]:      usb-storage: already loaded
Notice each card slot on the Memory card reader gets a different drive designation..

Hope that helps.
 
  


Reply


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 flash reader not recognised bondsac Linux - Hardware 1 02-01-2006 05:08 PM
USB flash card reader in Mandrake 10.1 enrico14569 Linux - Hardware 4 10-02-2005 06:57 PM
JFFS2 on USB Card Reader Flash Denes Linux - Hardware 1 07-14-2005 01:41 PM
How to mount a flash usb reader blitzen Linux - Hardware 3 03-30-2004 10:07 AM
Need a little help getting USB flash card reader to work Electrode Linux - Hardware 13 10-20-2003 04:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 11:58 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration