LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 10-15-2007, 09:55 AM   #1
MartyJay
Member
 
Registered: Oct 2005
Location: Newmarket, On
Distribution: Debian Squeeze
Posts: 55

Rep: Reputation: 15
Question Cannot mount USB key after updating to Etch


Hi all,

I am rather confused; my USB key (Dane-elec, 512 MB) does not want to mount anymore after I upgraded from Debian Sarge to Etch. The USB key is fine, I can still mount it on another machine that runs Sarge with: mount /dev/sda1 /mnt/usb
This is not about automount or manual mount, it does not mount at all.

However, this is what happens now:

debian:~# mount /dev/sda1 /mnt/usb
mount: you must specify the filesystem type

debian:~# mount -t vfat /dev/sda1 /mnt/usb
mount: /dev/sda1 is not a valid block device

debian:~# dmesg | tail
usb.c: USB device 2 (vend/prod 0x930/0x6545) is not claimed by any
active driver.
CSLIP: code copyright 1989 Regents of the University of California
PPP generic driver version 2.4.2
e100: eth0 NIC Link is Up 10 Mbps Half duplex
ip_tables: (C) 2000-2002 Netfilter core team
parport0: PC-style at 0x378 (0x778) [PCSPP,TRISTATE]
parport0: irq 7 detected
lp0: using parport0 (polling).
ppdev: user-space parallel port driver
apm: BIOS version 1.2 Flags 0x03 (Driver version 1.16)

I am puzzled. I think all the drivers are there. I hope somebody has a bright idea...

Marty
 
Old 10-15-2007, 10:21 AM   #2
ray_80
Member
 
Registered: Oct 2007
Posts: 75

Rep: Reputation: 15
Quote:
Originally Posted by MartyJay View Post
Hi all,

I am rather confused; my USB key (Dane-elec, 512 MB) does not want to mount anymore after I upgraded from Debian Sarge to Etch. The USB key is fine, I can still mount it on another machine that runs Sarge with: mount /dev/sda1 /mnt/usb
This is not about automount or manual mount, it does not mount at all.

However, this is what happens now:

debian:~# mount /dev/sda1 /mnt/usb
mount: you must specify the filesystem type

debian:~# mount -t vfat /dev/sda1 /mnt/usb
mount: /dev/sda1 is not a valid block device

debian:~# dmesg | tail
usb.c: USB device 2 (vend/prod 0x930/0x6545) is not claimed by any
active driver.
CSLIP: code copyright 1989 Regents of the University of California
PPP generic driver version 2.4.2
e100: eth0 NIC Link is Up 10 Mbps Half duplex
ip_tables: (C) 2000-2002 Netfilter core team
parport0: PC-style at 0x378 (0x778) [PCSPP,TRISTATE]
parport0: irq 7 detected
lp0: using parport0 (polling).
ppdev: user-space parallel port driver
apm: BIOS version 1.2 Flags 0x03 (Driver version 1.16)

I am puzzled. I think all the drivers are there. I hope somebody has a bright idea...

Marty
What does /proc say about the device? What modules do you have loaded or not loaded?

Regards
 
Old 10-15-2007, 01:23 PM   #3
MartyJay
Member
 
Registered: Oct 2005
Location: Newmarket, On
Distribution: Debian Squeeze
Posts: 55

Original Poster
Rep: Reputation: 15
output of /proc

debian:/proc# ls
1 1248 1325 1353 1370 1387 1524 1564 3 997 interrupts self
1001 1256 1326 1354 1371 1388 1525 1573 316 998 iomem slabinfo
1002 1257 1327 1355 1372 1389 1530 1586 318 999 ioports stat
1010 1258 1328 1356 1373 1397 1532 1591 4 apm irq swaps
1013 1274 1329 1357 1374 1472 1534 1597 5 bus kcore sys
1016 1281 1330 1358 1375 1473 1537 1598 530 cmdline kmsg sysrq-trigger
1079 1297 1332 1359 1376 1476 1542 1600 6 comx ksyms sysvipc
1094 1298 1333 1360 1377 1477 1549 1603 635 cpuinfo loadavg tty
1102 1306 1338 1361 1378 1504 1550 1608 667 crypto locks uptime
1103 1307 1339 1362 1379 1505 1552 1609 895 devices meminfo version
1119 1308 1340 1363 1380 1508 1554 1610 901 dma misc
1120 1310 1341 1364 1381 1510 1555 1611 956 driver modules
1131 1311 1348 1365 1382 1512 1557 1671 99 execdomains mounts
1183 1316 1349 1366 1383 1517 1558 1674 993 fb net
1195 1317 1350 1367 1384 1519 1560 1677 994 filesystems partitions
1206 1318 1351 1368 1385 1520 1562 2 995 fs pci
1238 1319 1352 1369 1386 1522 1563 2449 996 ide scsi

That's it, with the USB key plugged in...
 
Old 10-15-2007, 05:53 PM   #4
ray_80
Member
 
Registered: Oct 2007
Posts: 75

Rep: Reputation: 15
Quote:
Originally Posted by MartyJay View Post
debian:/proc# ls
1 1248 1325 1353 1370 1387 1524 1564 3 997 interrupts self
1001 1256 1326 1354 1371 1388 1525 1573 316 998 iomem slabinfo
1002 1257 1327 1355 1372 1389 1530 1586 318 999 ioports stat
1010 1258 1328 1356 1373 1397 1532 1591 4 apm irq swaps
1013 1274 1329 1357 1374 1472 1534 1597 5 bus kcore sys
1016 1281 1330 1358 1375 1473 1537 1598 530 cmdline kmsg sysrq-trigger
1079 1297 1332 1359 1376 1476 1542 1600 6 comx ksyms sysvipc
1094 1298 1333 1360 1377 1477 1549 1603 635 cpuinfo loadavg tty
1102 1306 1338 1361 1378 1504 1550 1608 667 crypto locks uptime
1103 1307 1339 1362 1379 1505 1552 1609 895 devices meminfo version
1119 1308 1340 1363 1380 1508 1554 1610 901 dma misc
1120 1310 1341 1364 1381 1510 1555 1611 956 driver modules
1131 1311 1348 1365 1382 1512 1557 1671 99 execdomains mounts
1183 1316 1349 1366 1383 1517 1558 1674 993 fb net
1195 1317 1350 1367 1384 1519 1560 1677 994 filesystems partitions
1206 1318 1351 1368 1385 1520 1562 2 995 fs pci
1238 1319 1352 1369 1386 1522 1563 2449 996 ide scsi

That's it, with the USB key plugged in...
Seems that your dmesg is hinting. The device is not claimed by a driver (module). What modules do you have loaded? Do a

lsmod

on the working/non working machines and examine the difference. It worked before, so it should work again. You may want to look at depmod as well.

man depmod

After that, be sure to load the module that is needed.

Regards


Regards
 
Old 10-16-2007, 09:08 PM   #5
MartyJay
Member
 
Registered: Oct 2005
Location: Newmarket, On
Distribution: Debian Squeeze
Posts: 55

Original Poster
Rep: Reputation: 15
Unhappy

lsmod output working USB (Sarge)
debian:~# lsmod
Module Size Used by Not tainted
ac97_codec 11252 0 [i810_audio]
af_packet 11048 1 (autoclean)
agpgart 39108 0 (unused)
apm 8428 1 (autoclean)
cdrom 26212 0 [ide-cd]
e100 42868 1
ext3 65388 1 (autoclean)
i810_audio 21372 1
ide-cd 27072 0
ide-core 91832 2 (autoclean) [ide-scsi ide-cd
ide-detect 288 0 (autoclean) (unused)
ide-detect piix ide-disk]
ide-disk 12448 2 (autoclean)
ide-scsi 8272 0
input 3040 0 (autoclean)
jbd 34628 1 (autoclean) [ext3]
lp 5540 0 (autoclean)
parport 21608 1 (autoclean) [parport_pc lp]
parport_pc 19432 1 (autoclean)
piix 7784 1 (autoclean)
rtc 5768 0 (autoclean)
scsi_mod 86052 1 [ide-scsi]
soundcore 3268 2 [i810_audio]
unix 12752 132 (autoclean)
usb-uhci 19504 0 (unused)
usbcore 52268 1 [usb-uhci]

lsmod output etch; not working
debian:~# lsmod
Module Size Used by Not tainted
ac97_codec 11252 0 [maestro3]
af_packet 11048 1 (autoclean)
agpgart 39108 0 (unused)
apm 8428 1 (autoclean)
cdrom 26212 0 [ide-cd]
dm-mirror 8548 0 (unused)
dm-mod 36120 0 [dm-mirror]
e100 42868 1
ext3 65388 1 (autoclean)
ide-cd 27072 0
ide-core 91832 2 (autoclean) [ide-scsi ide-cd
ide-detect 288 0 (autoclean) (unused)
ide-detect via82cxxx ide-disk]
ide-disk 12448 2 (autoclean)
ide-scsi 8272 0
ip_tables 10400 3 [ipt_TCPMSS ipt_tcpmss iptable_filter]
ipt_tcpmss 728 1 (autoclean)
ipt_TCPMSS 2104 1 (autoclean)
iptable_filter 1644 1 (autoclean)
jbd 34628 1 (autoclean) [ext3]
lp 5540 0 (unused)
maestro3 23152 0
parport 21608 1 [ppdev parport_pc lp]
parport_pc 19432 1 (autoclean)
ppdev 5580 0 (unused)
ppp_generic 17956 3 (autoclean) [pppoe pppox]
pppoe 6816 1 (autoclean)
pppox 1016 1 (autoclean) [pppoe]
rtc 5768 0 (autoclean)
scsi_mod 86052 2 [ide-scsi sd_mod]
sd_mod 10764 0 (unused)
slhc 4144 0 (autoclean) [ppp_generic]
soundcore 3268 2 [maestro3]
unix 12752 175 (autoclean)
usb-uhci 19504 0 (unused)
usbcore 52268 0 [usb-uhci]
via82cxxx 9256 1 (autoclean)

The only difference I can see on the Sarge box is;
ide-detect piix ide-disk]
input 3040 0 (autoclean)
piix 7784 1 (autoclean)

Doesn't help me much so far. Maybe I missed something?
 
Old 10-16-2007, 09:30 PM   #6
ray_80
Member
 
Registered: Oct 2007
Posts: 75

Rep: Reputation: 15
I am not too familiar with your distro, but I do find it odd that either machine is not using usb-storage module. Maybe I missed it, or your distro does not need it.

What is in your

/lib/modules/your-running-kernel/kernel/drivers/usb/

directory?

I am also thinking that maybe there is a bug in one of your usb* modules. You may want to grab a new one. What is your kernel version you have now?

Regards
 
Old 10-17-2007, 07:28 AM   #7
MartyJay
Member
 
Registered: Oct 2005
Location: Newmarket, On
Distribution: Debian Squeeze
Posts: 55

Original Poster
Rep: Reputation: 15
I appreciate all the help. This is the first time I got really, really stuck...

debian:/lib/modules/2.4.27-2-386/kernel/drivers/usb# ls
acm.o CDCEther.o hpusbscsi.o microtek.o rio500.o storage usblcd.o vicam.o
aiptek.o dc2xx.o ibmcam.o ov511.o rtl8150.o stv680.o usb-midi.o w9968cf.o
audio.o dsbr100.o kaweth.o pegasus.o scanner.o tiglusb.o usbmouse.o wacom.o
auerswald.o emi26.o kbtab.o powermate.o se401.o ultracam.o usbnet.o
brlvger.o hid.o konicawc.o printer.o serial usbcore.o usbvideo.o
catc.o host mdc800.o pwc.o speedtch.o usbkbd.o uss720.o
 
Old 10-17-2007, 09:07 AM   #8
ray_80
Member
 
Registered: Oct 2007
Posts: 75

Rep: Reputation: 15
Quote:
Originally Posted by MartyJay View Post
I appreciate all the help. This is the first time I got really, really stuck...

debian:/lib/modules/2.4.27-2-386/kernel/drivers/usb# ls
acm.o CDCEther.o hpusbscsi.o microtek.o rio500.o storage usblcd.o vicam.o
aiptek.o dc2xx.o ibmcam.o ov511.o rtl8150.o stv680.o usb-midi.o w9968cf.o
audio.o dsbr100.o kaweth.o pegasus.o scanner.o tiglusb.o usbmouse.o wacom.o
auerswald.o emi26.o kbtab.o powermate.o se401.o ultracam.o usbnet.o
brlvger.o hid.o konicawc.o printer.o serial usbcore.o usbvideo.o
catc.o host mdc800.o pwc.o speedtch.o usbkbd.o uss720.o
No problem helping.

Was that a 'storage' directory in there? Do a

ls -laR

this time and lets look inside. It could be hiding in there.

Also, do you have the kernel headers installed? That may help.

Regards
 
Old 10-18-2007, 07:43 AM   #9
MartyJay
Member
 
Registered: Oct 2005
Location: Newmarket, On
Distribution: Debian Squeeze
Posts: 55

Original Poster
Rep: Reputation: 15
Mmmm. ls -laR gives me an enormous list. What exactly am I looking for? There is nothing called storage. The kernel headers are the newest version.
 
Old 10-18-2007, 08:45 AM   #10
ray_80
Member
 
Registered: Oct 2007
Posts: 75

Rep: Reputation: 15
There was a folder called 'storage' in your earlier post:

debian:/lib/modules/2.4.27-2-386/kernel/drivers/usb# ls
acm.o CDCEther.o hpusbscsi.o microtek.o rio500.o storage usblcd.o vicam.o
^^^^^^

Or at least it appears to be a directory. Take a look inside that.

Regards
 
Old 10-18-2007, 08:53 AM   #11
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
Here is the current loaded modules on my Debian Etch system

Code:
it-etch:~# lsmod | grep usb
usb_storage            71840  1
scsi_mod              124168  5 sg,usb_storage,sd_mod,ahci,libata
usbhid                 37248  0
ide_core              110504  5 usb_storage,ide_generic,ide_cd,generic,atiixp
usbcore               112644  5 usb_storage,usbhid,ehci_hcd,ohci_hcd
as you can see a USB drive mounts just fine when inserted.
Code:
Oct 18 09:39:02 it-etch kernel: usb 6-7: new high speed USB device using ehci_hcd and address 5
Oct 18 09:39:02 it-etch kernel: usb 6-7: configuration #1 chosen from 1 choice
Oct 18 09:39:02 it-etch kernel: scsi5 : SCSI emulation for USB Mass Storage devices
Oct 18 09:39:07 it-etch kernel:   Vendor: USB 2.0   Model: Flash Disk        Rev: 1100
Oct 18 09:39:07 it-etch kernel:   Type:   Direct-Access                      ANSI SCSI revision: 00
Oct 18 09:39:07 it-etch kernel: SCSI device sdb: 3963904 512-byte hdwr sectors (2030 MB)
Oct 18 09:39:07 it-etch kernel: sdb: Write Protect is off
Oct 18 09:39:07 it-etch kernel: SCSI device sdb: 3963904 512-byte hdwr sectors (2030 MB)
Oct 18 09:39:07 it-etch kernel: sdb: Write Protect is off
Oct 18 09:39:07 it-etch kernel:  sdb: sdb1
Oct 18 09:39:07 it-etch kernel: sd 5:0:0:0: Attached scsi removable disk sdb
Oct 18 09:39:07 it-etch kernel: sd 5:0:0:0: Attached scsi generic sg1 type 0
Code:
it-etch:~# mount

/dev/sdb1 on /media/usbdisk type vfat (rw,noexec,nosuid,nodev,quiet,shortname=mixed,uid=1000,gid=1000,umask=077,iocharset=utf8)
Did you try a simple modprobe command for your missing storage module ?
modprobe usb_storage

Also curious, when you are looking in the modules directory it said "debian:/lib/modules/2.4.27-2-386/kernel/drivers/usb#" ? Are you still running a 2.4 kernel ???? (uname -a) I only have 2.6 kernels available on my Etch system so I think you are looking in a modules directory that is left over from Sarge, prior to your upgrade. If not you may want to consider upgrading your kernel at this point..
 
Old 10-18-2007, 11:31 AM   #12
MartyJay
Member
 
Registered: Oct 2005
Location: Newmarket, On
Distribution: Debian Squeeze
Posts: 55

Original Poster
Rep: Reputation: 15
Smile Yes! I love simple solutions..

Perfect, thanks farslayer!

modprobe usb-storage did the trick. Got it to load automaticaaly thanks to another post of yours! Thanks again.

By the way, I tried to upgrade the kernel, but that just made matters worse, I tried kernel 2.6.23 with these instructions; http://www.howtoforge.com/kernel_com...on_debian_etch, and, while everything else seemed to work, there was no USB at all. The USB key didn't even light up when I plugged it in. Maybe I'll try again.
 
Old 10-18-2007, 02:36 PM   #13
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
2.6.23 isn't an etch kernel either, 2.6.18 is the latest etch kernel in the repositories..


aptitude update
aptitude install linux-image-2.6.18-5-686


should be all that is required to upgrade to the most recent etch kernel.

for a version beyond that you would be using a kernel from backports, testing, unstable, or compiling your own.
 
  


Reply



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
USB Key Drive Won't Mount In Etch pfe1223 Debian 19 10-30-2007 10:27 AM
Debian etch live installation on USB Memory key. jaisuvyas Debian 1 07-19-2007 03:26 PM
How do I mount a USB key using a Live CD? jonrpick Linux - Software 2 03-18-2007 08:31 PM
How do I mount a USB key? invictus Linux - Newbie 9 01-01-2004 04:41 PM
Trying to mount USB MP3 storage key (128Mb) hamster Linux - Hardware 5 04-06-2003 07:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 10:30 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration