Linux - NewbieThis 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.
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.
I am trying to get my USB stick to work in Debian Woody. It used to work in Madrake 10 and in Vector linux. It also works well in Windows XP. The stick doesn't need any special drivers.
... When I plug it in, I get several messages in my terminal, one of which is "device not claimed by any active driver".
Hence I got the suspicion that my kernel doesn't have support for USB sticks. ( - It does have support for UHCI though.)
anyway, I ran /sbin/lsmod
and found out that I have only these usb drivers:
- usb kbd
- usb-uhci
- usbcore
In some HOWTO, I read that I should also have these drivers:
- hid
- usb-storage
How do I get these drivers to show up? Do I just have to activate something or do I need to recompile the kernel? If I have to recompile the kernel, then how would I go about doing this? I've really got no clue...
You probably have the drivers compiled for your kernel even though they are not loaded.
try
Code:
# modprobe usbhid
# modprobe usb-storage
The commands will not give you any replies on the screen if they work, but if they are missing you will get an error message. If you can load these modules, try to plug in the memory stick again, wait a few seconds and take a look at what
Code:
# dmesg
gives you. If you still get errors that the stick is not operating correctly, please post the lines from dmesg regarding the memory stick.
Edit:
I think you will also need scsi-support and support for scsi-disks in order to use the memory stick. These modules are called scsi-mod and sd-mod
I don't have a usb memory stick, so I may not be right person for this, but I'll se what I can do
Is the output from when you had the memory stick plugged in? if it is, could you please post the last lines from dmesg as well - the ones where the stick is (trying to?) connect. If you don't have it connected, to me it seems as if all the necessary drivers are loaded (either as modules or built-in), and should work if you plug it in.
I connected the usb stick and then disconnected it after a while. here are the relevant lines from dmesg
hub.c: USB new device connect on bus1/2, assigned device number 2
hub.c: USB hub found
hub.c: 1 port detected
hub.c: USB new device connect on bus1/2/1, assigned device number 3
usb.c: USB device 3 (vend/prod 0x67b/0x2517) is not claimed by any active driver.
usb-uhci.c: interrupt, status 3, frame# 780
usb.c: USB disconnect on device 2
usb.c: USB disconnect on device 3
this is the output from /proc/bus/usb/devices while the stick was still connected.
You still get the line "is not claimed by any driver". I would say that the reason is that the scsi-driver failed to pick up the stick. This probably ha ssmething to to with the error when loading the scsi modules. Have you checked your module directory /lib/modules/kernel-versionkernel/drivers/ that the drivers exist. If they don't, you will have to recompile your kernel to add the support. What distro are you using?
I solved the problem with USB stick. Indeed I didn't have the right drivers (modules) installed.
What I did was insert my Debian installation CD and reboot. I chose the keyboard layout and then started going through the steps in the installation procedure. Since I already had a SWAP partition, I didn't need to initialise one, I just activated the one I had on /dev/hda5. Then I activated the root partition and then went on to messing with the kernel. In the list of all the modules that could be installed, I spotted a module called "usb-storage". I added this module and some others that caught my eye (like scsi generic drive support, or something like that) and rebooted. In my next Linux session everything went smooth. I plugged in the stick, and got a longer-than-usual message on my terminal. In the end it said that my stick was to be found on /dev/sda1. Then I issued "mount -t vfat /dev/sda1 /mnt" and everything worked.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.