LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 09-17-2007, 09:17 PM   #1
garbo365
LQ Newbie
 
Registered: Sep 2007
Posts: 7

Rep: Reputation: 0
Cannot Detect Usb Devices


I am currently running debian etch on my laptop, and cannot detect any usb devices. When I run dmseg there is no type of mass storage device detected. If I try running lsusb, I get nothing. I checked and made sure that udev was installed, and its there. Connecting to the usb port then rebooting doesn't fix the problem either. Google and other threads haven't given me any leads so far. Any help would be greatly appreciated.
 
Old 09-17-2007, 09:26 PM   #2
kaz2100
Senior Member
 
Registered: Apr 2005
Location: Penguin land, with apple, no gates
Distribution: Debian testing woody(32) sarge etch lenny squeeze(+64) wheezy jessie
Posts: 1,428

Rep: Reputation: 83
Hya,

Does the kernel on your penguin support USB?

Happy Penguins!
 
Old 09-17-2007, 11:00 PM   #3
garbo365
LQ Newbie
 
Registered: Sep 2007
Posts: 7

Original Poster
Rep: Reputation: 0
What is the best way to find out if my kernel supports USB. Really not sure where to check.
 
Old 09-18-2007, 12:03 PM   #4
juergen
Member
 
Registered: Sep 2001
Posts: 40

Rep: Reputation: 16
Do you see anything at all in /var/log/syslog when you plug the device in?
 
Old 09-18-2007, 01:16 PM   #5
farslayer
Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,231
Blog Entries: 5

Rep: Reputation: 189Reputation: 189
a couple things you can look at:

Does the system see your USB hardware ?
Code:
username@it-etch:~$ lspci | grep USB
00:13.0 USB Controller: ATI Technologies Inc SB600 USB (OHCI0)
00:13.1 USB Controller: ATI Technologies Inc SB600 USB (OHCI1)
00:13.2 USB Controller: ATI Technologies Inc SB600 USB (OHCI2)
00:13.3 USB Controller: ATI Technologies Inc SB600 USB (OHCI3)
00:13.4 USB Controller: ATI Technologies Inc SB600 USB (OHCI4)
00:13.5 USB Controller: ATI Technologies Inc SB600 USB Controller (EHCI)
at are the modules loaded ?
Code:
username@it-etch:~$ lsmod | grep usb
usbhid                 37248  0
usbcore               112644  4 usbhid,ehci_hcd,ohci_hcd
Watch the messages log and plug in your device
Code:
it-etch:~# tail -f /var/log/messages
Sep 18 10:58:57 it-etch -- MARK --
Sep 18 11:18:58 it-etch -- MARK --
 <usb device inserted into port > 
Sep 18 14:14:05 it-etch kernel: usb 6-7: new high speed USB device using ehci_hcd and address 3
Sep 18 14:14:06 it-etch kernel: usb 6-7: configuration #1 chosen from 1 choice
Sep 18 14:14:06 it-etch kernel: Initializing USB Mass Storage driver...
Sep 18 14:14:06 it-etch kernel: scsi4 : SCSI emulation for USB Mass Storage devices
Sep 18 14:14:06 it-etch kernel: usbcore: registered new driver usb-storage
Sep 18 14:14:06 it-etch kernel: USB Mass Storage support registered.
Sep 18 14:14:11 it-etch kernel:   Vendor: USB 2.0   Model: Flash Disk        Rev: 1100
Sep 18 14:14:11 it-etch kernel:   Type:   Direct-Access                      ANSI SCSI revision: 00
Sep 18 14:14:11 it-etch kernel: SCSI device sdb: 3963904 512-byte hdwr sectors (2030 MB)
Sep 18 14:14:11 it-etch kernel: sdb: Write Protect is off
Sep 18 14:14:11 it-etch kernel: SCSI device sdb: 3963904 512-byte hdwr sectors (2030 MB)
Sep 18 14:14:11 it-etch kernel: sdb: Write Protect is off
Sep 18 14:14:11 it-etch kernel:  sdb: sdb1
Sep 18 14:14:11 it-etch kernel: sd 4:0:0:0: Attached scsi removable disk sdb

Last edited by farslayer; 09-18-2007 at 01:18 PM.
 
Old 09-18-2007, 03:48 PM   #6
garbo365
LQ Newbie
 
Registered: Sep 2007
Posts: 7

Original Poster
Rep: Reputation: 0
When I connect to the usb port I get no response on the syslog. Running lspci | grep USB does show my port. Then I tried running lsmod | grep USB and I got no results, so I am guessing that the modules are not loaded. So the next question is what can I change to get the usb modules to load at boot. I'm really new at this and appreciate your patience.
 
Old 09-18-2007, 04:08 PM   #7
garbo365
LQ Newbie
 
Registered: Sep 2007
Posts: 7

Original Poster
Rep: Reputation: 0
So I think the problem is definately with the usb modules. When I used modprobe to manually load the modules I get the following.

ip68-13-212-130:/sbin# install scsi_mod /sbin/modprobe
install: cannot stat `scsi_mod': No such file or directory
ip68-13-212-130:/sbin# install sd_mod /sbin/modprobe
install: cannot stat `sd_mod': No such file or directory

lsmod shows these modules, but I modprobe can't find them. Any ideas?

Last edited by garbo365; 09-18-2007 at 05:04 PM. Reason: Wrong commands
 
Old 09-18-2007, 09:16 PM   #8
farslayer
Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,231
Blog Entries: 5

Rep: Reputation: 189Reputation: 189
what is the output of just plain old lsmod
 
Old 09-18-2007, 10:52 PM   #9
dv502
Member
 
Registered: Sep 2006
Location: USA - NYC
Distribution: Whatever icon you see!
Posts: 642

Rep: Reputation: 57
Quote:
Sep 18 14:14:11 it-etch kernel: sdb: Write Protect is off
Sep 18 14:14:11 it-etch kernel: sdb: sdb1
Sep 18 14:14:11 it-etch kernel: sd 4:0:0:0: Attached scsi removable disk sdb
It appears the kernel did detect the usb device and assign it to sdb1. If your distro doesn't have autofs or HAL, it will not mount it automatically.
You have to manually mount it as root.

Try this, in the /mnt folder create a directory called usb, only an example. Next as root, type

mount /dev/sdb1 /mnt/usb

if you get no error messages, then it work.

Type df -h to view the mounted device

Last edited by dv502; 09-18-2007 at 11:05 PM.
 
Old 09-18-2007, 11:24 PM   #10
digen
Member
 
Registered: Dec 2005
Location: India
Distribution: Ubuntu Feisty Fawn
Posts: 107

Rep: Reputation: 15
dv502, you're reading the wrong reply. OP hasn't provided the information you're referring to.farslayer did as an example.

garbo365,

The correct syntax of loading a module using modprobe is,

/sbin/modprobe modulename
 
Old 09-19-2007, 12:11 AM   #11
dv502
Member
 
Registered: Sep 2006
Location: USA - NYC
Distribution: Whatever icon you see!
Posts: 642

Rep: Reputation: 57
Quote:
Originally Posted by digen View Post
dv502, you're reading the wrong reply. OP hasn't provided the information you're referring to.farslayer did as an example.

garbo365,

The correct syntax of loading a module using modprobe is,

/sbin/modprobe modulename
Forgive me folks, I was reading farslayer /var/log/messages output, as noted by digen. My mistake...


If none of our suggestions work, try this, as root type

tail -f /var/log/messages, then connect your usb device.

Post the output you get after connecting your device. This will help us see what is happening when you connect the device.

Last edited by dv502; 09-19-2007 at 12:32 AM.
 
Old 09-19-2007, 07:47 AM   #12
dv502
Member
 
Registered: Sep 2006
Location: USA - NYC
Distribution: Whatever icon you see!
Posts: 642

Rep: Reputation: 57
Quote:
Originally Posted by garbo365 View Post
When I connect to the usb port I get no response on the syslog. Running lspci | grep USB does show my port. Then I tried running lsmod | grep USB and I got no results, so I am guessing that the modules are not loaded. So the next question is what can I change to get the usb modules to load at boot. I'm really new at this and appreciate your patience.
I notice you use lsmod | grep USB, the USB should be be lowercase or you can add the -i option to grep which would ignore case sensitivity. Even if usbcore is listed, after running lsmod, This does not guarantee every usb device will work when you connect to it, especially if the device is proprietary i.e no hardware documentation/specs provided for the linux community to create a module for it.

Post the output of your /var/log/messages as mention above, so we can see what is happening. If you had resolved the problem, let us know. It is good forum etiquette.

Last edited by dv502; 09-19-2007 at 07:55 AM.
 
Old 09-19-2007, 02:21 PM   #13
Dewayne2
LQ Newbie
 
Registered: Sep 2007
Posts: 1

Rep: Reputation: 0
what's the lsmod output?
 
Old 09-19-2007, 07:36 PM   #14
garbo365
LQ Newbie
 
Registered: Sep 2007
Posts: 7

Original Poster
Rep: Reputation: 0
So here is the output I get for lsmod

Code:
ip68-13-212-130:/# lsmod
Module                  Size  Used by
binfmt_misc            10992  - 
md5                     3656  - 
ipv6                  238240  - 
af_packet              20688  - 
snd_es1968             25216  - 
snd_ac97_codec         90924  - 
snd_ac97_bus            1800  - 
snd_pcm_oss            43424  - 
snd_mixer_oss          16136  - 
snd_pcm                73520  - 
snd_page_alloc          9808  - 
snd_mpu401_uart         7368  - 
snd_seq_dummy           3372  - 
snd_seq_oss            31104  - 
snd_seq_midi            8224  - 
snd_seq_midi_event      6472  - 
snd_seq                45648  - 
snd_timer              21676  - 
snd_rawmidi            22656  - 
snd_seq_device          7636  - 
snd                    50628  - 
soundcore               8768  - 
e100                   32584  - 
mii                     4840  - 
agpgart                32680  - 
dm_mod                 51612  - 
ide_cd                 38212  - 
cdrom                  36736  - 
rtc                    11552  - 
ext3                  124912  - 
jbd                    50524  - 
ide_disk               16232  - 
ide_generic             1032  - 
via82cxxx              12836  - 
trm290                  3916  - 
triflex                 3496  - 
slc90e66                5256  - 
sis5513                15120  - 
siimage                11048  - 
serverworks             8688  - 
sc1200                  6824  - 
rz1000                  2376  - 
piix                    9516  - 
pdc202xx_old           10056  - 
opti621                 3884  - 
ns87415                 4040  - 
hpt366                 17608  - 
hpt34x                  4776  - 
generic                 4236  - 
cy82c693                4236  - 
cs5530                  4936  - 
cmd64x                 10948  - 
atiixp                  5464  - 
amd74xx                13476  - 
alim15x3               11156  - 
aec62xx                 6664  - 
pdc202xx_new            8424  - 
ide_core              115732  - 
sd_mod                 15928  - 
scsi_mod              131560  - 
unix                   25232  -
 
Old 09-19-2007, 07:44 PM   #15
garbo365
LQ Newbie
 
Registered: Sep 2007
Posts: 7

Original Poster
Rep: Reputation: 0
Here is the what happens when I run tail -f /var/log/messages and plug in an ipod. I also tried powering it on and off while if was connected to the usb port. Far as I can tell it gives no response.

Code:
ip68-13-212-130:/# tail -f /var/log/messages
Sep 19 17:53:58 ip68-13-212-130 kernel: apm: BIOS version 1.2 Flags 0x03 (Driver version 1.16ac)
Sep 19 17:53:58 ip68-13-212-130 kernel: apm: overridden by ACPI.
Sep 19 18:13:46 ip68-13-212-130 -- MARK --
Sep 19 18:33:47 ip68-13-212-130 -- MARK --
Sep 19 18:53:47 ip68-13-212-130 -- MARK --
Sep 19 19:13:48 ip68-13-212-130 -- MARK --
Sep 19 19:33:48 ip68-13-212-130 -- MARK --
Sep 19 19:53:48 ip68-13-212-130 -- MARK --
Sep 19 20:13:48 ip68-13-212-130 -- MARK --
Sep 19 20:33:49 ip68-13-212-130 -- MARK --
Sorry I didn't this info up quicker, but got a hectic work schedule.
 
  


Reply

Tags
debian, hardware


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
how to detect USB devices like MP3 players jmorgan324 Linux - Newbie 15 07-23-2007 09:19 PM
Slack 11 : Doesn't detect USB devices & can't shutdown ?? mnemonix Slackware 7 12-17-2006 06:04 AM
Xorg can't detect any devices worldgnat Linux - Software 2 06-20-2006 05:06 PM
Can't detect usb devices?? CM019 Debian 5 06-09-2005 01:43 PM
Can Hotplug detect USB devices in a certain order? SAM_site Linux - General 0 07-10-2004 07:27 AM


All times are GMT -5. The time now is 04:00 PM.

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