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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
|
09-17-2007, 09:17 PM
|
#1
|
LQ Newbie
Registered: Sep 2007
Posts: 7
Rep:
|
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.
|
|
|
09-17-2007, 09:26 PM
|
#2
|
Senior Member
Registered: Apr 2005
Location: Penguin land, with apple, no gates
Distribution: SlackWare > Debian testing woody(32) sarge etch lenny squeeze(+64) wheezy .. bullseye bookworm
Posts: 1,834
Rep:
|
Hya,
Does the kernel on your penguin support USB?
Happy Penguins!
|
|
|
09-17-2007, 11:00 PM
|
#3
|
LQ Newbie
Registered: Sep 2007
Posts: 7
Original Poster
Rep:
|
What is the best way to find out if my kernel supports USB. Really not sure where to check.
|
|
|
09-18-2007, 12:03 PM
|
#4
|
Member
Registered: Sep 2001
Posts: 40
Rep:
|
Do you see anything at all in /var/log/syslog when you plug the device in?
|
|
|
09-18-2007, 01:16 PM
|
#5
|
LQ Guru
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Rep:
|
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.
|
|
|
09-18-2007, 03:48 PM
|
#6
|
LQ Newbie
Registered: Sep 2007
Posts: 7
Original Poster
Rep:
|
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.
|
|
|
09-18-2007, 04:08 PM
|
#7
|
LQ Newbie
Registered: Sep 2007
Posts: 7
Original Poster
Rep:
|
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
|
|
|
09-18-2007, 09:16 PM
|
#8
|
LQ Guru
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Rep:
|
what is the output of just plain old lsmod
|
|
|
09-18-2007, 10:52 PM
|
#9
|
Member
Registered: Sep 2006
Location: USA - NYC
Distribution: Whatever icon you see!
Posts: 642
Rep:
|
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.
|
|
|
09-18-2007, 11:24 PM
|
#10
|
Member
Registered: Dec 2005
Location: India
Distribution: Ubuntu Feisty Fawn
Posts: 107
Rep:
|
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
|
|
|
09-19-2007, 12:11 AM
|
#11
|
Member
Registered: Sep 2006
Location: USA - NYC
Distribution: Whatever icon you see!
Posts: 642
Rep:
|
Quote:
Originally Posted by digen
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.
|
|
|
09-19-2007, 07:47 AM
|
#12
|
Member
Registered: Sep 2006
Location: USA - NYC
Distribution: Whatever icon you see!
Posts: 642
Rep:
|
Quote:
Originally Posted by garbo365
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.
|
|
|
09-19-2007, 02:21 PM
|
#13
|
LQ Newbie
Registered: Sep 2007
Posts: 1
Rep:
|
what's the lsmod output?
|
|
|
09-19-2007, 07:36 PM
|
#14
|
LQ Newbie
Registered: Sep 2007
Posts: 7
Original Poster
Rep:
|
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 -
|
|
|
09-19-2007, 07:44 PM
|
#15
|
LQ Newbie
Registered: Sep 2007
Posts: 7
Original Poster
Rep:
|
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 07:52 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|