USB NAS (EXT4) accessable through Samba but not Filezilla

Post new topic   Reply to topic    DD-WRT Forum Index -> Atheros WiSOC based Hardware
Author Message
Acumen
DD-WRT User


Joined: 15 Nov 2014
Posts: 221

PostPosted: Mon Nov 17, 2014 9:23    Post subject: USB NAS (EXT4) accessable through Samba but not Filezilla Reply with quote
Hi all,

Since my topic was closed in 'DD-WRT Forum Forum Index -> General Questions' for no given reason, I guess a mod thought of it as being device specific.
It is not, if you ask me. I just mentioned my Router to inform everyone as good as possible. Never the less, based in my assumption I post it in the device specific section and hope to find an answer to the problem.

I am running a Netgear WNDR4300 with DD-WRT v24-sp2 (03/25/13) std. Since I need some energy efficient FTP storage, I decided to use the NAS functionality of my router. So I inserted an 16GB usb stick that I formatted to ext4 on Ubuntu 14 and mounted it at the Services -> USB tab.

Quote:
--- /dev/sda
Block device, size 15.31 GiB (16441481728 bytes)
DOS/MBR partition map
Partition 1: 15.31 GiB (16441449472 bytes, 32112206 sectors from 63, bootable)
Type 0x83 (Linux)
Ext4 file system
Volume name "NetGearNAS"
UUID C9E564EF-D2AC-42F5-84D0-54598E894186 (DCE, v4)
Last mounted at "/tmp/mnt/sda_part1"
Volume size 15.31 GiB (16441446400 bytes, 4014025 blocks of 4 KiB)
Status: Mounted on /mnt

Next I enabled the ProFTPD pretty straight forward, using the /mnt as file directory, allowing write access and am using the password list for Authentication.
I experience no difficulties in connecting with Filezilla, but am not able to open the sda_part1 directory.
Quote:
Command: CWD sda_part1
Response: 550 sda_part1: No such file or directory
Error: Failed to retrieve directory listing

When I share the directory with Samba it all works fine, but I need FTP access. I noticed the difference in the path I was able to choose between Samba and FTP, but do not thing that is the problem. I even tried a chmod 777 at "/tmp/mnt/sda_part1" but that was no success either. Without the usb stick mounted, I am able to use the FTP server without a problem, so I believe the problem lies in accessing the usb storage.

In addition to the original text, I was told today that it might have something to do with my running Windows 8.1. To be honest, i doubt it is. Never the less, I will have a go from Ubuntu this evening just to make sure it is not a Windows 8.1 issue. I will post an update this evening about my Ubuntu results. Earlier tests where done with Filezilla 3.9.0.6 in case it is of any importance.

Anyway, I am pretty much stuck at the moment and hoping someone is able to point me in the right direction.

- Acumen
Sponsor
Mile-Lile
DD-WRT Guru


Joined: 24 Feb 2013
Posts: 1634
Location: Belgrade

PostPosted: Mon Nov 17, 2014 10:19    Post subject: Reply with quote
It is very hard to troubleshoot your problem since you are using buils which is more then year and a half old... and there were so many fixes since than. ProFTPd and NAS and Samba share works very good for me on 11/11/2014 build 25309... And everything with few click from GUI... with couple of partititions (linux swap, 2xext3 for jffs ond opt and ntfs for data)... although I didnt tried with ext4...
Acumen
DD-WRT User


Joined: 15 Nov 2014
Posts: 221

PostPosted: Mon Nov 17, 2014 18:36    Post subject: Reply with quote
Mile-Lile, thanks for your reply.
I installed this version march 15th this year. A quick peek at the Router Database does not show a more recent software version.



With a little search I have found another version here: https://secure.dd-wrt.com/forum/viewtopic.php?t=256512

How can I check if there is another (stable) version or what the latest available version is?

Meanwhile, as promised, the test result from Ubuntu:
Quote:

ftp> cd sda_part1
550 sda_part1: No such file or directory
Acumen
DD-WRT User


Joined: 15 Nov 2014
Posts: 221

PostPosted: Mon Nov 17, 2014 18:54    Post subject: Reply with quote
I have found a couple of post and have a check on a stable version. Thanks for the implicit message about a more recent version.
Mile-Lile
DD-WRT Guru


Joined: 24 Feb 2013
Posts: 1634
Location: Belgrade

PostPosted: Mon Nov 17, 2014 18:54    Post subject: Reply with quote
ftp://ftp.dd-wrt.com/betas/2014/
Acumen
DD-WRT User


Joined: 15 Nov 2014
Posts: 221

PostPosted: Mon Nov 17, 2014 19:45    Post subject: Reply with quote
Mile-Lile wrote:
ftp://ftp.dd-wrt.com/betas/2014/

I found it indeed, thanks.

Just installed ftp://ftp.dd-wrt.com/betas/2014/11-11-2014-r25309/netgear-wndr4300/ and FTP works flawless and has a nicer user management too.
Let's hope the build is stable. Have multiple VLans, firewall rules, scheduled Guestnetworks and more.

Time will tell. For now, problem solved!
Mile-Lile
DD-WRT Guru


Joined: 24 Feb 2013
Posts: 1634
Location: Belgrade

PostPosted: Tue Nov 18, 2014 8:59    Post subject: Reply with quote
After testing it, please post some comments about it in http://www.dd-wrt.com/phpBB2/viewtopic.php?t=276182&start=90&sid=d923f1aad8fd21b531d341a8f2a0cad0
this way you will help people that have unit like yours...
Acumen
DD-WRT User


Joined: 15 Nov 2014
Posts: 221

PostPosted: Tue Nov 18, 2014 22:14    Post subject: Reply with quote
Correction. I missed the fact that the FTP was using the local storage and not the USB. The USB is not powered in the November 11th version.
Mile-Lile
DD-WRT Guru


Joined: 24 Feb 2013
Posts: 1634
Location: Belgrade

PostPosted: Wed Nov 19, 2014 6:43    Post subject: Reply with quote
you can write bugreport here
Acumen
DD-WRT User


Joined: 15 Nov 2014
Posts: 221

PostPosted: Thu Nov 20, 2014 11:14    Post subject: Reply with quote
I did (just yet).

Thinking... I am not that much into Linux, but i believe that line C tells the story*.

Code:
> cat /sys/kernel/debug/usb/devices

T:  Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=480  MxCh= 1
B:  Alloc=  0/800 us ( 0%), #Int=  0, #Iso=  0
D:  Ver= 2.00 Cls=09(hub  ) Sub=00 Prot=01 MxPS=64 #Cfgs=  1
P:  Vendor=1d6b ProdID=0002 Rev= 3.10
S:  Manufacturer=Linux 3.10.59 ehci_hcd
S:  Product=Atheros AR91xx built-in EHCI controller
S:  SerialNumber=platform
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=  0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   4 Ivl=256ms

So the max power of the active setting is 0 mAmp. According to the specs USB 2.0 needs 100mA. The question is now, how to do so. Anyone?

* https://www.kernel.org/doc/Documentation/usb/proc_usb_info.txt
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Atheros WiSOC 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 cannot attach files in this forum
You cannot download files in this forum