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?
Login with username, password and session length
News: Back to macsat.com
 
   Home   Help Search Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: USB storage on WL-500g premium  (Read 1531 times)
0 Members and 1 Guest are viewing this topic.
radko
Newbie
*
Offline Offline

Posts: 10


View Profile
« 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 Offline

Posts: 1,104



View Profile
« 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 Offline

Posts: 10


View Profile
« 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 Offline

Posts: 1,104



View Profile
« 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  
 
Jump to:  

English Steel 1.6 © Saxon North Technologies
Powered by MySQL Powered by PHP Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!
Page created in 0.142 seconds with 24 queries.