LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 07-20-2004, 08:08 PM   #1
raxxal
Member
 
Registered: Jul 2004
Location: Los Angeles
Distribution: Mandrake 2007
Posts: 109

Rep: Reputation: 15
How to detec USB devices


Guys/gals,

New to Linux, how do I make my linux box detects USB devices like my digital camera, my USB RAM/drive, etc?

Thanx,
Rax
 
Old 07-20-2004, 09:39 PM   #2
Finlay
Senior Member
 
Registered: Mar 2003
Location: Seattle
Distribution: Slackware ?-14.1
Posts: 1,029

Rep: Reputation: 47
each device will need to be researched, depending on the type.
the devices you listed above will most likely appear as scsi drives like:
/dev/sda1
/dev/sdb1
you will need to make the appropriate entries in your fstab then mount them.
for example a usb thumb drive is setup by the following:
/dev/sda1 /mnt/usbstick vfat user,noauto,umask=0 0 0
then you would type mount /dev/sda1
when you plug in a usb device look at your system logs, if you have hotplug usb support enabled then you will see messages telling you a device was found and what is is called
 
Old 07-20-2004, 09:47 PM   #3
raxxal
Member
 
Registered: Jul 2004
Location: Los Angeles
Distribution: Mandrake 2007
Posts: 109

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by Finlay
each device will need to be researched, depending on the type.
the devices you listed above will most likely appear as scsi drives like:
/dev/sda1
/dev/sdb1
you will need to make the appropriate entries in your fstab then mount them.
for example a usb thumb drive is setup by the following:
/dev/sda1 /mnt/usbstick vfat user,noauto,umask=0 0 0
then you would type mount /dev/sda1
when you plug in a usb device look at your system logs, if you have hotplug usb support enabled then you will see messages telling you a device was found and what is is called
Finlay,

Thanx for the reply. I installed a little program called "usbview", and it sees the flash drive, but I cannot access it. I figured out how to read my digital camera, but not luck with my flash drive.

Rax
 
Old 07-20-2004, 09:51 PM   #4
LavaDevil94
LQ Guru
 
Registered: Jul 2003
Distribution: Gentoo 2004.2: Who needs exmmpkg when you have emerge?
Posts: 1,795

Rep: Reputation: 47
What happened when you tried to mount the flash drive? What is it's /dev name? Is there an entry for it in /etc/fstab?
 
Old 07-20-2004, 09:52 PM   #5
Finlay
Senior Member
 
Registered: Mar 2003
Location: Seattle
Distribution: Slackware ?-14.1
Posts: 1,029

Rep: Reputation: 47
try this:
http://www.extremetech.com/article2/...56701%2C00.asp
 
Old 07-20-2004, 10:03 PM   #6
Finlay
Senior Member
 
Registered: Mar 2003
Location: Seattle
Distribution: Slackware ?-14.1
Posts: 1,029

Rep: Reputation: 47
sorry wrong one
 
Old 07-20-2004, 10:15 PM   #7
raxxal
Member
 
Registered: Jul 2004
Location: Los Angeles
Distribution: Mandrake 2007
Posts: 109

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by LavaDevil94
What happened when you tried to mount the flash drive? What is it's /dev name? Is there an entry for it in /etc/fstab?
This is what I have on /etc/fstab:
/dev/sda1 /mnt/usbstick vfat user,noauto,umask=0 0 0
then I try to mount it on /mnt/usbstick, and I get this:
mount: special device /dev/sda1 does not exist

By the way I am using Mandrake 10.0

This is what the /var/log/messages says about the flash drive:

Jul 20 10:09:17 localhost kernel: usb 4-5: USB disconnect, address 8
Jul 20 10:09:23 localhost kernel: usb 4-5: new high speed USB device using address 12
Jul 20 10:09:24 localhost modprobe: FATAL: Module scsimon not found.
Jul 20 10:09:24 localhost kernel: scsi10 : SCSI emulation for USB Mass Storage devices
Jul 20 10:09:24 localhost kernel: Vendor: Fujifilm Model: USB Drive Rev: 4.70
Jul 20 10:09:24 localhost kernel: Type: Direct-Access ANSI SCSI revision: 02
Jul 20 10:09:24 localhost kernel: Attached scsi removable disk sda at scsi10, channel 0, id 0, lun 0
Jul 20 10:09:24 localhost kernel: Attached scsi generic sg0 at scsi10, channel 0, id 0, lun 0, type 0
Jul 20 10:09:25 localhost scsi.agent[7320]: disk at /devices/pci0000:00/0000:00:1d.7/usb4/4-5/4-5:1.0/host10/10:0:0:0

Fujifilm Model: USB Drive is my usb flash drive.

Thanx,
Rax
 
Old 07-20-2004, 10:16 PM   #8
raxxal
Member
 
Registered: Jul 2004
Location: Los Angeles
Distribution: Mandrake 2007
Posts: 109

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by Finlay
try this:
http://www.extremetech.com/article2/...56701%2C00.asp
Finlay,

I tried the URL instructions, but still I cannot read my flash drive. I am using Mandrake 10.0
I was able to make my Sony digital camera to work, no problem with it, but no luck with my flash drive.

Rax
 
Old 07-20-2004, 10:50 PM   #9
Finlay
Senior Member
 
Registered: Mar 2003
Location: Seattle
Distribution: Slackware ?-14.1
Posts: 1,029

Rep: Reputation: 47
what is your output for: lsmod | more
 
Old 07-21-2004, 10:32 AM   #10
raxxal
Member
 
Registered: Jul 2004
Location: Los Angeles
Distribution: Mandrake 2007
Posts: 109

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by Finlay
what is your output for: lsmod | more
Finlay,

This is what lsmod displays, the first page:

Module Size Used by
nls_iso8859-1 3904 0
nls_cp850 4736 0
vfat 13760 0
fat 45120 1 vfat
usb-storage 72932 0
sg 38044 0
st 38616 0
sr_mod 17028 0
sd_mod 16832 0
scsi_mod 114648 5 usb-storage,sg,st,sr_mod,sd_mod
radeon 127008 28
nfsd 173152 8
exportfs 5920 1 nfsd
md5 3872 1
ipv6 232352 12
ipt_TOS 2240 12
ipt_pkttype 1536 0
ipt_multiport 1856 0
ipt_conntrack 2304 0
iptable_mangle 2624 1
ip_nat_irc 3984 0
ip_nat_tftp 3248 0
ip_nat_ftp 4592 0
iptable_nat 23116 3 ip_nat_irc,ip_nat_tftp,ip_nat_ftp
ip_conntrack_irc 71124 1 ip_nat_irc
ip_conntrack_tftp 3348 0
ip_conntrack_ftp 71668 1 ip_nat_ftp
snd-seq-oss 31232 0
snd-seq-midi-event 7552 1 snd-seq-oss
snd-seq 51024 4 snd-seq-oss,snd-seq-midi-ev

Linux is getting closer to be a truly P&P OS, but little details like this will keep Bill Gates getting reacher and reacher! There is not question about the Linux is a great super great OS, better than Win98, and 2000.

Rax
 
Old 07-21-2004, 11:49 AM   #11
Finlay
Senior Member
 
Registered: Mar 2003
Location: Seattle
Distribution: Slackware ?-14.1
Posts: 1,029

Rep: Reputation: 47
as i have never used mandrake i can't say this for sure but it appears as though you are missing usb-uhci and usbcore modules.

you may want to move this to the mandrake forum and see if one of them can help you from here.

I do know that slackware and red hat load these modules out of the box.
 
Old 07-24-2004, 11:02 PM   #12
raxxal
Member
 
Registered: Jul 2004
Location: Los Angeles
Distribution: Mandrake 2007
Posts: 109

Original Poster
Rep: Reputation: 15
Problem Partially Solved!

Well, I followed the instructions posted on this site:
http://www.extremetech.com/article2/...1256701,00.asp
I tweaked it a little bit, this site said to use "sda1", so I used "sda" only, and it worked. The next step that I would like to solve is that when I plug the flasd drive, the computer does not see it, I need to munt it, then it's ready. Any idea how to to dos this?

Raxxal
 
Old 07-25-2004, 03:09 AM   #13
Finlay
Senior Member
 
Registered: Mar 2003
Location: Seattle
Distribution: Slackware ?-14.1
Posts: 1,029

Rep: Reputation: 47
http://linux-hotplug.sourceforge.net/
 
  


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 devices died after USB hub install Twistedlizzard Linux - Hardware 5 07-08-2005 06:17 AM
MDK 10.2: No USB at all (/proc/bus/usb/devices missing) shrodi Mandriva 5 07-01-2005 11:28 AM
No USB at all (/proc/bus/usb/devices missing) shrodi Linux - Hardware 1 05-26-2005 04:07 AM
USB scanner not in /proc/bus/usb/devices psweetma Linux - Hardware 4 02-25-2004 04:47 PM
slackware 9.1 USB mouse and other usb devices not working jimMC Linux - Hardware 11 01-24-2004 10:58 AM

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

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

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration