Wilson Wilson Posted December 3, 2023 Posted December 3, 2023 (edited) Hello, Would this indicate faulty hard drive or USB port are not delivering enough power? [ 1065.076278] sd 0:0:0:0: [sda] Media removed, stopped polling [ 1065.079903] sd 0:0:0:0: [sda] tag#0 device offline or changed [ 1065.089105] I/O error, dev sda, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 2 [ 1065.103432] Buffer I/O error on dev sda, logical block 0, async page read [ 1065.113558] sd 0:0:0:0: [sda] tag#0 device offline or changed [ 1065.122484] I/O error, dev sda, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 2 [ 1065.136786] Buffer I/O error on dev sda, logical block 0, async page read [ 1065.146736] sda: unable to read partition table [ 1065.175822] sd 0:0:0:0: [sda] tag#0 device offline or changed [ 1065.184802] I/O error, dev sda, sector 3906963328 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 2 [ 1065.200348] sd 0:0:0:0: [sda] tag#0 device offline or changed [ 1065.209359] I/O error, dev sda, sector 3906963328 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 2 [ 1065.224418] Buffer I/O error on dev sda, logical block 488370416, async page read [ 1072.228461] sd 0:0:0:0: [sda] tag#0 device offline or changed [ 1072.240759] I/O error, dev sda, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 2 [ 1072.261241] Buffer I/O error on dev sda, logical block 0, async page read [ 1072.274611] sd 0:0:0:0: [sda] tag#0 device offline or changed [ 1072.286654] I/O error, dev sda, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 2 [ 1072.307152] Buffer I/O error on dev sda, logical block 0, async page read [ 1072.320409] sd 0:0:0:0: [sda] tag#0 device offline or changed [ 1072.332393] I/O error, dev sda, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 2 [ 1072.352731] Buffer I/O error on dev sda, logical block 0, async page read Disk in question is WD 2TB. sudo smartctl -a /dev/sda smartctl 7.2 2020-12-30 r5155 [armv7l-linux-6.1.63-current-sunxi] (local build) Copyright (C) 2002-20, Bruce Allen, Christian Franke, www.smartmontools.org === START OF INFORMATION SECTION === Model Family: Western Digital Elements / My Passport (USB, AF) Device Model: WDC WD20NMVW-11EDZS7 Serial Number: WD-WX31A76L1CAV LU WWN Device Id: 5 0014ee 2632f715a Firmware Version: 01.01A01 User Capacity: 2,000,398,934,016 bytes [2.00 TB] Sector Sizes: 512 bytes logical, 4096 bytes physical Rotation Rate: 5200 rpm 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, 3.0 Gb/s (current: 3.0 Gb/s) Local Time is: Sun Dec 3 13:02:06 2023 UTC 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: (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: (37320) 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: (0x7035) 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 - 0 3 Spin_Up_Time 0x0027 223 203 021 Pre-fail Always - 3841 4 Start_Stop_Count 0x0032 098 098 000 Old_age Always - 2567 5 Reallocated_Sector_Ct 0x0033 200 200 140 Pre-fail Always - 0 7 Seek_Error_Rate 0x002e 200 200 000 Old_age Always - 0 9 Power_On_Hours 0x0032 094 094 000 Old_age Always - 4598 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 099 099 000 Old_age Always - 1513 192 Power-Off_Retract_Count 0x0032 200 200 000 Old_age Always - 298 193 Load_Cycle_Count 0x0032 195 195 000 Old_age Always - 16363 194 Temperature_Celsius 0x0022 120 097 000 Old_age Always - 32 196 Reallocated_Event_Count 0x0032 200 200 000 Old_age Always - 0 197 Current_Pending_Sector 0x0032 200 200 000 Old_age Always - 0 198 Offline_Uncorrectable 0x0030 100 253 000 Old_age Offline - 0 199 UDMA_CRC_Error_Count 0x0032 200 200 000 Old_age Always - 0 200 Multi_Zone_Error_Rate 0x0008 100 253 000 Old_age Offline - 0 SMART Error Log Version: 1 No Errors Logged SMART Self-test log structure revision number 1 Num Test_Description Status Remaining LifeTime(hours) LBA_of_first_error # 1 Short offline Aborted by host 70% 4127 - 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. Disk is formatted as NTFS and is working fine on Windows 11 (no errors when connecting). I can mount with sudo mount but when I start copying files system freezes and I have to power off board. Edited December 5, 2023 by Wilson Wilson 0 Quote
Wilson Wilson Posted December 5, 2023 Author Posted December 5, 2023 (edited) Formatting hard drive as NTFS or even ext4 was failing while disk was connected to OPi. I decided to give a try and formatted hard drive in Windows 11 (not quick format). It took hours to complete it but disk seems to be ok. dmesg shows only this harmless error [30191.526088] usb 4-1: new high-speed USB device number 2 using ehci-platform [30191.684736] usb 4-1: New USB device found, idVendor=1058, idProduct=25a1, bcdDevice=10.05 [30191.684776] usb 4-1: New USB device strings: Mfr=2, Product=3, SerialNumber=1 [30191.684799] usb 4-1: Product: Elements 25A1 [30191.684817] usb 4-1: Manufacturer: Western Digital [30191.684835] usb 4-1: SerialNumber: 575833314137364C31434156 [30191.686384] usb-storage 4-1:1.0: USB Mass Storage device detected [30191.706338] usb-storage 4-1:1.0: Quirks match for vid 1058 pid 25a1: 800000 [30191.706696] scsi host1: usb-storage 4-1:1.0 [30192.711428] scsi 1:0:0:0: Direct-Access WD Elements 25A1 1005 PQ: 0 ANSI: 6 [30192.711940] sd 1:0:0:0: Attached scsi generic sg1 type 0 [30192.716883] sd 1:0:0:0: [sdb] Spinning up disk... [30193.734123] .....ready [30197.831192] sd 1:0:0:0: [sdb] 3906963456 512-byte logical blocks: (2.00 TB/1.82 TiB) [30197.832652] sd 1:0:0:0: [sdb] Write Protect is off [30197.832677] sd 1:0:0:0: [sdb] Mode Sense: 53 00 10 08 [30197.834034] sd 1:0:0:0: [sdb] No Caching mode page found [30197.870453] sd 1:0:0:0: [sdb] Assuming drive cache: write through [30198.041029] sdb: sdb1 [30198.044754] sd 1:0:0:0: [sdb] Attached SCSI disk UPDATE: Hard drive started playing up again :-( Looks like it's failing and S.M.A.R.T does not detect it. Edited December 6, 2023 by Wilson Wilson 0 Quote
Wilson Wilson Posted December 8, 2023 Author Posted December 8, 2023 Another update. I suspect faulty board or issues with power supply. HDD just works fine on Windows machine. I'm trying 2TB hard drive without anything other disk plugged in. 0 Quote
Solution Igor Posted December 8, 2023 Solution Posted December 8, 2023 9 minutes ago, Wilson Wilson said: issues with power supply If you don't power it via powered hub, its almost certainly this. Those USB ports are not delivering sufficient power. 1 Quote
Wilson Wilson Posted December 9, 2023 Author Posted December 9, 2023 (edited) It must be then. I almost binned the hard drive thinking it's faulty. Edited December 9, 2023 by Wilson Wilson 0 Quote
Igor Posted December 9, 2023 Posted December 9, 2023 14 minutes ago, Wilson Wilson said: Would you recommend any particular model? https://www.armbian.com/compatible/ Here you can check a selection of compatible devices, usually in some personal / Armbian use. You probably don't need 16 port USB hub which is on that list, but that will certainly work perfectly. If you go for some cheap variants, and most of hubs are a lot cheaper, you will be chasing luck. For my purpose, automated testing of USB devices withing Armbian, I can't use cheap ones. 0 Quote
Roman555 Posted December 10, 2023 Posted December 10, 2023 (edited) 08.12.2023 в 20:27, Wilson Wilson сказал: I suspect faulty board or issues with power supply. HDD just works fine on Windows machine. I'm trying 2TB hard drive without anything other disk plugged in. The board limits power consuption of USB devices using SY6280 chips. It sets 1.1 amper limit for a pair of USB-A connectors. Your WD Elements 25A1 draws upto 0.75A. I agree, the board and the HDD are Ok, but the power supply maybe has a poor quality https://linux-sunxi.org/File:OrangePi_pcplus_schematic_v1.1.pdf Edited December 10, 2023 by Roman555 0 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.