OpenWrt Forum Archive

Topic: Problem mouting a USB key on a WL500gp

The content of this topic has been archived on 19 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hello everyone

I have a problem mounting a USB key on an ASUS wl500g premium running on Kamikaze 8.09. The device is recognized by the router as it is shown below :

hub.c: new USB device 01:03.2-1, assigned address 2
scsi0 : SCSI emulation for USB Mass Storage devices
  Vendor:           Model: USB DISK Pro      Rev: PMAP
  Type:   Direct-Access                      ANSI SCSI revision: 02
  Vendor:           Model: USB DISK Pro      Rev: PMAP
  Type:   Direct-Access                      ANSI SCSI revision: 02
Attached scsi removable disk sda at scsi0, channel 0, id 0, lun 0
Attached scsi removable disk sdb at scsi0, channel 0, id 0, lun 1
SCSI device sda: 2011136 512-byte hdwr sectors (1030 MB)
sda: Write Protect is off
Partition check:
/dev/scsi/host0/bus0/target0/lun0: p1
SCSI device sdb: 4096 512-byte hdwr sectors (2 MB)
sdb: Write Protect is off
/dev/scsi/host0/bus0/target0/lun1: p1
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 2

However, I cannot mount it since it doesn't seem to found the device it detected a few seconds ago :

root@OpenWrt:~# mount -t vfat /dev/scsi/host0/bus0/target0/lun0/part1  /mnt/
mount: mounting /dev/scsi/host0/bus0/target0/lun0/part1 on /mnt/ failed: No such device
root@OpenWrt:~# mount -t vfat /dev/scsi/host0/bus0/target0/lun1/part1  /mnt/
mount: mounting /dev/scsi/host0/bus0/target0/lun1/part1 on /mnt/ failed: No such device

Here are the packages installed. I checked them and I don't seem to miss an important one :

root@OpenWrt:~# opkg list_installed
base-files-brcm-2.4 - 14-r14549 -
bridge - 1.0.6-1 -
busybox - 1.11.2-2 -
dnsmasq - 2.46-1 -
dropbear - 0.51-2 -
firewall - 1-1 -
glib1 - 1.2.10-1 -
haserl - 0.9.24-1 -
ip - 2.6.25-1 -
iptables - 1.3.8-4 -
iptables-mod-conntrack - 1.3.8-4 -
iptables-mod-extra - 1.3.8-4 -
iptables-mod-imq - 1.3.8-4 -
iptables-mod-nat - 1.3.8-4 -
iptables-utils - 1.3.8-4 -
kernel - 2.4.35.4-brcm-2.4-1 -
kmod-brcm-wl - 2.4.35.4+4.150.10.5.3-brcm-2.4-2 -
kmod-diag - 2.4.35.4-brcm-2.4-4 -
kmod-fs-ext2 - 2.4.35.4-brcm-2.4-1 -
kmod-fs-ext3 - 2.4.35.4-brcm-2.4-1 -
kmod-fs-msdos - 2.4.35.4-brcm-2.4-1 -
kmod-fs-vfat - 2.4.35.4-brcm-2.4-1 -
kmod-ipt-conntrack - 2.4.35.4-brcm-2.4-1 -
kmod-ipt-core - 2.4.35.4-brcm-2.4-1 -
kmod-ipt-extra - 2.4.35.4-brcm-2.4-1 -
kmod-ipt-imq - 2.4.35.4-brcm-2.4-1 -
kmod-ipt-nat - 2.4.35.4-brcm-2.4-1 -
kmod-ipt-nathelper - 2.4.35.4-brcm-2.4-1 -
kmod-loop - 2.4.35.4-brcm-2.4-1 -
kmod-nls-cp850 - 2.4.35.4-brcm-2.4-1 -
kmod-nls-utf8 - 2.4.35.4-brcm-2.4-1 -
kmod-ppp - 2.4.35.4-brcm-2.4-1 -
kmod-pppoe - 2.4.35.4-brcm-2.4-1 -
kmod-scsi-core - 2.4.35.4-brcm-2.4-1 -
kmod-switch - 2.4.35.4-brcm-2.4-1 -
kmod-usb-core - 2.4.35.4-brcm-2.4-1 -
kmod-usb-ohci - 2.4.35.4-brcm-2.4-1 -
kmod-usb-storage - 2.4.35.4-brcm-2.4-1 -
kmod-usb-uhci - 2.4.35.4-brcm-2.4-1 -
kmod-usb2 - 2.4.35.4-brcm-2.4-1 -
kmod-wlcompat - 2.4.35.4+4.150.10.5.3-brcm-2.4-2 -
libelf - 0.8.10-1 -
libgcc - 3.4.6-14 -
libncurses - 5.6-1 -
libnetsnmp - 5.1.2-2.3 -
libpcap - 0.9.8-1 -
libpthread - 0.9.29-14 -
libuci - 0.7.3-1 -
mc - 4.6.1-2 -
mtd - 8 -
nas - 4.150.10.5.3-2 -
nvram - 1 -
opkg - 4564-3 -
ppp - 2.4.3-10 -
ppp-mod-pppoe - 2.4.3-10 -
snmpd - 5.1.2-2.3 -
tc - 2.6.25-1 -
uci - 0.7.3-1 -
uclibc - 0.9.29-14 -
webif - 0.3-4709 -
wireless-tools - 29-2 -
wlc - 4.150.10.5.3-2 -

The usb key cannot be the cause of the problem, since I detect it on the same router running on White Russian 0.9.
I thought it could be the format type, but I can assure it has been formatted as fat, and it is confirmed when running with the white russian machine.

The re-installation of the firwmare on the asus didn't change anything. I'm seriously out of solutions and I begin to fear it is just a small mistake I would have missed.
I didn't find anything related on the forum.
Does anybody have any idea?

Thank you in advance.

The magic for me came with
opkg install kmod-nls-cp437 kmod-nls-iso8859-1

If that doesn't work provide output from lsusb (opkg install usbutils).

Than you for your answer. Unfortunately, installing those 2 packages didn't change anything, I get the same message when I try to mount the stick.

Lsusb provides me with this :

root@OpenWrt:~# lsusb
Bus 004 Device 001: ID 0000:0000
Bus 004 Device 003: ID 13fe:1e21 Kingston Technology Company Inc.
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 001: ID 0000:0000

Which seems to prove the device is recognized by the router.

I also tried with other usb keys, but I got the same results.

(Last edited by Kirby on 26 May 2009, 09:58)

This worked for me just now with an NSLU2 (ixp4xx).  I flashed the stock image (dated 15 Feb) from here:

http://downloads.openwrt.org/kamikaze/8 … uashfs.bin

I did "opkg update" and "opkg install kmod-usb-storage kmod-fs-vfat kmod-usb2"

I actually did those one at a time and only after the kmod-usb2 did I get an "sda: sda1" from dmesg.  But no drive mounted.  I rebooted and got the dmesg message, "FAT: codepage cp437 not found".  I did

opkg install kmod-nls-cp437

I got the dmesg message, "FAT: codepage iso8859-1 not found".  I did

opkg install kmod-nls-iso8859-1

There were then no dmesg errors, and df gave me

/dev/sda1             15642560   2150432  13492128  14% /mnt/usbdrive

"ls /mnt/usbdrive" showed my files.

Thank you for your advices. As you can see in my log, there is no ask for any missing package. I tried to install the packages you mentionned (cp437 and kmod-nls-iso8859-1), but that didn't change anything. Am I suposed to load a module after installing those?

Anyway, mounting a usb key is not a priority as I can tranfer files through ftp. Thanks for your help though.

The discussion might have continued from here.