macsat.com OpenWrt and ASUS WL Forum
January 08, 2009, 14:44:19 PM
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
: Back to
macsat.com
Home
Help
Search
Login
Register
macsat.com OpenWrt and ASUS WL Forum
>
OpenWrt (White Russian)
>
OpenWRT
>
USB storage on WL-500g premium
Pages: [
1
]
Go Down
« previous
next »
Print
Author
Topic: USB storage on WL-500g premium (Read 1531 times)
0 Members and 1 Guest are viewing this topic.
radko
Newbie
Offline
Posts: 10
USB storage on WL-500g premium
«
on:
March 05, 2007, 23:41:59 PM »
Hello
Regarding
Activating USB And setting up Printing and Mounting an external USB Storage Device tutorial
what i have to write in script /etc/init.d/S11mount to mount 3 partitions at mine router during boot because i don' understand comment line "Be sure to change the MOUNT_DEVICE0 statement to whatever your device might be (usb disk, usb flash memory, ide harddrive or whatever!).".
1 is swap 500M
2 is ext3 1Gb
3 is ext3 73Gb
I am not familiar with linux.
When I write in Putty
ls -l /dev/d*
I have got following response:
root@OpenWrt:~$ ls -l /dev/d*
lr-xr-xr-x 1 root root 31 Jan 1 1970 disc0 -> ../scsi/host0/bus0/target0/lun0
and also please do some explain about hdparm.
Now I have s11mount scrip looking
#!/bin/sh
#
# macsat.com mount script
#
# Activate swap
swapon /dev/scsi/host0/bus0/target0/lun0/part1
# Which device needs to be mounted?
mount /dev/scsi/host0/bus0/target0/lun0/part2 /opt
mount /dev/scsi/host0/bus0/target0/lun0/part3 /tmp/harddisk
i=0
while [ $i -le 30 ]
do
if [ -d /opt/etc ]
then
break
fi
sleep 1
i=`expr $i + 1`
done
but after boot partitions are not mounted.
«
Last Edit: March 06, 2007, 07:44:16 AM by radko
»
Logged
macsat
Administrator
Sr. Member
Offline
Posts: 1,104
Re: USB storage on WL-500g premium
«
Reply #1 on:
March 06, 2007, 08:47:12 AM »
hdparm is for setting different parameters to IDE connected drives. It is not relevant here :-)
Did you create the ext3 filesystem with mke2fs to create the filesystem, or how did you do it?
Could you give me output of:
Code:
fdisk -l
Logged
radko
Newbie
Offline
Posts: 10
Re: USB storage on WL-500g premium
«
Reply #2 on:
March 06, 2007, 10:07:18 AM »
Thanks for fast reaction.
Now all 3 partitions are mount during boot I forget made mount point for third partition (I am so stupid).
But sometimes usb2 storage isn't recognize after reboot. I don't knew why. Something wrong with hardware?
Anyway thanks for help
Logged
macsat
Administrator
Sr. Member
Offline
Posts: 1,104
Re: USB storage on WL-500g premium
«
Reply #3 on:
March 06, 2007, 11:21:15 AM »
It could be that when you connect the disk and then connect the power to the router the usb ports dosnt have enough power to actually find the disk.
When you see the problem, try to login with ssh and do a : reboot
If the disk is mounted as it should upon startup, it is almost for sure a USB-Power issue.
I've seen reports that using a powered USB HUB between the router and the disk resolves this issue.
I'm using a Maxtor OneTouch III here, and have no problem with my WL-500G Premium. With my old WL-500G Deluxe I did see the issues though.
Logged
Pages: [
1
]
Go Up
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
ASUS WL 500-g WL-500gx WL-300g and WL-HDD help
-----------------------------
=> Misc. Talk
=> Talk about macsat.com
-----------------------------
Oleg's Firmware
-----------------------------
=> Oleg's Firmware
=> Tutorials
-----------------------------
OpenWrt (White Russian)
-----------------------------
=> OpenWRT
=> DD-WRT
=> Tutorials
-----------------------------
OpenWrt Kamikaze
-----------------------------
=> Firmware
=> Tutorials
-----------------------------
SMC EZ Connect Storage (SMCWAPS-G), Micronica MGB100 Wi-Fi Hard Disk, Level One WAP-0007 and compatible
-----------------------------
=> Firmware
Loading...