PDA

View Full Version : wl-500g prem cant find ibook usb hd after reboot


ExitJudas
21-10-2007, 18:54
title says it all. I had a good setup running with oleg bios and the HD set up based on the tutorial. had wizd running smoothly. after moving my router/hd setup and turning it on again, the router refuses to find the usb hd. I've tried both usb ports, resetting router, then plugging hd in, and any other combination of connecting them before/after/turned on or off.

when running post-boot (from the tutorial) manually through ssh, i get this:


mount: Mounting /dev/discs/disc0/part2 on /opt failed: No such file or directory
mount: Mounting /dev/discs/disc0/part3 on /opt/share/data failed: No such file or directory

which i guess means it can't see the HD :D

does anyone have any suggestions?

thanks

newbiefan
21-10-2007, 20:49
Can you perform a "mount" and post the result?
Further "ls /proc/scsi"
then a "ls /dev/discs"
and if a /dev/discs/disc0 exists a
"ls /dev/discs/disc0"

When /proc/scsi shows something like usb-storage-0 hotplug is working and the device is detected.
Then it is important to see any storage-device as disc0, disc1 aso.
But when a disc0 is found, it doesn't mean that there is a valid partition.
a ls /dev/discs/disc0 should show you at least "part1" up to "partx",
depending to the amount of partitions.

This allows you to check out that the router is working.
If HDD is not detected, then just use a simple USB-Stick, Cardreader or anything else
in order to check out a proper working of router or HDD.

ExitJudas
21-10-2007, 21:26
nope. there is no /proc/scsi on my router, no /dev/discs,. there is a /proc/ and a /dev/ though. I tried putting the usb HD directly in my computer. The computer doesn't recognize it as new hardware for some reason, although it pops up as a disc in the administration - > disc administration application. very weird. it looks more and more like a disc failure of some sort? still weird that the disc admin app. in windows can see all partitions on the disc but does not recognize it as "new hardware".

newbiefan
21-10-2007, 21:48
Do you have a stick, cardreader or other usb-hdd?
Just to be sure, that your router-configuration is working proper.

Maybe, that you have to change a bit your post-boot.

Regarding windows: which kind of partition is on your disc?
VFAT, NTFS, Ext2, Ext3
I'm asking this silly question, because windows can't detect a linux partition.
For a comprehensive check, I would suggest any kind of partition-manager.

ExitJudas
21-10-2007, 21:54
Do you have a stick, cardreader or other usb-hdd?
Just to be sure, that your router-configuration is working proper.

Maybe, that you have to change a bit your post-boot.

Regarding windows: which kind of partition is on your disc?
VFAT, NTFS, Ext2, Ext3
I'm asking this silly question, because windows can't detect a linux partition.
For a comprehensive check, I would suggest any kind of partition-manager.

The setup has worked just fine for appr. 3 months, and i have rebooted both hd and router several times, which the setup recovered from automatically. the disc is ext2 formatted and i have an ext2 volume manager on windows, which, until now, could read the disc. when i plug the disc into my windows vista system, it wont recognize it anymore, but it WILL find it in the hard disc administration application. the ext2 file manager also wont find it.

the router does not find it either.


this is my post-boot:

#!/bin/sh
dropbear
#Wait for /opt to mount
mount /dev/discs/disc0/part2 /opt
mount /dev/discs/disc0/part3 /opt/share/data

i=0
while [ $i -le 30 ]
do
if [ -d /opt/etc ]
then
break
fi
sleep 1
i=`expr $i + 1`
done

# Activate swap
swapon /dev/discs/disc0/part1

# Run all active services - active means starts with S
/opt/etc/init.d/rc.unslung
~
- post-boot 1/22 4%

It looks more and more like a drive problem to me....

newbiefan
21-10-2007, 22:07
Well, have a closer look for the first lines (if dev - insmod)!

Then, I strongly suggest to optimize your post-boot.

Here is my post-boot, you can take the parts which you need.

http://wl500gp.lima-city.de/wl500gp/config/post-boot.txt

As I see, insmod is missing!!
Just change your post-boot with vi (hope you know how to do it)
store it again and perform
flashfs save && flashfs commit && flashfs enable && reboot
to store it (hopefully) forever into your flash.

Have fun again!

ExitJudas
22-10-2007, 18:49
amazing. it worked! the drive still doesnt want to be detected in vista, like before but adding the thingy to post-boot solved the problem. huzzah! thanks man.

newbiefan
22-10-2007, 19:58
You are welcome anytime!
Glad to hear your system works.

Regarding Vista: several solutions should be available here, just search a bit.

Newbiefan