Posted: Wed Mar 31, 2021 10:19 Post subject: Copy big file to samba shared disk may cause router dies
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
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...
Joined: 21 Mar 2021 Posts: 5 Location: Palm Beach, U.S.A.
Posted: Wed Mar 31, 2021 14:52 Post subject:
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.
Posted: Thu Apr 01, 2021 11:33 Post subject: Re: Copy big file to samba shared disk may cause router dies
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
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.
Joined: 26 Mar 2013 Posts: 1858 Location: Hung Hom, Hong Kong
Posted: Thu Apr 01, 2021 14:22 Post subject: Re: Copy big file to samba shared disk may cause router dies
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
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!