Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4485

Troubleshooting • RPi5 - External USB drive not working and clicking.

$
0
0
Hi,

I'm planning to use RPi5(8GB version) as NAS server. My setup is as following:
  1. RPi5 - 8GB
  2. Official Cooler
  3. M.2 HAT from 52Pi
  4. Metal case from 52Pi
  5. WD Red 4TB NVMe M.2 SSD
  6. 25W Power supply
I have installed latest version of official distro, based on Debian 12 BookWorm, apt update && apt upgrade && reboot, so I'm on latest version of everything. And all works fine until I want to connect brand new External USB HDD(WD Elements 5TB). When it is connected, USB HDD starts to do clicking sound, and is not properly recognized. In dmesg output I can always see disk is detected, but sometimes it fails to detect partition layout(that is default that came from factory with this drive), sometimes it detects layout(/dev/sda1 appears), but can't really work with that.

When I plug same external USB drive to Windows computer, I have no problems, I can see content of the drive. When I plug it into the OrangePI device(Linux) that I have nearby, then it is also properly detected and I can mount disk and use it. Here is how dmesg output looks like on OrangePi:

Code:

[779545.368778] usb 2-1: new high-speed USB device number 2 using ehci-platform[779545.527198] usb 2-1: New USB device found, idVendor=1058, idProduct=2620, bcdDevice=10.23[779545.527247] usb 2-1: New USB device strings: Mfr=2, Product=3, SerialNumber=1[779545.527276] usb 2-1: Product: Elements 2620[779545.527299] usb 2-1: Manufacturer: Western Digital[779545.527321] usb 2-1: SerialNumber: 575838324443335030523150[779545.528888] usb-storage 2-1:1.0: USB Mass Storage device detected[779545.534862] scsi host0: usb-storage 2-1:1.0[779545.630750] usbcore: registered new interface driver uas[779546.558441] scsi 0:0:0:0: Direct-Access     WD       Elements 2620    1023 PQ: 0 ANSI: 6[779546.559076] sd 0:0:0:0: Attached scsi generic sg0 type 0[779546.563317] sd 0:0:0:0: [sda] Spinning up disk...[779547.580817] .....ready[779551.677980] sd 0:0:0:0: [sda] Very big device. Trying to use READ CAPACITY(16).[779551.678496] sd 0:0:0:0: [sda] 9767475200 512-byte logical blocks: (5.00 TB/4.55 TiB)[779551.678527] sd 0:0:0:0: [sda] 4096-byte physical blocks[779551.679724] sd 0:0:0:0: [sda] Write Protect is off[779551.679754] sd 0:0:0:0: [sda] Mode Sense: 47 00 10 08[779551.681017] sd 0:0:0:0: [sda] No Caching mode page found[779551.681047] sd 0:0:0:0: [sda] Assuming drive cache: write through[779551.979527]  sda: sda1[779551.980063] sd 0:0:0:0: [sda] Attached SCSI diskroot@opi:~# lsblkNAME         MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTSsda            8:0    0   4.5T  0 disk└─sda1         8:1    0   4.5T  0 part
And this is the same disk in RPi5:

Code:

[ 1871.406868] usb 2-1: new SuperSpeed USB device number 3 using xhci-hcd[ 1871.433997] usb 2-1: New USB device found, idVendor=1058, idProduct=2620, bcdDevice=10.23[ 1871.434003] usb 2-1: New USB device strings: Mfr=2, Product=3, SerialNumber=1[ 1871.434007] usb 2-1: Product: Elements 2620[ 1871.434010] usb 2-1: Manufacturer: Western Digital[ 1871.434012] usb 2-1: SerialNumber: 575838324443335030523150[ 1871.439827] usb-storage 2-1:1.0: USB Mass Storage device detected[ 1871.439970] scsi host0: usb-storage 2-1:1.0[ 1872.451677] scsi 0:0:0:0: Direct-Access     WD       Elements 2620    1023 PQ: 0 ANSI: 6[ 1872.451992] scsi 0:0:0:0: Attached scsi generic sg0 type 0[ 1872.455909] sd 0:0:0:0: [sda] Spinning up disk...[ 1873.474837] ..................................................................................................not responding...[ 1972.944023] sd 0:0:0:0: [sda] Very big device. Trying to use READ CAPACITY(16).[ 1979.845601] sd 0:0:0:0: [sda] 9767475200 512-byte logical blocks: (5.00 TB/4.55 TiB)[ 1979.845607] sd 0:0:0:0: [sda] 4096-byte physical blocks[ 1979.846093] sd 0:0:0:0: [sda] Write Protect is off[ 1979.846097] sd 0:0:0:0: [sda] Mode Sense: 47 00 10 08[ 1979.846593] sd 0:0:0:0: [sda] No Caching mode page found[ 1979.846596] sd 0:0:0:0: [sda] Assuming drive cache: write through[ 1979.849717] sd 0:0:0:0: [sda] Spinning up disk...[ 1980.866904] ..................................................................................................not responding...[ 2264.134695] sd 0:0:0:0: [sda] tag#0 timing out command, waited 180s[ 2264.134705] sd 0:0:0:0: [sda] tag#0 UNKNOWN(0x2003) Result: hostbyte=0x00 driverbyte=DRIVER_OK cmd_age=181s[ 2264.134709] sd 0:0:0:0: [sda] tag#0 Sense Key : 0x2 [current][ 2264.134712] sd 0:0:0:0: [sda] tag#0 ASC=0x4 ASCQ=0x1[ 2264.134716] sd 0:0:0:0: [sda] tag#0 CDB: opcode=0x88 88 00 00 00 00 00 00 00 00 00 00 00 00 20 00 00[ 2264.134719] I/O error, dev sda, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 2[ 2264.134724] Buffer I/O error on dev sda, logical block 0, async page read^Croot@nas:/home/lukas# lsblkNAME        MAJ:MIN RM  SIZE RO TYPE MOUNTPOINTSsda           8:0    0  4.5T  0 diskmmcblk0     179:0    0 59.7G  0 disk├─mmcblk0p1 179:1    0  512M  0 part /boot/firmware└─mmcblk0p2 179:2    0 59.2G  0 part /nvme0n1     259:0    0  3.6T  0 diskroot@nas:/home/lukas#
I was thinking that probably my 25W PSU is not strong enough(but it has PD3.0 certification), so I have connected it to the 96W USB-C charger that I have from my MacBook but result was the same. So I think it is not power related problem, I'm running it as headless without any displays, so power consumption should be minimal, only external device is this USB disk and NVMe disk+hat. I have tried all 4 USB ports on RPi5, but all of them had same symptoms.

Is there any settings that can help here? Or did anyone faced same issue?

Statistics: Posted by coRp — Mon Jun 10, 2024 7:38 pm — Replies 2 — Views 56



Viewing all articles
Browse latest Browse all 4485

Trending Articles