LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Cannot Detect Usb Devices (https://www.linuxquestions.org/questions/linux-newbie-8/cannot-detect-usb-devices-585426/)

garbo365 09-17-2007 09:17 PM

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.

kaz2100 09-17-2007 09:26 PM

Hya,

Does the kernel on your penguin support USB?

Happy Penguins!

garbo365 09-17-2007 11:00 PM

What is the best way to find out if my kernel supports USB. Really not sure where to check.

juergen 09-18-2007 12:03 PM

Do you see anything at all in /var/log/syslog when you plug the device in?

farslayer 09-18-2007 01:16 PM

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


garbo365 09-18-2007 03:48 PM

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.

garbo365 09-18-2007 04:08 PM

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?

farslayer 09-18-2007 09:16 PM

what is the output of just plain old lsmod

dv502 09-18-2007 10:52 PM

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

digen 09-18-2007 11:24 PM

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

dv502 09-19-2007 12:11 AM

Quote:

Originally Posted by digen (Post 2896451)
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.

dv502 09-19-2007 07:47 AM

Quote:

Originally Posted by garbo365 (Post 2896161)
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. :)

Dewayne2 09-19-2007 02:21 PM

what's the lsmod output?

garbo365 09-19-2007 07:36 PM

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  -


garbo365 09-19-2007 07:44 PM

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.


All times are GMT -5. The time now is 04:10 AM.