HDD read write error

I have WD green hdd (4TB logical512/physical4096) inside wndr4700, with ext4 filesystem, the filesystem works good with computer, but when i use with wndr4700 it has few error, such as when i do "ls -l" it take too much time, copying to hdd over wifi halts after few sec or min.

note: i am using usb3 port as WAN usb modem.

can anyone help me

can this be a case
from github by @chunkeey

WIFI/WLAN Electromagnetic interference can confuse and damage the HDD

Due to the close proximity between the hard drive, the WIFI and the antennas, the electromagnetic interference of the WIFI can confuse and damage the HDD. If you hear a clicking noise once any of the wifi chips is enabled, you should immediately limit the tx power. This may not effect everyone, because some Regulatory Bodies limit the tx power by law. So check if you have set the right country code/regdomain too.

but my hdd is sata hdd internal, i have selected country as US

Is there any way to limit USB3 to USB2 ?

How to monitor HDD statistics, such as temp, spin, smart etc

Use a USB2 hub.

IN WNDR4700, all are usb3, 2xUSB3

Is there any documentation or toolkit is there, for hdd inspection, I think it could be temperature with cause error

found packages smartmontools smartd

root@XXXX47XX:~# smartctl -i /dev/sda 
smartctl 6.5 2016-05-07 r4318 [ppc-linux-4.4.89] (localbuild)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:     Seagate Desktop HDD.15
Device Model:     ST4000DM000-1F2168
Serial Number:    XX00XXN0
LU WWN Device Id: 5 012a50 082g2facd
Firmware Version: CC54
User Capacity:    4,000,787,030,016 bytes [4.00 TB]
Sector Sizes:     512 bytes logical, 4096 bytes physical
Rotation Rate:    5900 rpm
Form Factor:      3.5 inches
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   ACS-2, ACS-3 T13/2161-D revision 3b
SATA Version is:  SATA 3.1, 6.0 Gb/s (current: 3.0 Gb/s)
Local Time is:    Mon Oct 16 23:52:37 2017 IST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

root@XXXX47XX:~# smartctl -H /dev/sda
smartctl 6.5 2016-05-07 r4318 [ppc-linux-4.4.89] (localbuild)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED
Please note the following marginal Attributes:
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
184 End-to-End_Error        0x0032   080   080   099    Old_age   Always   FAILING_NOW 20

root@XXXX47XX:~# smartctl -c /dev/sda
smartctl 6.5 2016-05-07 r4318 [ppc-linux-4.4.89] (localbuild)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF READ SMART DATA SECTION ===
General SMART Values:
Offline data collection status:  (0x00)	Offline data collection activity
					was never started.
					Auto Offline Data Collection: Disabled.
Self-test execution status:      (   0)	The previous self-test routine completed
					without error or no self-test has ever 
					been run.
Total time to complete Offline 
data collection: 		(  148) seconds.
Offline data collection
capabilities: 			 (0x73) SMART execute Offline immediate.
					Auto Offline data collection on/off support.
					Suspend Offline collection upon new
					command.
					No Offline surface scan supported.
					Self-test supported.
					Conveyance Self-test supported.
					Selective Self-test supported.
SMART capabilities:            (0x0003)	Saves SMART data before entering
					power-saving mode.
					Supports SMART auto save timer.
Error logging capability:        (0x01)	Error logging supported.
					General Purpose Logging supported.
Short self-test routine 
recommended polling time: 	 (   1) minutes.
Extended self-test routine
recommended polling time: 	 ( 518) minutes.
Conveyance self-test routine
recommended polling time: 	 (   2) minutes.
SCT capabilities: 	       (0x1085)	SCT Status supported.

root@XXXX47XX:~# smartctl -t short /dev/sda
smartctl 6.5 2016-05-07 r4318 [ppc-linux-4.4.89] (localbuild)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF OFFLINE IMMEDIATE AND SELF-TEST SECTION ===
Sending command: "Execute SMART Short self-test routine immediately in off-line mode".
Drive command "Execute SMART Short self-test routine immediately in off-line mode" successful.
Testing has begun.
Please wait 1 minutes for test to complete.
Test will complete after Tue Oct 17 00:07:07 2017

Use smartctl -X to abort test.
root@XXXX47XX:~# smartctl -l selftest /dev/sda
smartctl 6.5 2016-05-07 r4318 [ppc-linux-4.4.89] (localbuild)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF READ SMART DATA SECTION ===
SMART Self-test log structure revision number 1
Num  Test_Description    Status                  Remaining  LifeTime(hours)  LBA_of_first_error
# 1  Short offline       Completed without error       00%     17328         -

found it, it looks like some bug or improper samba settings, reset setting it working ok. Earlier after 5 min of HDD operation, the copy to or from HDD dont work. Now no problem.