Copy big file to samba shared disk may cause router dies

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


Joined: 31 Mar 2021
Posts: 1

PostPosted: Wed Mar 31, 2021 10:19    Post subject: Copy big file to samba shared disk may cause router dies Reply with quote
Problem : If you link your usb-hdd(500g filesystem:exFAT) to ddwrt router and enable samba. Later, copy big file(2gb +) to samba shared disk from pc via local network, your router dies (disconnect and cannot open router config page) and windows will show 0x8007003b error until reboot your router Sad

Reason: Searched a lot and I read an article here here ,now I confirm this problem was caused by SAMBA source code and filesystem.

Solution: Use NTFS or Ext... filesystem rather than FAT FAT32 exFAT.

Suggestion for Developer: Please Fix this Problem...

Very Happy
Sponsor
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12915
Location: Netherlands

PostPosted: Wed Mar 31, 2021 10:46    Post subject: Reply with quote
Welcome to the forum

Please note the forum guidelines

To get the best out of DDWRT and the forum read the forum guidelines with helpful pointers:
https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087

If you have not already read the forum guidelines, please do !!

Always state build number and router model.

Unfortunately ksmbd (the samba client) is a WIP

But wel documented bugs can be reported as outlined in the forum guidelines

_________________
Routers:Netgear R7000, R6400v1, R6400v2, EA6900 (XvortexCFE), E2000, E1200v1, WRT54GS v1.
Install guide R6400v2, R6700v3,XR300:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800/XR500: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Forum Guide Lines (important read):https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 14245
Location: Texas, USA

PostPosted: Wed Mar 31, 2021 13:20    Post subject: Reply with quote
No router model or build number information. Please correct your post or add ALL pertinent information to this thread. Thank you.
_________________
"Life is but a fleeting moment, a vapor that vanishes quickly; All is vanity"
Contribute To DD-WRT
Pogo - A minimal level of ability is expected and needed...
DD-WRT Releases 2023 (PolitePol)
DD-WRT Releases 2023 (RSS Everything)

----------------------
Linux User #377467 counter.li.org / linuxcounter.net
Make WiFi Great Again
DD-WRT Novice


Joined: 21 Mar 2021
Posts: 5
Location: Palm Beach, U.S.A.

PostPosted: Wed Mar 31, 2021 14:52    Post subject: Reply with quote
From what I've read samba is kind of a broken thing on DD-WRT and I have problems with it too. As they say 'Welcome to the suck". At least you can connect and somewhat use samba though.. If i bring up a samba share my router reboots instantly. It's a shame because it's otherwise brilliant firmware.
_________________
Computer Networking is my main hobby.
About ~15 various routers/gateways spanning 3 zip codes and 4 locations running a mix of DD-WRT, OpenWrt, Fresh-Tomato, Merlin, Johnsfork & Padavan.
flood404
DD-WRT User


Joined: 18 Dec 2013
Posts: 336

PostPosted: Thu Apr 01, 2021 11:33    Post subject: Re: Copy big file to samba shared disk may cause router dies Reply with quote
wangshuo0407 wrote:
Problem : If you link your usb-hdd(500g filesystem:exFAT) to ddwrt router and enable samba. Later, copy big file(2gb +) to samba shared disk from pc via local network, your router dies (disconnect and cannot open router config page) and windows will show 0x8007003b error until reboot your router Sad

Reason: Searched a lot and I read an article here here ,now I confirm this problem was caused by SAMBA source code and filesystem.

Solution: Use NTFS or Ext... filesystem rather than FAT FAT32 exFAT.


The developer can't fix filesystem limitations. FAT is old filesystem. FAT16 had severe limitations on file size. The 64 cluster size was limited to 4GB per file. FAT32 was limited in 4GB too. Not to mention it was very easy to corrupt too since it was not a journaled filesystem.

exFAT is optimum for Flash drives and other flash cards and sticks. But DD-WRT may not work well since it is a Microsoft filesystem that might need some work.

I would never use FAT or FAT32 unless I had to.

NTFS was slow on Linux several years ago and it has been better in recent years. It is always being worked on. This has a huge file size limit that I have not heard anyone hit yet so far.

EXT 3 and 4 is preferred because both are journaled filesystems and are better at not fragmenting also it is a native to Linux. The problem is using the EXT3 and EXT4 formatted drives on a windows computer which is possible if you install a EXT3 and EXT4 filesystem drivers to access those drives in windows.
mwchang
DD-WRT Guru


Joined: 26 Mar 2013
Posts: 1858
Location: Hung Hom, Hong Kong

PostPosted: Thu Apr 01, 2021 14:22    Post subject: Re: Copy big file to samba shared disk may cause router dies Reply with quote
wangshuo0407 wrote:
Problem : If you link your usb-hdd(500g filesystem:exFAT) to ddwrt router and enable samba. Later, copy big file(2gb +) to samba shared disk from pc via local network, your router dies (disconnect and cannot open router config page) and windows will show 0x8007003b error until reboot your router Sad

I encountered the same problem and my USB drive was ext4! The router didn't die, but Samba was not responsive.

I was merely copying lots of MP3 files to a Samba public share, average file size about 5 M-bytes only.

I haven't re-tested this with the latest rebuild 46329. I suspect it's buffering issue, not entirely the fault of Samba.

And router processors as well as USB chips are just too limited, slow compared to desktop CPUs from Intel and AMD.


_________________
Router: Asus RT-N18U (rev. A1)

Drink, Blink, Stretch! Live long and prosper! May the Force and farces be with you!

Facebook: https://www.facebook.com/changmanwai
Website: https://sites.google.com/site/changmw
SETI@Home profile: http://setiathome.berkeley.edu/view_profile.php?userid=211832
GitHub: https://github.com/changmw/changmw
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