Debian This forum is for the discussion of Debian Linux.
|
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.
|
|
|
08-23-2005, 01:47 PM
|
#1
|
Member
Registered: Jun 2004
Location: UK
Distribution: Debian Etch
Posts: 71
Rep:
|
USB devices aren't recognised
I'm trying to get my pen drive working with my pc at work which has an Intel d865glc motherboard.
uname -r
lspci | grep USB
Code:
0000:00:1d.0 USB Controller: Intel Corp. 82801EB/ER (ICH5/ICH5R) USB UHCI #1 (rev 02)
0000:00:1d.1 USB Controller: Intel Corp. 82801EB/ER (ICH5/ICH5R) USB UHCI #2 (rev 02)
0000:00:1d.2 USB Controller: Intel Corp. 82801EB/ER (ICH5/ICH5R) USB UHCI #3 (rev 02)
0000:00:1d.3 USB Controller: Intel Corp. 82801EB/ER (ICH5/ICH5R) USB UHCI #4 (rev 02)
0000:00:1d.7 USB Controller: Intel Corp. 82801EB/ER (ICH5/ICH5R) USB2 EHCI Controller (rev 02)
lsusb
Code:
Bus 004 Device 001: ID 0000:0000
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 001: ID 0000:0000
dmesg doesn't report anything when inserting or removing my pen drive. I'm guessing this is the important bit, but I'm not really sure what it means
Any pointers?
|
|
|
08-23-2005, 02:31 PM
|
#2
|
Member
Registered: Apr 2005
Location: Wolverhampton, England
Distribution: Ubuntu
Posts: 334
Rep:
|
lsmod | grep usb will show the usb kernel modules. The output I get on Debian Sarge (using 2.6.8-2-k7 kernel) is as follows:
Code:
$ lsmod | grep usb
usbcore 118308 4 ehci_hcd,ohci_hcd
.
There are various different modules for USB support depening on your chipset, so don't expect exactly the same output.
|
|
|
08-23-2005, 03:23 PM
|
#3
|
Senior Member
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380
Rep:
|
You probably need to insert the modules. The Debian method is to use the console command modconf (as root). If it says command not found then apt-get install modconf. You may need to find a howto relevant to the pen drive and find out what modules you need. In addition to anything else I would suggest installing hotplug and discover packages.
|
|
|
08-24-2005, 04:09 AM
|
#4
|
Member
Registered: Jun 2004
Location: UK
Distribution: Debian Etch
Posts: 71
Original Poster
Rep:
|
lsmod | grep usb
<code>
usb_storage 70048 0
usbcore 122148 5 usb_storage,ehci_hcd,uhci_hcd
scsi_mod 127972 2 usb_storage,libata
ide_core 142556 5 usb_storage,ide_cd,ide_generic,piix,ide_disk
</code>
Hotplug and discover are installed and have been restarted - dmesg still doesn't show anything
|
|
|
08-24-2005, 08:11 AM
|
#5
|
Senior Member
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380
Rep:
|
Quote:
Originally posted by simon_w
lsmod | grep usb
<code>
usb_storage 70048 0
usbcore 122148 5 usb_storage,ehci_hcd,uhci_hcd
scsi_mod 127972 2 usb_storage,libata
ide_core 142556 5 usb_storage,ide_cd,ide_generic,piix,ide_disk
</code>
Hotplug and discover are installed and have been restarted - dmesg still doesn't show anything
|
Its being seen as above but won't work unless you setup an entry in /etc/fstab to tell what to do with it. You need to do some reading wrt getting a pen drive working. Google is your friend
|
|
|
08-24-2005, 08:30 AM
|
#6
|
Member
Registered: Jun 2004
Location: UK
Distribution: Debian Etch
Posts: 71
Original Poster
Rep:
|
But surely dmesg should report that the pen drive has been inserted/removed (without anything in fstab)? I'm fairly sure that it does on my Slackware box at home.
I'll keep googling as well.
Edit: fdisk -l doesn't show anything relating to my pen drive
Last edited by simon_w; 08-24-2005 at 08:33 AM.
|
|
|
08-24-2005, 08:43 AM
|
#7
|
Senior Member
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380
Rep:
|
Quote:
Originally posted by simon_w
Edit: fdisk -l doesn't show anything relating to my pen drive
|
Computers are non-intelligent. Your system knows the device is there but you haven't told it what type of file system it has in order to read it or where to mount it so that you can read the contents (these must be specified in /etc/fstab). Sorry if I am coming across as a bit difficult but you need to do some work on this, else you won't learn anything.
|
|
|
08-24-2005, 09:01 AM
|
#8
|
Member
Registered: Jun 2004
Location: UK
Distribution: Debian Etch
Posts: 71
Original Poster
Rep:
|
Quote:
Originally posted by TigerOC
Your system knows the device is there
|
Shouldn't there be something in dmesg if it does know about it?
|
|
|
08-24-2005, 09:24 AM
|
#9
|
Senior Member
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380
Rep:
|
I shouldn't do this but I will. A detailed howto on getting a pen drive to work in Debian can be found here . If you are still having problems after following this guide let us know.
|
|
|
08-24-2005, 09:44 AM
|
#10
|
Member
Registered: Jun 2004
Location: UK
Distribution: Debian Etch
Posts: 71
Original Poster
Rep:
|
I've already tried all that, but I don't think the pen drive is being recognised at all - any attempt to mount it results in "/dev/sda1 is not a valid block device"
Same goes for:
sdb1
sdc1
sdd1
This isn't the "usual" missing entry in fstab problem.
|
|
|
08-24-2005, 09:52 AM
|
#11
|
Member
Registered: Apr 2005
Location: Wolverhampton, England
Distribution: Ubuntu
Posts: 334
Rep:
|
Ok, I just pinched my dad's camera that is a USB mass storage device, and have followed that tutorial that someone else has put up. I modprobed all the modules, and then plugged the camera in. Typing dmesg shows that this has been picked up:
Code:
SCSI subsystem initialized
Initializing USB Mass Storage driver...
usbcore: registered new driver usb-storage
USB Mass Storage support registered.
However, I cannot seem to find anything when I type ls -l /dev/sd*
Is this the same problem as you then?
|
|
|
08-24-2005, 09:57 AM
|
#12
|
Member
Registered: Jun 2004
Location: UK
Distribution: Debian Etch
Posts: 71
Original Poster
Rep:
|
Quote:
Code:
SCSI subsystem initialized
Initializing USB Mass Storage driver...
usbcore: registered new driver usb-storage
USB Mass Storage support registered.
|
That's the result of modprobe'ing the usb-storage not inserting the camera.
It would appear that we have similar problems
|
|
|
08-24-2005, 12:06 PM
|
#13
|
Senior Member
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380
Rep:
|
Post the output of cat /proc/bus/usb/devices with the pen drive inserted.
Last edited by TigerOC; 08-24-2005 at 12:08 PM.
|
|
|
08-24-2005, 01:04 PM
|
#14
|
Member
Registered: Jun 2004
Location: UK
Distribution: Debian Etch
Posts: 71
Original Poster
Rep:
|
cat /proc/bus/usb/devices
Code:
T: Bus=04 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 2
B: Alloc= 0/900 us ( 0%), #Int= 0, #Iso= 0
D: Ver= 1.10 Cls=09(hub ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=0000 ProdID=0000 Rev= 2.06
S: Manufacturer=Linux 2.6.8-2-686-smp uhci_hcd
S: Product=Intel Corp. 82801EB/ER (ICH5/ICH5R) USB UHCI #4
S: SerialNumber=0000:00:1d.3
C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr= 0mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 2 Ivl=255ms
T: Bus=03 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 2
B: Alloc= 0/900 us ( 0%), #Int= 0, #Iso= 0
D: Ver= 1.10 Cls=09(hub ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=0000 ProdID=0000 Rev= 2.06
S: Manufacturer=Linux 2.6.8-2-686-smp uhci_hcd
S: Product=Intel Corp. 82801EB/ER (ICH5/ICH5R) USB UHCI #3
S: SerialNumber=0000:00:1d.2
C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr= 0mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 2 Ivl=255ms
T: Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 2
B: Alloc= 0/900 us ( 0%), #Int= 0, #Iso= 0
D: Ver= 1.10 Cls=09(hub ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=0000 ProdID=0000 Rev= 2.06
S: Manufacturer=Linux 2.6.8-2-686-smp uhci_hcd
S: Product=Intel Corp. 82801EB/ER (ICH5/ICH5R) USB UHCI #2
S: SerialNumber=0000:00:1d.1
C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr= 0mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 2 Ivl=255ms
T: Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 2
B: Alloc= 0/900 us ( 0%), #Int= 0, #Iso= 0
D: Ver= 1.10 Cls=09(hub ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=0000 ProdID=0000 Rev= 2.06
S: Manufacturer=Linux 2.6.8-2-686-smp uhci_hcd
S: Product=Intel Corp. 82801EB/ER (ICH5/ICH5R) USB UHCI #1
S: SerialNumber=0000:00:1d.0
C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr= 0mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 2 Ivl=255ms
That's with and without it inserted.
|
|
|
08-24-2005, 01:12 PM
|
#15
|
Senior Member
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380
Rep:
|
Have you installed the scsi module support? There is something missing in terms of driver support because what is listed there is the usb bus on the mainboard. The pen drive is functional and formatted with a file system?
|
|
|
All times are GMT -5. The time now is 03:28 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
|
|