Posted: Thu Mar 25, 2010 15:50 Post subject: WRT160NL How-To setup FTP nas
You will need an external hdd and a linux computer.
Step 1: Format
On the HDD format 4 partitions in this order:
part1 ext3 2GB name jffs
part2 ext3 2GB name opt
part3 swap 256mb
part4 ext3 Whatever you have left name data
Step 2: Enable USB Support
Click the Services tab and click usb enable everything except usb printing (You can check usb printing if you followed my how-to for it, I have the hdd and printer working through hub without issue.). Apply Settings
Step 3: Set mount at boot.
In the web GUI go to administration>>>commands and paste the following and click save startup.
Code:
sleep 10 && mount /dev/scsi/host0/bus0/target0/lun0/part1 /jffs
sleep 10 && mount /dev/scsi/host0/bus0/target0/lun0/part2 /opt
sleep 10 && mount /dev/scsi/host0/bus0/target0/lun0/part4 /mnt
Step 4: Enable ftp
In the web GUI, click services then click nas. Click enable proftpd, click enable next to allow write, enter user names and passwords, one per line. ex
Code:
jonathon password
Apply settings.
Step 5: Reload the router
Step 6: You can now connect to your usb drive via your internal router ip via your favorite ftp client (mine being windows explorer for this instance)
You can use multiple hard-drives but you will need to deal with the device mappings. Once you get the mappings down you can cheat by adding a symlink to the second drive inside the /mnt folder. But, come on, this thing is so low powered, more than one drive being accessed at once may choke it. I have yet to try to setup 2 usb printers. It is theoretically possible, but you will have to take into account that the device mappings can change dependent upon order your printers are plugged in.
If only I could get samba, swap, and transmission working, this would be one neat little router.
Please note: OPTware and Swap partitions currently DO NOT work on this router. But I'm hopeful so make those partitions anyways. Due to lack of swap if someone can get Transmission installed (I can, but I have yet to compile in the patch to keep it working) it will quickly use up your memory and very likely crash. Dependent on how motivated I am, I may fix the swap issue which in turn would motivate me to fix the transmission issue. Also, I have yet to get any samba install to work correctly, i'll open another thread if I get any of the above working.
Posted: Thu Mar 25, 2010 17:16 Post subject: Speeds
Using WinSCP as my ftp client, I am able to get a constant 10.4 Mbyte/second (Almost maxing out the 100mbit Ethernet). A 1 gig file takes a little over 1.5 minutes to transfer. Not bad if you just want an always on share that doesn't suck the power down like my 12hdd NAS.
Thanks to antidelldude for the posts.
Is there really no way to invoke samba on the wrt160nl ?
Did you get anny new things?
I did also fail up to now to find a package compiled for linux 2.6.24.111, which is used by dd-wrt.
I dumped dd-wrt on that device months ago. After pulling my hair out for a period of time trying to get stuff to work, I came to the realization that dd-wrt doesn't support swap space which made me stop right there. OpenWRT has been humming along for a while now and it only took 15 minutes to get EVERYTHING working. Samba, swap, and transmission.