WRT350n v1 How configure USB storage

Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware
Goto page Previous  1, 2, 3
Author Message
Draconis2941
DD-WRT Novice


Joined: 07 Dec 2008
Posts: 7

PostPosted: Sun Dec 07, 2008 5:13    Post subject: Reply with quote
The first re-install wouldn't go. I removed and reinstalled and it still doesn't show under top.

Code:

root@DD-WRT:~# /opt/bin/ipkg-opt install xinetd
Package xinetd (2.3.14-8) installed in /opt/ is up to date.
Nothing to be done
Successfully terminated.
root@DD-WRT:~# /opt/bin/ipkg-opt remove xinetd
Removing package xinetd from /opt/...
Successfully terminated.
root@DD-WRT:~# /opt/bin/ipkg-opt install xinetd
Installing xinetd (2.3.14-8) to /opt/...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/xinetd_2.3.14-8_mipsel.ipk
Configuring xinetd
Warning: the current only_from configuration in /opt/etc/xinetd.conf is
        only_from      = localhost 10.0.0.0/8 172.16.0.0/12 192.168.0.0/16
change to your subnet accordingly and tighten security!
Successfully terminated.
root@DD-WRT:~# /opt/etc/init.d/S10xinetd start
Sponsor
kjbuente
DD-WRT User


Joined: 31 Mar 2007
Posts: 181
Location: /Earth/USA/OH/Zville

PostPosted: Sun Dec 07, 2008 14:08    Post subject: Reply with quote
what version of dd-wrt are you using?
_________________
WRT-350N v1.0; 128MB RAM, WPC600N, Dual USB, Mini+USB+FTP NEWD, CPU@330Mhz, Terk WF-R x3, Serial, external jtag, and working on SD Mod. Running Samba3, Lighttpd, and some Python apps.
WRT-300N v1.1; 128MB Ram, USB1.1, Bricked

ALL FOR SALE!
Draconis2941
DD-WRT Novice


Joined: 07 Dec 2008
Posts: 7

PostPosted: Sun Dec 07, 2008 18:40    Post subject: Reply with quote
I'm on "dd-wrt.v24-11028_NEWD_mini_usb". I got swapon working last night using busy box, but SWAT is still eluding me and I can't access the drive in XP.

-Update-

Ok, still no SWAT but I've managed to cobble together the settings to allow me to access and read from the attached usb drive. I've even managed to install and configure uShare and have streamed files to my ps3. Now I just have to figure out the issue with writing to the share. I can't seem to get a "chmod 777" to stick on the "/mnt" directory, I think that may be part of the problem.
kjbuente
DD-WRT User


Joined: 31 Mar 2007
Posts: 181
Location: /Earth/USA/OH/Zville

PostPosted: Mon Dec 08, 2008 4:16    Post subject: Reply with quote
Well, always been a fan of the CLI anyways. So kudos for figuring the config file. Really not that hard one you get a hang of it. As far as writing to the drive. The only way I could do that is issue a "chmod a+rw /mnt". Never had an issue since.
_________________
WRT-350N v1.0; 128MB RAM, WPC600N, Dual USB, Mini+USB+FTP NEWD, CPU@330Mhz, Terk WF-R x3, Serial, external jtag, and working on SD Mod. Running Samba3, Lighttpd, and some Python apps.
WRT-300N v1.1; 128MB Ram, USB1.1, Bricked

ALL FOR SALE!
Draconis2941
DD-WRT Novice


Joined: 07 Dec 2008
Posts: 7

PostPosted: Mon Dec 08, 2008 4:22    Post subject: Reply with quote
I just managed to get it to work based on a post on an Ubuntu forum. I think there may be some superfluous lines here but I dare not change anything now that it's working.

Code:

#!/bin/sh
(
num=0
# Making sure devices are found then stop after 15 tries
while [ $num -lt 10 ]; do
   if [ -e /dev/scsi/host0/bus0/target0/lun0 ]; then
      echo "USB Device Detected, Attempting to mount and run script"
               


      # Checking Partitions and mountings with /jffs apps
      echo "Checking and mounting /opt"
      tune2fs -i 0 -c 20 /dev/scsi/host0/bus0/target0/lun0/part2
      #e2fsck -p /dev/scsi/host0/bus0/target0/lun0/part2
      mount /dev/scsi/host0/bus0/target0/lun0/part2 /opt

      # Checking and mounting /mnt
      echo "Checking and mounting /mnt"
      #tune2fs -i 0 -c 20 /dev/scsi/host0/bus0/target0/lun0/part1
      #e2fsck -p /dev/scsi/host0/bus0/target0/lun0/part1
      #mount /dev/scsi/host0/bus0/target0/lun0/part1 /mnt
      mount -t vfat -o user,rw,exec,umask=000 /dev/scsi/host0/bus0/target0/lun0/part1 /mnt

      chmod 777 /mnt

                #Mounting swap to save as much ram as possible
      echo "Mounting Swap"
      /opt/bin/busybox swapon dev/scsi/host0/bus0/target0/lun0/part3


      # Calling generic script to prevent writting on /jffs
      sh /opt/scripts/boot.startup
      num=15

   # Attempting to enable USB Device
   else
      echo "Powercycling USB Devices"
      gpio disable 4
      sleep 2
      gpio enable 4
      let num=num+1
      sleep 8
   fi
done
) > /tmp/usb.log 2>&1


Thanks for all the help!
bzzbr
DD-WRT Novice


Joined: 03 Dec 2008
Posts: 3

PostPosted: Mon Dec 08, 2008 16:28    Post subject: Reply with quote
Kjbuente,

Thank You for your help, but I give up. I re-flashed the original linksys firmware.

Thank You again for your support.
kjbuente
DD-WRT User


Joined: 31 Mar 2007
Posts: 181
Location: /Earth/USA/OH/Zville

PostPosted: Mon Dec 08, 2008 17:22    Post subject: Reply with quote
Draconis2941, How big is your /mnt partition? Are you unplugging it from the router and plugging it back into a windows machine? If not, please consider using an Ext3 Partition. This might be why your permissions are not setting. Also, are you sharing the entire /mnt folder? Or a folder inside of that one? I think permissions go out the windows on reboot for root directories, since the permissions have to be saved in the RAM. If you are sharing a folder inside of /mnt (ie /mnt/share), the file permissions will stick since it is not on a read-only filesystem. IMO, if it works, leave it alone. Laughing

bzzbr, Sorry to hear that you had to go back to the stock firmware.

_________________
WRT-350N v1.0; 128MB RAM, WPC600N, Dual USB, Mini+USB+FTP NEWD, CPU@330Mhz, Terk WF-R x3, Serial, external jtag, and working on SD Mod. Running Samba3, Lighttpd, and some Python apps.
WRT-300N v1.1; 128MB Ram, USB1.1, Bricked

ALL FOR SALE!
Draconis2941
DD-WRT Novice


Joined: 07 Dec 2008
Posts: 7

PostPosted: Mon Dec 08, 2008 19:11    Post subject: Reply with quote
With the revised boot script I posted above the permission does stick, and everything seems to be working (except SWAT, but oh well I took care of it by hand). I’ve made a few other modifications to the other scripts as well to accomodate my slightly different partitions. All of the optware and other stuff is running on the ext partition. I've reserverd the Fat32 to just hold files. Here’s how I’ve partitioned my drive:

Part 1: Fat32
Part 2: Ext3
Part 3: linux swap

I do have a reason for sticking with FAT despite its limitations. I’m planning on loading HD video content and 802.11g is not always sufficient bandwidth to stream it. In those cases I want to be able to take the drive and plug it directly into my PS3, which cannot read Ext3 and looks straight to the first partition.

Right now everything is running on a 1Gb flash drive as a test. I’m planning on purchasing a 1Tb drive later to actually host everything. Once everything is working on the flash I plan on partitioning the HDD in a similar manner and then copying over the ext partition from the flash drive.

Now I’m looking for a way to stream the content on the internet, like the one in Tversity if you’re familiar with it.
New User
DD-WRT Novice


Joined: 20 Apr 2007
Posts: 6

PostPosted: Wed Mar 11, 2009 15:39    Post subject: Reply with quote
I am no good at following the thread....

Can somebody just summarize how i can get my USB external hard drive to work with WRT350n router?

I have the dd-wrt 2.4 sp1 mega version installed and that is it.....
MrAlvin
DD-WRT User


Joined: 07 Jan 2007
Posts: 457
Location: Denmark

PostPosted: Wed Mar 11, 2009 21:42    Post subject: Reply with quote
Did you read http://www.dd-wrt.com/wiki/index.php/USB_storage ?

That wiki page has been updated quite a bit since this thread started.
Pops
DD-WRT Novice


Joined: 26 Oct 2008
Posts: 25
Location: So. Cal.

PostPosted: Mon Mar 16, 2009 0:20    Post subject: Reply with quote
I just flashed my 350n v1 with the dd-wrt V24 listed below. I am wanting to use the capabilities to use , USB printer, USB drives,USB Flash drives , etc.
right now I have been trying to setup a 140gb powered USB drive. I am running XP Pro but I do not have any idea about how to format the drive properly can anyone help in this please?

_________________
1x Westell 9100EM15 Rev.B Ver.1.02.00.04,
1x WRT350n v1 DD-WRT V24-sp2 (05/21/09) mega - build 12188M NEWD Eko,
1x CyberPower CP-H720P USB 7 Port Hub,
1x LinkStation Pro Duo 1.0tb
1x WRT54GS v.6 DD-WRT v24-sp2 (01/29/09) micro - build 11514
Goto page Previous  1, 2, 3 Display posts from previous:    Page 3 of 3
Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum