OpenWrt Forum Archive

Topic: Asus 500g Deluxe Kamikaze - USB disk not detected on boot

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

Hallo,
I have upgraded to kamikaze yesterday, an all goes fine. I'm using Kamikaze with 2.4 kernel due to wireless issue(have anybody a news about 2.6 kernel availability with broadcom stable WiFi driver ?)

I have configured some packages to use /opt destination, which is a USB external harddisk. it works fine, but...
after restart,  sometime the USB disk is not detected and not mounted. When i unplug it manually and then plug in back, disk is back and abvailable on the /dev/scsi/......../disk(part1) path and can be mounted. All appropriate USB modules are loaded when i try lsmod...

Have anbybody an idea, what's wrong with boot sequence? Because my http server is installed on /opt USB disk, i need to start it immediately after restart, without a manual action.

Thank you very much for your hints and help.

(Last edited by zdenal on 25 Aug 2007, 14:05)

Hmm, seems to nobody has idea how to solve the problem....

And if you rmmod / insmod rather then physically disconnect?

I'm using kamikaze 7.07 (brcm47xx-2.6) firmware on ASUS WL-500Gp, but i can't mount USB devices.
My /dev dir don't exists scsi dir or any similar:

/dev/3-1             /dev/mtdblock2       /dev/ttyS1
/dev/3-2             /dev/mtdblock3       /dev/urandom
/dev/console         /dev/mtdblock4       /dev/usb1
/dev/full            /dev/null            /dev/usb2
/dev/kmem            /dev/port            /dev/usb3
/dev/kmsg            /dev/ppp             /dev/usbdev1.1_ep00
/dev/log             /dev/ptmx            /dev/usbdev1.1_ep81
/dev/mem             /dev/pts/            /dev/usbdev2.1_ep00
/dev/mtd0            /dev/random          /dev/usbdev2.1_ep81
/dev/mtd0ro          /dev/root            /dev/usbdev3.1_ep00
/dev/mtd1            /dev/sda             /dev/usbdev3.1_ep81
/dev/mtd1ro          /dev/sdb             /dev/usbdev3.2_ep00
/dev/mtd2            /dev/sdc             /dev/usbdev3.2_ep01
/dev/mtd2ro          /dev/sdc1            /dev/usbdev3.2_ep82
/dev/mtd3            /dev/sdd             /dev/usbdev3.3_ep00
/dev/mtd3ro          /dev/sde             /dev/usbdev3.3_ep02
/dev/mtd4            /dev/sde1            /dev/usbdev3.3_ep81
/dev/mtd4ro          /dev/shm/            /dev/zero
/dev/mtdblock0       /dev/tty
/dev/mtdblock1       /dev/ttyS0

Installed packages:

kmod-fs-vfat    2.6.22-brcm47xx-1
kmod-nls-base    2.6.22-brcm47xx-1   
kmod-scsi-core    2.6.22-brcm47xx-1   
kmod-usb-core    2.6.22-brcm47xx-1   
kmod-usb-ohci    2.6.22-brcm47xx-1   
kmod-usb-storage    2.6.22-brcm47xx-1   
kmod-usb-uhci    2.6.22-brcm47xx-1   
kmod-usb2    2.6.22-brcm47xx-1

My dmesg important output:

usb 3-2: new high speed USB device using ehci_hcd and address 2
usb 3-2: configuration #1 chosen from 1 choice
scsi0 : SCSI emulation for USB Mass Storage devices
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usb-storage: device found at 2
usb-storage: waiting for device to settle before scanning
scsi 0:0:0:0: Direct-Access     Generic  USB SD Reader    1.00 PQ: 0 ANSI: 0
sd 0:0:0:0: [sda] Attached SCSI removable disk
scsi 0:0:0:1: Direct-Access     Generic  USB CF Reader    1.01 PQ: 0 ANSI: 0
sd 0:0:0:1: [sdb] Attached SCSI removable disk
scsi 0:0:0:2: Direct-Access     Generic  USB SM Reader    1.02 PQ: 0 ANSI: 0
device ath0 entered promiscuous mode
br-lan: port 2(ath0) entering learning state
br-lan: topology change detected, propagating
br-lan: port 2(ath0) entering forwarding state
sd 0:0:0:2: [sdc] 256000 512-byte hardware sectors (131 MB)
sd 0:0:0:2: [sdc] Write Protect is off
sd 0:0:0:2: [sdc] Mode Sense: 03 00 00 00
sd 0:0:0:2: [sdc] Assuming drive cache: write through
sd 0:0:0:2: [sdc] 256000 512-byte hardware sectors (131 MB)
sd 0:0:0:2: [sdc] Write Protect is off
sd 0:0:0:2: [sdc] Mode Sense: 03 00 00 00
sd 0:0:0:2: [sdc] Assuming drive cache: write through
sdc: sdc1
sd 0:0:0:2: [sdc] Attached SCSI removable disk
scsi 0:0:0:3: Direct-Access     Generic  USB MS Reader    1.03 PQ: 0 ANSI: 0
sd 0:0:0:3: [sdd] Attached SCSI removable disk
usb-storage: device scan complete
usb 3-1: new high speed USB device using ehci_hcd and address 3
usb 3-1: configuration #1 chosen from 1 choice
scsi1 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 3
usb-storage: waiting for device to settle before scanning
scsi 1:0:0:0: Direct-Access     USB 2.0  Flash Disk       1100 PQ: 0 ANSI: 0 CC
S
sd 1:0:0:0: [sde] 3963904 512-byte hardware sectors (2030 MB)
sd 1:0:0:0: [sde] Write Protect is off
sd 1:0:0:0: [sde] Mode Sense: 43 00 00 00
sd 1:0:0:0: [sde] Assuming drive cache: write through
sd 1:0:0:0: [sde] 3963904 512-byte hardware sectors (2030 MB)
sd 1:0:0:0: [sde] Write Protect is off
sd 1:0:0:0: [sde] Mode Sense: 43 00 00 00
sd 1:0:0:0: [sde] Assuming drive cache: write through
sde: sde1
sd 1:0:0:0: [sde] Attached SCSI removable disk
usb-storage: device scan complete

What's the problem?

Do you, at any time, instruct Linux to mount the disk? OpenWRT has, to my knowledge, no 'automount' function. So put an entry in your fstab and add a mount command in the custom startup file.

Borromini wrote:

Do you, at any time, instruct Linux to mount the disk? OpenWRT has, to my knowledge, no 'automount' function. So put an entry in your fstab and add a mount command in the custom startup file.

Of course i tried, this is my problem, i don't know what parameters need mount. In http://wiki.openwrt.org/UsbStorageHowto?highlight=(usb) is many mount command with parameters, like:

mount /dev/scsi/host0/bus0/target0/lun0/part1 /mnt

But in my system /dev/scsi don't exists.

And in White Russian not need mount command, it "automounts" every USB devices.

That path is supposed to be the path to your HD/USB stick. It may vary, but it always is under /dev/scsi afaik. So if it's not there, that means it is not recognised.

LaySoft wrote:

I'm using kamikaze 7.07 (brcm47xx-2.6) firmware on ASUS WL-500Gp, but i can't mount USB devices.
My /dev dir don't exists scsi dir or any similar:
What's the problem?

Im having the exact same problem.....its driving me insane....


EDIT: this is more confusing

root@ZPM:/dev# fdisk -l

Disk /dev/sda: 6000 MB, 6000132096 bytes
185 heads, 62 sectors/track, 1021 cylinders
Units = cylinders of 11470 * 512 = 5872640 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1          44      252309   82  Linux swap / Solaris
/dev/sda2              45         219     1003625   83  Linux
/dev/sda3             220        1021     4599470   83  Linux

EUREKA

Ive got some good news kids!

you actually *gasp* have to mount your drives....i know tongue

so what i did was, using a usb drive that i had prepared eariler

swapon /dev/sda1

that fixed my swap......

then from the /mnt directory

mkdir store
mkdir sml
mount /dev/sda2 /mnt/sml
mount /dev/sda3 /mnt/store

yous gotz yo data

(Last edited by microphone on 1 Sep 2007, 20:10)

microphone!

I tried your suggestions:

root@LaySoft:~# fdisk -l

Disk /dev/sda: 2029 MB, 2029518848 bytes
17 heads, 32 sectors/track, 7286 cylinders
Units = cylinders of 544 * 512 = 278528 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1        7287     1981936    b  W95 FAT32
root@LaySoft:~# mount /dev/sda1 /mnt
mount: mounting /dev/sda1 on /mnt failed
root@LaySoft:~# mount /dev/sda /mnt
mount: mounting /dev/sda on /mnt failed
root@LaySoft:~#

Don't works. Which package containts swapon command?

LaySoft:
Based on the dmesg output you posted earlier, I think your USB disk is sde rather than sda, so you will need to adjust the device paths appropriately. It will also depend on what partitions exist on your USB disk.

fdisk will let you view and edit the partitions on the disk.

create a folder in /mnt and the try and mount to that instead of just /mnt....

swapon is built in i think ??? if you use it on a destination that has been formatted as swap it should work...


....i have just installed dd-wrt so i cant test it......i'll reflash back to kam and let you know what happens...

(Last edited by microphone on 4 Sep 2007, 07:59)

My linux guru friend solved the problem:

Need to install kmod-nls-cp437 and kmod-nls-iso8859-1 packages, and everything works now.

what are those packages for? you know for the sake of wrapping up the thread

The discussion might have continued from here.