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  Next
Author Message
kjbuente
DD-WRT User


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

PostPosted: Tue Dec 02, 2008 6:27    Post subject: Reply with quote
okay do this...

cd /jffs
rm -rf * (or clean jffs via webgui)
ipkg update (you may need to reboot router for it to work with out errors)
ipkg install e2fsprogs swap-utils
wget http://downloads.betaserver.org/ddwrt/scripts/begin-here.startup
chmod +x begin-here.startup
wget http://downloads.betaserver.org/ddwrt/scripts/hdd-check.sh
chmod +x hdd-check.sh
sh begin-here.startup
cd /mnt
ls (you want to make sure that your partition mounted here. So look for a folder called lost+found. If it not there then we need to find out why).
mkdir scripts
mkdir logs
mkdir shares
cd scripts
wget http://downloads.betaserver.org/ddwrt/scripts/boot.startup
chmod +x boot.startup
wget http://downloads.betaserver.org/ddwrt/scripts/firewall.sh
chmod +x firewall.sh
wget http://downloads.betaserver.org/ddwrt/scripts/optware-install.sh
chmod +x optware-install.sh
wget http://downloads.betaserver.org/ddwrt/scripts/ad-block.sh
chmod +x ad-block.sh
ls /opt (Were making sure that this mounted as well by checking to see if lost+found is there. If not then we need to find out why).
sh optware-install.sh
cd /opt
ls (You should see more folders now from the last ls you ran)
cd etc
wget http://downloads.betaserver.org/ddwrt/scripts/profile
/opt/bin/ipkg-opt update
/opt/bin/ipkg-opt install xinetd samba2
/opt/etc/init.d/S80samba start
/opt/etc/init.d/S10xinetd start

Point your browser to http://192.168.1.1:901 and configure swat. you want to create a new share and point it to /mnt/share. After that you should access the share from your windows machine.

You should not be able to "sh /jffs/begin-here.startup to commands in the webgui and save it as a startup script. So when you reboot the router, it runs everything for us automaticly.

If you get any errors or problems, let me know where you ran into them.
Sponsor
emersonvier
DD-WRT Novice


Joined: 16 Jun 2008
Posts: 35
Location: Sao Paulo, Brazil

PostPosted: Tue Dec 02, 2008 11:08    Post subject: Reply with quote
Please check, I use "rm -rf" not work and I try "clean jffs via webgui" show the same error



DD-WRT v24 mini (c) 2008 NewMedia-NET GmbH
Release: 11/30/08 (SVN revision: 11028)

DD-WRT login: root
Password:
==========================================================

____ ___ __ ______ _____ ____ _ _
| _ \| _ \ \ \ / / _ \_ _| __ _|___ \| || |
|| | || ||____\ \ /\ / /| |_) || | \ \ / / __) | || |_
||_| ||_||_____\ V V / | _ < | | \ V / / __/|__ _|
|___/|___/ \_/\_/ |_| \_\|_| \_/ |_____| |_|

DD-WRT v24-sp2
http://www.dd-wrt.com

==========================================================


BusyBox v1.12.2 (2008-11-30 15:16:53 CET) built-in shell (ash)
Enter 'help' for a list of built-in commands.

root@DD-WRT:~# cd /jffs
root@DD-WRT:/jffs# ls
root@DD-WRT:/jffs# ipkg update
Downloading http://downloads.openwrt.org/whiterussian/packages/Packages ...
Connecting to downloads.openwrt.org (195.56.146.238:80)
ipkg_download: ERROR: Failed to retrieve http://downloads.openwrt.org/whiterussian/packages/Packages, returning
ipkg_update: Error downloading http://downloads.openwrt.org/whiterussian/packages/Packages to /jffs/usr/lib/ipkg/lists/whiterussian
Downloading http://downloads.openwrt.org/whiterussian/packages/non-free/Packages ...
Connecting to downloads.openwrt.org (195.56.146.238:80)
ipkg_download: ERROR: Failed to retrieve http://downloads.openwrt.org/whiterussian/packages/non-free/Packages, returning t
ipkg_update: Error downloading http://downloads.openwrt.org/whiterussian/packages/non-free/Packages to /jffs/usr/lib/ipkg/lists/non-free
Downloading http://downloads.openwrt.org/backports/rc5/Packages ...
Connecting to downloads.openwrt.org (195.56.146.238:80)
ipkg_download: ERROR: Failed to retrieve http://downloads.openwrt.org/backports/rc5/Packages, returning t
ipkg_update: Error downloading http://downloads.openwrt.org/backports/rc5/Packages to /jffs/usr/lib/ipkg/lists/backports
root@DD-WRT:/jffs#
emersonvier
DD-WRT Novice


Joined: 16 Jun 2008
Posts: 35
Location: Sao Paulo, Brazil

PostPosted: Tue Dec 02, 2008 12:29    Post subject: Reply with quote
kjbuente wrote:
okay do this...

cd /jffs
rm -rf * (or clean jffs via webgui)
ipkg update (you may need to reboot router for it to work with out errors)
ipkg install e2fsprogs swap-utils
wget http://downloads.betaserver.org/ddwrt/scripts/begin-here.startup
chmod +x begin-here.startup
wget http://downloads.betaserver.org/ddwrt/scripts/hdd-check.sh
chmod +x hdd-check.sh
sh begin-here.startup
cd /mnt
ls (you want to make sure that your partition mounted here. So look for a folder called lost+found. If it not there then we need to find out why).
mkdir scripts
mkdir logs
mkdir shares
cd scripts
wget http://downloads.betaserver.org/ddwrt/scripts/boot.startup
chmod +x boot.startup
wget http://downloads.betaserver.org/ddwrt/scripts/firewall.sh
chmod +x firewall.sh
wget http://downloads.betaserver.org/ddwrt/scripts/optware-install.sh
chmod +x optware-install.sh
wget http://downloads.betaserver.org/ddwrt/scripts/ad-block.sh
chmod +x ad-block.sh
ls /opt (Were making sure that this mounted as well by checking to see if lost+found is there. If not then we need to find out why).
sh optware-install.sh
cd /opt
ls (You should see more folders now from the last ls you ran)
cd etc
wget http://downloads.betaserver.org/ddwrt/scripts/profile
/opt/bin/ipkg-opt update
/opt/bin/ipkg-opt install xinetd samba2
/opt/etc/init.d/S80samba start
/opt/etc/init.d/S10xinetd start

Point your browser to http://192.168.1.1:901 and configure swat. you want to create a new share and point it to /mnt/share. After that you should access the share from your windows machine.

You should not be able to "sh /jffs/begin-here.startup to commands in the webgui and save it as a startup script. So when you reboot the router, it runs everything for us automaticly.

If you get any errors or problems, let me know where you ran into them.


cd /mnt
ls (you want to make sure that your partition mounted here. So look for a folder called lost+found. If it not there then we need to find out why).
I think problem here

root@DD-WRT:/jffs# cd /mnt
root@DD-WRT:/mnt# ls
root@DD-WRT:/mnt#

I change HD to Flash drive 4G, the same problem

EMERSON VIER
kjbuente
DD-WRT User


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

PostPosted: Tue Dec 02, 2008 17:39    Post subject: Reply with quote
Quote:
root@DD-WRT:/jffs# ipkg update
Downloading http://downloads.openwrt.org/whiterussian/packages/Packages ...
Connecting to downloads.openwrt.org (195.56.146.238:80)
ipkg_download: ERROR: Failed to retrieve http://downloads.openwrt.org/whiterussian/packages/Packages, returning
ipkg_update: Error downloading http://downloads.openwrt.org/whiterussian/packages/Packages to /jffs/usr/lib/ipkg/lists/whiterussian
Downloading http://downloads.openwrt.org/whiterussian/packages/non-free/Packages ...
Connecting to downloads.openwrt.org (195.56.146.238:80)
ipkg_download: ERROR: Failed to retrieve http://downloads.openwrt.org/whiterussian/packages/non-free/Packages, returning t
ipkg_update: Error downloading http://downloads.openwrt.org/whiterussian/packages/non-free/Packages to /jffs/usr/lib/ipkg/lists/non-free
Downloading http://downloads.openwrt.org/backports/rc5/Packages ...
Connecting to downloads.openwrt.org (195.56.146.238:80)
ipkg_download: ERROR: Failed to retrieve http://downloads.openwrt.org/backports/rc5/Packages, returning t
ipkg_update: Error downloading http://downloads.openwrt.org/backports/rc5/Packages to /jffs/usr/lib/ipkg/lists/backports
root@DD-WRT:/jffs#


Sometimes completely unplugging my router and let it set for a minute then power it back on will correct this

With the nothing at /mnt. try this...
reboot the router.
mount /dev/scsi/host0/bus0/target0/lun0/part3 /mnt

then run ls again. If nothing is still there. try to make a directory named share. Run ls again and see if it is there, if it is then reboot, mount it again wtih the command above, and run ls. If it is still there, that tells us that it is mounting and everything is working great and we can continue with getting your hard drive shared.
emersonvier
DD-WRT Novice


Joined: 16 Jun 2008
Posts: 35
Location: Sao Paulo, Brazil

PostPosted: Tue Dec 02, 2008 18:01    Post subject: Reply with quote
Now I see the Samba page Laughing

I try make a configuration Laughing


My Steps:

In the web-GUI select: tab: Services -> tab: Services --> section: USB Support
Enable all option, less 2.0


http://www.dd-wrt.com/wiki/index.php/Jffs#Directions_for_.28normal.29_users:_Web_Interface

Directions for (normal) users: using Web-GUI Interface

The steps to enable JFFS through the router web page are very specific. To avoid having to reset and reprogram your router, it's smart to make a backup here of your settings. If you follow these steps exactly, it should not lock up.

1. On the router web page click on Administration.
2. Scroll down until you see JFFS2 Support section.
3. Click Enable JFFS.
4. Click Save.
5. Wait couple seconds, then click Apply.
6. Wait again. Go back to the Enable JFFS section, and enable Clean JFFS.
7. Do not click "Save". Click Apply instead.

The router formats the available space.

8. Wait till you get the web-GUI back, then disable "Clean JFFS" again.
9. Click "Save".
10. It may be wise to Reboot the router, just to make sure

Open Putty


/bin/ipkg update

/bin/ipkg install e2fsprogs swap-utils

cd /jffs

wget http://downloads.betaserver.org/ddwrt/scripts/begin-here.startup
chmod +x begin-here.startup
wget http://downloads.betaserver.org/ddwrt/scripts/hdd-check.sh
chmod +x hdd-check.sh

sh /jffs/begin-here.startup
wait long time

cd /mnt
ls
look for a folder called lost+found

mkdir scripts
mkdir logs
mkdir share
ls
cd \scripts
wget http://downloads.betaserver.org/ddwrt/scripts/boot.startup
chmod +x boot.startup
wget http://downloads.betaserver.org/ddwrt/scripts/firewall.sh
chmod +x firewall.sh
wget http://downloads.betaserver.org/ddwrt/scripts/optware-install.sh
chmod +x optware-install.sh
wget http://downloads.betaserver.org/ddwrt/scripts/ad-block.sh
chmod +x ad-block.sh

ls /opt

sh optware-install.sh

cd /opt
ls
cd etc
wget http://downloads.betaserver.org/ddwrt/scripts/profile
/opt/bin/ipkg-opt update
/opt/bin/ipkg-opt install xinetd samba2
wait a long time

/opt/etc/init.d/S80samba start
/opt/etc/init.d/S10xinetd start


Then in the command section of the webgui (under administration), you want to enter sh /jffs/begin-here.startup and save it as a startup script.


Reboot router

Pointing you web browser to http://192.168.1.1:901
bzzbr
DD-WRT Novice


Joined: 03 Dec 2008
Posts: 3

PostPosted: Wed Dec 03, 2008 0:38    Post subject: Reply with quote
Hi kjbuente & emersonvier.

I tried to follow all steps here and before reboot the router, i got access to SWAT ( 192.168.1.1:901 ) but I notice in STATUS page the service was stopped. I tried several times to start the service, but without success ( I also tried to start it manually from Putty ). Then I rebooted the router and can´t access the SWAT anymore.
In the log subdirectory there is no error and the only thing I did diferent is the partions size, order and type ( i changed the scripts to reflect my configuration ).
Any clue ? Should I restart from flashing the firmware again ( I´m using the DD-WRT v24-sp2 (11/30/0Cool mega(SVN revision 11028M NEWD Eko) and my router is a Linksys 600N v1.1

Any advice is welcome.
Thank you.
kjbuente
DD-WRT User


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

PostPosted: Wed Dec 03, 2008 6:18    Post subject: Reply with quote
With my router, I was not able to use jffs with the mega version of dd-wrt. There was just no room for it.

telnet into the router again and see if the stuff that you put in /jffs is still there. If not, then there was just not enough room for it. If this is the case, use Ekos mini-usb build so you have room for jffs. and start from scratch.

Also look in the /tmp directory. Do you see a usb.log? If so, please post it...
bzzbr
DD-WRT Novice


Joined: 03 Dec 2008
Posts: 3

PostPosted: Wed Dec 03, 2008 11:39    Post subject: Reply with quote
kjbuente,

I will start over with a smaller build but the stuff in /jffs still there. It seems N600 has enough room to hold the MEGA build. in the usb log there is one error :

root@Kamikaze:/tmp# vi usb.log
USB Device Detected, Attempting to mount and run script
Mounting Swap
/jffs/begin-here.startup: line 39: /jffs/sbin/swapon: not found
Checking and mounting /opt
tune2fs 1.38 (30-Jun-2005)
Setting maximal mount count to 20
Setting interval between checks to 0 seconds
Checking and mounting /mnt

Thank You.
emersonvier
DD-WRT Novice


Joined: 16 Jun 2008
Posts: 35
Location: Sao Paulo, Brazil

PostPosted: Wed Dec 03, 2008 21:10    Post subject: Re: WRT350n v1 How configure USB storage Reply with quote
Guys, today I make donate the 12.00Euro to DDWRT.

Thanks for kjbuente for all help.

EMERSON VIER

emersonvier wrote:
I try configure my WRT350n v1 to use my external HD, I read the
http://www.dd-wrt.com/wiki/index.php/USB_storage
But I not sucess Embarassed
I use the v24 sp2, can I help configure this..

I will donate by Paypal 15.00USD to people or to DDWRT for this help.
Sorry my bad english :oops:

Thx Laughing

EMERSON VIER
SKYPE: emersonvier
MSN: emersonvier@hotmail.com
Draconis2941
DD-WRT Novice


Joined: 07 Dec 2008
Posts: 7

PostPosted: Sun Dec 07, 2008 3:15    Post subject: Reply with quote
Apparently my first post didn't take. So... long story short this time. I also have a wrt350n and followed the steps listed by emersonvier above. Most things worked but I swapon never seemed to install and I can't access SWAT thought Samba is running (I can see the tmp directory in my win xp network). Any thoughts ?
kjbuente
DD-WRT User


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

PostPosted: Sun Dec 07, 2008 3:54    Post subject: Reply with quote
@bzzbr
Sorry, I did not see you post till now. Good info to know that you had enough space then.

@Draconis2941 & bzzbr

The reason swap is not working is because I made a typo in the script. I am going to upload the script again with the correction. (I also got the ad-block script working, still not sure if it will update automatically. If it does not update, still worth it IMO).

As far as not getting SWAT to load. Check to see if xinetd is running. You can see it running by running top and look for "/opt/sbin/xinetd" in the right hand side. If it is running, and Samba is running then I would think that it is a browser issue. Clear you history and all that stuff and try again.

Please tell me if you have any errors in /mnt/logs/scripts.log. If you do Post it please.

_________________
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 4:01    Post subject: Reply with quote
Looks like it's not running. I tried starting it manually with "/opt/etc/init.d/S10xinetd start" and still no go. I've found the samba config file and have been playing with that trying to get the directory I want, but i'm having trouble getting it right.
kjbuente
DD-WRT User


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

PostPosted: Sun Dec 07, 2008 4:33    Post subject: Reply with quote
what does "ps | grep xinetd" say after you run it? you should see something like...

Code:
root@WRT350N:~#  ps | grep xinetd
  610 root      1372 S    /opt/sbin/xinetd
root@WRT350N:~#


or do you get this...
Code:

root@WRT350N:~#  ps | grep xinetd
root@WRT350N:~#

_________________
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 4:39    Post subject: Reply with quote
I get:

Code:

root@WRT350N:~#  ps | grep xinetd
root@WRT350N:~#


I'm guessing that means the install didn't take right.
kjbuente
DD-WRT User


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

PostPosted: Sun Dec 07, 2008 4:42    Post subject: Reply with quote
Quote:
I'm guessing that means the install didn't take right.


Yea, I'm thinking it did not intsall possibly. Have you tried to installing it again? (/opt/bin/ipkg-opt install xinetd) Does it say nothing to do? Or does it download and install?

_________________
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!
Goto page Previous  1, 2, 3  Next Display posts from previous:    Page 2 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