Hi everyone, I just got here and my mybook live duo installed openwrt, but the writing speed is very slow:
root@MyBookLiveDuo:/mnt/Data/dlna# time dd if=/dev/zero of=./tmpfile bs=1M count=1024
1024+0 records in
1024+0 records out
real 1m 45.14s
user 0m 0.02s
sys 0m 11.03s
9.7M/s
Then remove the configuration 'async,noatime,nodiratime' from the configuration file /etc/config/fstab
root@MyBookLiveDuo:/mnt/Data/dlna# time dd if=/dev/zero of=./tmpfile bs=1M count=1024
1024+0 records in
1024+0 records out
real 2m 11.90s
user 0m 0.01s
sys 0m 12.21s
After deploying the 22.3.5 version many times, I tried to use rsync to copy movies from windows to /mnt/Data, but all failed, the system did not respond, and the address of mbl could be pinged, Luci could not be opened, and the root password prompt could not Log in. After doing dd many times, I found that 22.3.5 can no longer be used, so I chose 18.06.2 version. This version will at least not dd the image. But writing to the file under 18.06.2 also puts the system into read-only mode or becomes unresponsive. The rsync speed is less than 4M/s, and mbl not responding when the transmission speed reaches 5M/s.
My judgment is the problem caused by the writing speed of the hard disk. Just to mention a word, the hard disk and mbl have been stored for many years, and they were only recently taken out to play.
system and environment:
DISTRIB_ID='OpenWrt'
DISTRIB_RELEASE='18.06.2'
DISTRIB_REVISION='r7676-cddd7b4c77'
DISTRIB_TARGET='apm821xx/sata'
DISTRIB_ARCH='powerpc_464fp'
DISTRIB_DESCRIPTION='OpenWrt 18.06.2 r7676-cddd7b4c77'
DISTRIB_TAINTS=''
root@MyBookLiveDuo:/mnt/Data/dlna# df -Th
Filesystem Type Size Used Available Use% Mounted on
/dev/root ext4 252.0M 24.2M 222.7M 10% /
tmpfs tmpfs 124.1M 724.0K 123.4M 1% /tmp
/dev/sda1 ext4 8.0M 3.1M 4.5M 40% /boot
tmpfs tmpfs 512.0K 0 512.0K 0% /dev
/dev/sda4 ext4 2.7T 16.6G 2.5T 1% /mnt/Data
root@MyBookLiveDuo:/mnt/Data/dlna# uci show fstab
fstab.@global[0]=global
fstab.@global[0].anon_swap='0'
fstab.@global[0].anon_mount='0'
fstab.@global[0].auto_swap='1'
fstab.@global[0].auto_mount='1'
fstab.@global[0].delay_root='5'
fstab.@global[0].check_fs='1'
fstab.@mount[0]=mount
fstab.@mount[0].target='/mnt/sda1'
fstab.@mount[0].uuid='0301359a-aef8-4245-9fef-faabf4f9e960'
fstab.@mount[0].enabled='0'
fstab.@mount[1]=mount
fstab.@mount[1].target='/mnt/sda2'
fstab.@mount[1].uuid='57f8f4bc-abf4-655f-bf67-946fc0f9f25b'
fstab.@mount[1].enabled='0'
fstab.@swap[0]=swap
fstab.@swap[0].enabled='1'
fstab.@swap[0].device='rw,sync,noatime'
fstab.@mount[2]=mount
fstab.@mount[2].target='/mnt/Data'
fstab.@mount[2].device='/dev/sda4'
fstab.@mount[2].enabled='1'
fstab.@mount[2].enabled_fsck='1'
fstab.@mount[2].options='rw,async,noatime,nodiratime'
root@MyBookLiveDuo:/mnt/Data/dlna# hdparm -Tt /dev/sda4
/dev/sda4:
Timing cached reads: 522 MB in 2.00 seconds = 260.93 MB/sec
Timing buffered disk reads: 190 MB in 3.01 seconds = 63.10 MB/sec
root@MyBookLiveDuo:/mnt/Data/dlna# smartctl --all /dev/sda4
smartctl 6.6 2017-11-05 r4594 [ppc-linux-4.14.95] (localbuild)
Copyright (C) 2002-17, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Model Family: Western Digital Red
Device Model: WDC WD30EFRX-68AX9N0
Serial Number: WD-WCC1T1260281
LU WWN Device Id: 5 0014ee 2b3fa1f83
Firmware Version: 80.00A80
User Capacity: 3,000,592,982,016 bytes [3.00 TB]
Sector Sizes: 512 bytes logical, 4096 bytes physical
Device is: In smartctl database [for details use: -P show]
ATA Version is: ACS-2 (minor revision not indicated)
SATA Version is: SATA 3.0, 6.0 Gb/s (current: 3.0 Gb/s)
Local Time is: Sun Aug 6 21:12:28 2023 CST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED
General SMART Values:
Offline data collection status: (0x82) Offline data collection activity
was completed without error.
Auto Offline Data Collection: Enabled.
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: (41040) seconds.
Offline data collection
capabilities: (0x7b) SMART execute Offline immediate.
Auto Offline data collection on/off support.
Suspend Offline collection upon new
command.
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: ( 2) minutes.
Extended self-test routine
recommended polling time: ( 412) minutes.
Conveyance self-test routine
recommended polling time: ( 5) minutes.
SCT capabilities: (0x70b5) SCT Status supported.
SCT Feature Control supported.
SCT Data Table supported.
SMART Attributes Data Structure revision number: 16
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
1 Raw_Read_Error_Rate 0x002f 200 200 051 Pre-fail Always - 299
3 Spin_Up_Time 0x0027 201 176 021 Pre-fail Always - 4908
4 Start_Stop_Count 0x0032 086 086 000 Old_age Always - 14581
5 Reallocated_Sector_Ct 0x0033 171 171 140 Pre-fail Always - 880
7 Seek_Error_Rate 0x002e 182 182 000 Old_age Always - 2972
9 Power_On_Hours 0x0032 073 073 000 Old_age Always - 20103
10 Spin_Retry_Count 0x0032 100 100 000 Old_age Always - 0
11 Calibration_Retry_Count 0x0032 100 100 000 Old_age Always - 0
12 Power_Cycle_Count 0x0032 100 100 000 Old_age Always - 117
192 Power-Off_Retract_Count 0x0032 200 200 000 Old_age Always - 90
193 Load_Cycle_Count 0x0032 001 001 000 Old_age Always - 1033362
194 Temperature_Celsius 0x0022 102 084 000 Old_age Always - 48
196 Reallocated_Event_Count 0x0032 116 116 000 Old_age Always - 84
197 Current_Pending_Sector 0x0032 199 198 000 Old_age Always - 497
198 Offline_Uncorrectable 0x0030 200 200 000 Old_age Offline - 374
199 UDMA_CRC_Error_Count 0x0032 200 200 000 Old_age Always - 1
200 Multi_Zone_Error_Rate 0x0008 188 188 000 Old_age Offline - 4995
SMART Error Log Version: 1
ATA Error Count: 2
CR = Command Register [HEX]
FR = Features Register [HEX]
SC = Sector Count Register [HEX]
SN = Sector Number Register [HEX]
CL = Cylinder Low Register [HEX]
CH = Cylinder High Register [HEX]
DH = Device/Head Register [HEX]
DC = Device Command Register [HEX]
ER = Error register [HEX]
ST = Status register [HEX]
Powered_Up_Time is measured from power on, and printed as
DDd+hh:mm:SS.sss where DD=days, hh=hours, mm=minutes,
SS=sec, and sss=millisec. It "wraps" after 49.710 days.
Error 2 occurred at disk power-on lifetime: 19828 hours (826 days + 4 hours)
When the command that caused the error occurred, the device was active or idle.
After command completion occurred, registers were:
ER ST SC SN CL CH DH
-- -- -- -- -- -- --
40 51 80 00 78 00 e0 Error: UNC 128 sectors at LBA = 0x00007800 = 30720
Commands leading to the command that caused the error were:
CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name
-- -- -- -- -- -- -- -- ---------------- --------------------
c8 00 80 00 78 00 e0 08 00:00:55.561 READ DMA
c8 00 80 00 c8 4c e0 08 00:00:52.459 READ DMA
c8 00 10 70 10 00 e0 08 00:00:51.927 READ DMA
c8 00 10 60 10 00 e0 08 00:00:51.926 READ DMA
c8 00 10 50 10 00 e0 08 00:00:51.926 READ DMA
Error 1 occurred at disk power-on lifetime: 19828 hours (826 days + 4 hours)
When the command that caused the error occurred, the device was active or idle.
After command completion occurred, registers were:
ER ST SC SN CL CH DH
-- -- -- -- -- -- --
40 51 80 18 c8 4c e0 Error: UNC 128 sectors at LBA = 0x004cc818 = 5031960
Commands leading to the command that caused the error were:
CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name
-- -- -- -- -- -- -- -- ---------------- --------------------
c8 00 80 00 c8 4c e0 08 00:00:52.459 READ DMA
c8 00 10 70 10 00 e0 08 00:00:51.927 READ DMA
c8 00 10 60 10 00 e0 08 00:00:51.926 READ DMA
c8 00 10 50 10 00 e0 08 00:00:51.926 READ DMA
c8 00 10 40 10 00 e0 08 00:00:51.926 READ DMA
SMART Self-test log structure revision number 1
Num Test_Description Status Remaining LifeTime(hours) LBA_of_first_error
# 1 Short offline Completed: read failure 40% 20092 2291808
# 2 Short offline Completed without error 00% 3888 -
# 3 Short offline Completed without error 00% 339 -
# 4 Short offline Completed without error 00% 337 -
# 5 Extended offline Aborted by host 90% 255 -
# 6 Short offline Completed without error 00% 255 -
# 7 Short offline Completed without error 00% 228 -
# 8 Short offline Completed without error 00% 199 -
# 9 Extended offline Aborted by host 90% 198 -
#10 Short offline Completed without error 00% 198 -
SMART Selective self-test log data structure revision number 1
SPAN MIN_LBA MAX_LBA CURRENT_TEST_STATUS
1 0 0 Not_testing
2 0 0 Not_testing
3 0 0 Not_testing
4 0 0 Not_testing
5 0 0 Not_testing
Selective self-test flags (0x0):
After scanning selected spans, do NOT read-scan remainder of disk.
If Selective self-test is pending on power-up, resume after 0 minute delay.
The values from the day before yesterday, it looks like it's getting worse:
SMART Attributes Data Structure revision number: 16
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
1 Raw_Read_Error_Rate 0x002f 200 200 051 Pre-fail Always - 296
3 Spin_Up_Time 0x0027 178 176 021 Pre-fail Always - 6083
4 Start_Stop_Count 0x0032 086 086 000 Old_age Always - 14547
5 Reallocated_Sector_Ct 0x0033 189 189 140 Pre-fail Always - 338
7 Seek_Error_Rate 0x002e 194 193 000 Old_age Always - 1075
9 Power_On_Hours 0x0032 073 073 000 Old_age Always - 20092
10 Spin_Retry_Count 0x0032 100 100 000 Old_age Always - 0
11 Calibration_Retry_Count 0x0032 100 253 000 Old_age Always - 0
12 Power_Cycle_Count 0x0032 100 100 000 Old_age Always - 90
192 Power-Off_Retract_Count 0x0032 200 200 000 Old_age Always - 65
193 Load_Cycle_Count 0x0032 001 001 000 Old_age Always - 1033067
194 Temperature_Celsius 0x0022 104 084 000 Old_age Always - 46
196 Reallocated_Event_Count 0x0032 138 138 000 Old_age Always - 62
197 Current_Pending_Sector 0x0032 198 198 000 Old_age Always - 1047
198 Offline_Uncorrectable 0x0030 200 200 000 Old_age Offline - 374
199 UDMA_CRC_Error_Count 0x0032 200 200 000 Old_age Always - 1
200 Multi_Zone_Error_Rate 0x0008 188 188 000 Old_age Offline - 4995