WRT350N Storage Link

Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware
Author Message
dbigesby
DD-WRT Novice


Joined: 10 Aug 2007
Posts: 1

PostPosted: Tue Aug 14, 2007 13:23    Post subject: WRT350N Storage Link Reply with quote
How do I use the storage link on the WRT350N router with the DD-WRT v24 firmware?
Sponsor
CaScAdE
DD-WRT Guru


Joined: 18 Jun 2006
Posts: 1110
Location: Kiel (54.4247,10.1721)

PostPosted: Tue Aug 14, 2007 16:19    Post subject: Reply with quote
For USB Support try:
http://www.dd-wrt.com/phpBB2/viewtopic.php?t=17169
For installing Samba:
http://www.dd-wrt.com/wiki/index.php/Optware

With a little customization it will work, no out of the box support right now.

_________________
DD-WRT F.A.Q.

Webcam Kiel
agent4877
DD-WRT Novice


Joined: 01 Aug 2007
Posts: 24

PostPosted: Tue Aug 14, 2007 18:29    Post subject: Reply with quote
I’ve been trying to get this working as well .. this is where I am so far.

1) I used Rekoil's custom build on a Linksys WRT350N (4MB flash)

2) Enabled JFFS and disabled Clean JFFS in Administration -> Management

3) I mounted my USB drive as /mnt ->
mount /dev/scsi/host0/bus0/target0/lun0/part1 /mnt)

4) make the following directories-> mkdir /mnt/jffs
mkdir /mnt/jffs/opt)

5) mount new jffs and opt directories-> mount /mnt/jffs /jffs
mount /mnt/jffs/opt /opt)
now I have 5Gb of JFFS

6) install samba-> cd /tmp

wget http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/samba2_2.2.12-1_mipsel.ipk

ipkg install samba2_2.2.12-1_mipsel.ipk

7) Here is the problem … now I try to run samba - /jffs/opt/etc/init.d/S80samba start
I get the following error

/jffs/opt/etc/init.d/S80samba: /jffs/opt/etc/init.d/S80samba: 17: /opt/sbin/smbd: not found
Starting nmbd:
/jffs/opt/etc/init.d/S80samba: /jffs/opt/etc/init.d/S80samba: 19: /opt/sbin/nmbd: not found

also if I try to run /opt/sbin/smbd or /opt/sbin/nmbd manually I get -sh: /opt/sbin/smbd: not found or -sh: /opt/sbin/nmbd: not found

the executables do exist in those directories and have the correct permissions
/opt/sbin # ls -al
drwxr-xr-x 2 root root 32768 Aug 13 12:25 .
drwxr-xr-x 11 root root 32768 Aug 13 12:25 ..
-rwxr-xr-x 1 root root 321936 Jan 19 2007 ldconfig
-rwxr-xr-x 1 root root 875512 Jul 25 05:04 nmbd
-rwxr-xr-x 1 root root 2241076 Jul 25 05:04 smbd
-rwxr-xr-x 1 root root 1261616 Jul 25 05:04 swa

does anybody know what I did wrong? Or have any suggestions?
CaScAdE
DD-WRT Guru


Joined: 18 Jun 2006
Posts: 1110
Location: Kiel (54.4247,10.1721)

PostPosted: Tue Aug 14, 2007 20:23    Post subject: Reply with quote
did you skip
mount -o bind /jffs/opt /opt
?

_________________
DD-WRT F.A.Q.

Webcam Kiel
agent4877
DD-WRT Novice


Joined: 01 Aug 2007
Posts: 24

PostPosted: Tue Aug 14, 2007 20:48    Post subject: Reply with quote
no i didn't skip it .. but one thing to note is i couldn't
mount -o bind /dev/scsi/host0/bus0/target0/lun0/part1 /mnt ... i had to mount /dev/scsi/host0/bus0/target0/lun0/part1 /mnt
CaScAdE
DD-WRT Guru


Joined: 18 Jun 2006
Posts: 1110
Location: Kiel (54.4247,10.1721)

PostPosted: Tue Aug 14, 2007 21:15    Post subject: Reply with quote
hmm...

where did you install all the packages to?

you need to have some stuff in
/opt/lib
and so to get it working. that is why you need the bind mentioned in the wiki.
you have to mount the drive that way. but afterwards you have to bind it to /opt

_________________
DD-WRT F.A.Q.

Webcam Kiel
Rekoil
DD-WRT User


Joined: 13 Jun 2007
Posts: 234

PostPosted: Tue Aug 14, 2007 22:40    Post subject: Reply with quote
@agent4877,

The WRT350N has 8mb flash ;)

Run "mount /dev/scsi/host0/bus0/target0/lun0/part1 /opt" and the errors will go away, then after that run "mount -o bind /opt /jffs/opt".

_________________
Asus RT-AC66U - DD-WRT build 23083
agent4877
DD-WRT Novice


Joined: 01 Aug 2007
Posts: 24

PostPosted: Wed Aug 15, 2007 17:11    Post subject: Reply with quote
that isn't work either Crying or Very sad .. has anybody been able to get this working? is so can you please provide detailed steps .. thankx in advance
CaScAdE
DD-WRT Guru


Joined: 18 Jun 2006
Posts: 1110
Location: Kiel (54.4247,10.1721)

PostPosted: Thu Aug 16, 2007 3:33    Post subject: Reply with quote
Actually you messed around a lot with your directory mounting here and there... In the end the stuff is not accesible at /opt/sbin/nmbd and stuff...
Hard to explain as I am not a native english speaker, sorry...

In the german forum I posted how I did it... without ipkg and without jffs...

http://www.dd-wrt.com/phpBB2/viewtopic.php?p=103092#103092

I know it is german, but you only need the parts between the lines in red... and the commands are the same in english Very Happy
This could help you to get the point, hopefully...

_________________
DD-WRT F.A.Q.

Webcam Kiel
agent4877
DD-WRT Novice


Joined: 01 Aug 2007
Posts: 24

PostPosted: Thu Aug 16, 2007 13:22    Post subject: Reply with quote
It's still not working for me. Could it be because my drive is not initally empy? after I mount to /opt and go though the steps above I get

Code:
 /opt # ls
11-07-2007   bin          etc          sbin         var
29-07-2007   d.s          lib          share
Thumbs.db    desktop.ini  man          usr


I have extra directories and files i.e. 11-07-2007, 29-07-2007, d.s, Thumbs.db and desktop.ini

should I format the harddrive? if so how should I do it?
CaScAdE
DD-WRT Guru


Joined: 18 Jun 2006
Posts: 1110
Location: Kiel (54.4247,10.1721)

PostPosted: Thu Aug 16, 2007 19:54    Post subject: Reply with quote
plug it to your normal pc and format it with an ext2 filesystem?

since you have Thumbs.db on it I guess it is NTFS or vfat...

_________________
DD-WRT F.A.Q.

Webcam Kiel
agent4877
DD-WRT Novice


Joined: 01 Aug 2007
Posts: 24

PostPosted: Fri Aug 17, 2007 23:37    Post subject: Reply with quote
IT WORKS! Thank you!!! .. the problem was it needs to been formatted in ext2 or ext3 .. should have figured.
ebrusher
DD-WRT Novice


Joined: 04 Aug 2007
Posts: 25

PostPosted: Sat Aug 18, 2007 14:24    Post subject: Reply with quote
Can you share exactly what you did to get the storage to run. Did you place commands in the gui or telnet.

Did you make a startup script. I am new to linux and just want to make sure I make the right commands in the right place.

Thanks for your time.
agent4877
DD-WRT Novice


Joined: 01 Aug 2007
Posts: 24

PostPosted: Mon Aug 20, 2007 14:08    Post subject: Reply with quote
ebrusher wrote:
Can you share exactly what you did to get the storage to run. Did you place commands in the gui or telnet.

Did you make a startup script. I am new to linux and just want to make sure I make the right commands in the right place.

Thanks for your time.


The commands are all in telnet .. I did not use any startup script for samba and everything is listed above
Display posts from previous:    Page 1 of 1
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