scyle
Posts: 6
Joined: Tue Oct 08, 2019 9:19 pm
Location: Germany

Raspberry Pi 4 + Powered USB Hub + 2,5" SSD not working

Tue Oct 08, 2019 9:54 pm

Hello,

i have an RPi 4 which i do want to use as a NAS. The problem i encounter is that the Pi is most of the time not recognizing my SSD.

If i am lucky everything is recognized looking like this in dmesg:
[ 1125.462594] usb 2-1: new SuperSpeed Gen 1 USB device number 3 using xhci_hcd
[ 1125.497649] usb 2-1: New USB device found, idVendor=05e3, idProduct=0612, bcdDevice=92.26
[ 1125.497665] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 1125.497677] usb 2-1: Product: USB3.1 Hub
[ 1125.497689] usb 2-1: Manufacturer: GenesysLogic
[ 1125.499652] hub 2-1:1.0: USB hub found
[ 1125.500036] hub 2-1:1.0: 4 ports detected
[ 1125.592203] usb 1-1.1: new high-speed USB device number 3 using xhci_hcd
[ 1125.725021] usb 1-1.1: New USB device found, idVendor=05e3, idProduct=0610, bcdDevice=92.26
[ 1125.725035] usb 1-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 1125.725048] usb 1-1.1: Product: USB2.0 Hub
[ 1125.725060] usb 1-1.1: Manufacturer: GenesysLogic
[ 1125.727619] hub 1-1.1:1.0: USB hub found
[ 1125.727969] hub 1-1.1:1.0: 4 ports detected
[ 1126.042187] usb 1-1.1.4: new high-speed USB device number 4 using xhci_hcd
[ 1126.174415] usb 1-1.1.4: New USB device found, idVendor=174c, idProduct=55aa, bcdDevice= 1.00
[ 1126.174430] usb 1-1.1.4: New USB device strings: Mfr=2, Product=3, SerialNumber=1
[ 1126.174442] usb 1-1.1.4: Product: Ugreen Storage Device
[ 1126.174454] usb 1-1.1.4: Manufacturer: Ugreen
[ 1126.174466] usb 1-1.1.4: SerialNumber: 123458DDE098
[ 1126.180909] scsi host1: uas
[ 1126.183643] scsi 1:0:0:0: Direct-Access CT2000MX 500SSD1 0 PQ: 0 ANSI: 6
[ 1126.185733] sd 1:0:0:0: Attached scsi generic sg0 type 0
[ 1126.186869] sd 1:0:0:0: [sdb] 3907029168 512-byte logical blocks: (2.00 TB/1.82 TiB)
[ 1126.186883] sd 1:0:0:0: [sdb] 4096-byte physical blocks
[ 1126.187232] sd 1:0:0:0: [sdb] Write Protect is off
[ 1126.187246] sd 1:0:0:0: [sdb] Mode Sense: 43 00 00 00
[ 1126.188112] sd 1:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[ 1126.188614] sd 1:0:0:0: [sdb] Optimal transfer size 33553920 bytes not a multiple of physical block size (4096 bytes)
[ 1126.196967] sdb: sdb1
[ 1126.201237] sd 1:0:0:0: [sdb] Attached SCSI disk

If i start the Pi with the Hub connected it is not even booting. If i connect the hub + ssd later the dmesg log has error like these
[ 22.411934] usb 1-1.1.4: device descriptor read/64, error -110
[ 22.631636] usb 1-1.1.4: new high-speed USB device number 5 using xhci_hcd
[ 27.771933] usb 1-1.1.4: device descriptor read/64, error -110
[ 43.131962] usb 1-1.1.4: device descriptor read/64, error -110
[ 43.252083] usb 1-1.1-port4: attempt power cycle
[ 43.911648] usb 1-1.1.4: new high-speed USB device number 6 using xhci_hcd
[ 45.864629] usb 1-1.1.4: Device not responding to setup address.
[ 48.034523] usb 1-1.1.4: Device not responding to setup address.
[ 48.251631] usb 1-1.1.4: device not accepting address 6, error -71
[ 48.351646] usb 1-1.1.4: new high-speed USB device number 7 using xhci_hcd
[ 50.304710] usb 1-1.1.4: Device not responding to setup address.
[ 52.474558] usb 1-1.1.4: Device not responding to setup address.
[ 52.691634] usb 1-1.1.4: device not accepting address 7, error -71
[ 52.691977] usb 1-1.1-port4: unable to enumerate USB device

Hardware i use
Any ideas what i could be doing wrong here? Everything works fine if i connect the hub / ssd to Ubuntu Desktop or Windows 10.

scyle
Posts: 6
Joined: Tue Oct 08, 2019 9:19 pm
Location: Germany

Re: Raspberry Pi 4 + Powered USB Hub + 2,5" SSD not working

Sat Oct 12, 2019 2:40 pm

Can i provide any more information that would be helpful to solve this problem?

I read that there are problems with certain active USB Hubs and SSD to SATA Connector cables (/chipsets). Could that maybe be a problem? If so will this be fixed from the RPi side (software update) or do i need a new hub / connector? Is there a list of known working hubs/connectors? I selected the given hub because i saw it being used in a YT Video (https://www.youtube.com/watch?v=O-FfOWdZAQ4) and the hard drive enclosure has a specific chipset (ASM1153E) which i read somewhere would work with the RPi 4.

k-pi
Posts: 930
Joined: Sun Feb 12, 2017 1:46 pm
Location: Upper Hale, Surrey, UK.

Re: Raspberry Pi 4 + Powered USB Hub + 2,5" SSD not working

Sat Oct 12, 2019 5:51 pm

The RPi4 doesn't boot from USB yet, (still waiting for that since launch)........ so you have to start up using a microSD card with the /boot on it, the rest can be on your USB drive.

scyle
Posts: 6
Joined: Tue Oct 08, 2019 9:19 pm
Location: Germany

Re: Raspberry Pi 4 + Powered USB Hub + 2,5" SSD not working

Sat Oct 12, 2019 9:51 pm

Oh i do not want to boot from the SSD! I have a microSD card with raspian on it. I only want to attach the SSD to store all my data.

LTolledo
Posts: 1963
Joined: Sat Mar 17, 2018 7:29 am
Location: Anime Heartland

Re: Raspberry Pi 4 + Powered USB Hub + 2,5" SSD not working

Sat Oct 12, 2019 10:07 pm

is your ssd recognized by Rpi4 if connected directly to the USB3.0 port (not use USB hub)?
if its only 1 (or 2) SSDs, then the RPi's 2x3.0USB ports are sufficient.

well.... I tried connecting my Crucial BX500 SSD to this RPi4B-4G desktop, and it was recognized immediately and mounted properly.
am using Sabrent SATA to USB3.0 adapter on this one....
Last edited by LTolledo on Sat Oct 12, 2019 10:14 pm, edited 1 time in total.
"Don't come to me with 'issues' for I don't know how to deal with those
Come to me with 'problems' and I'll help you find solutions"

Some people be like:
"Help me! Am drowning! But dont you dare touch me nor come near me!"

Andyroo

Re: Raspberry Pi 4 + Powered USB Hub + 2,5" SSD not working

Sat Oct 12, 2019 10:08 pm

What happens if:
1) You plug the drive directly into the USB2?
2) You plug the drive directly into the USB3?

I cannot imagine the SSD needs more power then my old HDD I’ve got running on the 3B+ but

3) What is your power supply?
4) Do you have anything else in the USB ports?

scyle
Posts: 6
Joined: Tue Oct 08, 2019 9:19 pm
Location: Germany

Re: Raspberry Pi 4 + Powered USB Hub + 2,5" SSD not working

Sun Oct 13, 2019 2:42 pm

Thank you for the feedback.

I tried connecting the SSD directly to the USB 3.0 ports but it is not detected (dmesg has no output; sudo fdisk -l does not list any drive and lsusb does not show any device).
If i connect the drive to the USB 2.0 ports it does work. Kindof. I set up samba with a file share (samba config below). I started copying 7gb of files to the drive which worked fine. Then i wanted to playback one of the videos and all of a sudden the drive disconnected (dmesg output below). I retried it with the USB hub (on the same USB 2.0 port) and that seems to work. I was able to copy > 20gb of of data and still playback videos, open documents, etc.

As a power supply i am using the official one (https://www.raspberrypi.org/products/ty ... er-supply/). There are no other devices connected to the RPi. I tried using a USB flash drive on the USB 3 ports and that was detected and i was able to access the files on it. Interesstingly if i connect the USB Hub to the USB 3 Ports and connect the flash drive to the hub the flash drive is also not detected.

Samba config

Code: Select all

/etc/samba/smb.conf
# Global parameters
[global]
        client max protocol = SMB3
        client min protocol = SMB2
        log file = /var/log/samba/log.%m
        logging = file
        map to guest = Bad User
        max log size = 1000
        obey pam restrictions = Yes
        pam password change = Yes
        panic action = /usr/share/samba/panic-action %d
        passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
        passwd program = /usr/bin/passwd %u
        server role = standalone server
        unix password sync = Yes
        usershare allow guests = Yes
        idmap config * : backend = tdb
        map acl inherit = Yes
        vfs objects = acl_xattr


[data-one]
        path = /mnt/data-one
        read only = No
        valid users = @users

dmesg output after SSD disconnect while trying to play video

Code: Select all

[  595.036109] usb 1-1.3: stat urb: status -71
[  595.036176] usb 1-1.3: cmd cmplt err -71
[  595.036445] usb 1-1.3: stat urb: status -71
[  595.036710] usb 1-1.3: cmd cmplt err -71
[  595.184099] usb 1-1.3: USB disconnect, device number 3
[  595.184540] sd 0:0:0:0: [sda] tag#21 uas_zap_pending 0 uas-tag 1 inflight: CMD
[  595.184557] sd 0:0:0:0: [sda] tag#21 CDB: opcode=0x28 28 00 58 53 52 08 00 01 f8 00
[  595.184578] sd 0:0:0:0: [sda] tag#28 uas_zap_pending 0 uas-tag 2 inflight: CMD
[  595.184591] sd 0:0:0:0: [sda] tag#28 CDB: opcode=0x28 28 00 58 53 52 00 00 00 08 00
[  595.184601] sd 0:0:0:0: [sda] tag#21 UNKNOWN(0x2003) Result: hostbyte=0x01 driverbyte=0x00
[  595.184618] sd 0:0:0:0: [sda] tag#21 CDB: opcode=0x28 28 00 58 53 52 08 00 01 f8 00
[  595.184625] sd 0:0:0:0: [sda] tag#28 UNKNOWN(0x2003) Result: hostbyte=0x01 driverbyte=0x00
[  595.184635] print_req_error: I/O error, dev sda, sector 1481855496
[  595.184643] sd 0:0:0:0: [sda] tag#28 CDB: opcode=0x28 28 00 58 53 52 00 00 00 08 00
[  595.184654] print_req_error: I/O error, dev sda, sector 1481855488
[  595.184790] print_req_error: I/O error, dev sda, sector 1481855496
[  595.184828] print_req_error: I/O error, dev sda, sector 1481855488
[  595.188092] print_req_error: I/O error, dev sda, sector 2408
[  595.188110] Buffer I/O error on dev sda1, logical block 45, lost async page write
[  595.188139] print_req_error: I/O error, dev sda, sector 1476397312
[  595.188152] Buffer I/O error on dev sda1, logical block 184549408, lost async page write
[  595.188177] print_req_error: I/O error, dev sda, sector 1488980032
[  595.188189] Buffer I/O error on dev sda1, logical block 186122248, lost async page write
[  595.188209] Buffer I/O error on dev sda1, logical block 186122249, lost async page write
[  595.188230] Buffer I/O error on dev sda1, logical block 186122250, lost async page write
[  595.188254] print_req_error: I/O error, dev sda, sector 1488980224
[  595.188265] Buffer I/O error on dev sda1, logical block 186122272, lost async page write
[  595.192855] print_req_error: I/O error, dev sda, sector 1950620584
[  595.192888] Aborting journal on device sda1-8.
[  595.192949] print_req_error: I/O error, dev sda, sector 1950615552
[  595.192975] Buffer I/O error on dev sda1, logical block 243826688, lost sync page write
[  595.193046] JBD2: Error -5 detected when updating journal superblock for sda1-8.
[  596.978013] sd 0:0:0:0: [sda] Synchronizing SCSI cache
[  597.572632] sd 0:0:0:0: [sda] Synchronize Cache(10) failed: Result: hostbyte=0x07 driverbyte=0x00
[  603.899675] EXT4-fs error (device sda1): __ext4_get_inode_loc:4678: inode #11534355: block 184549409: comm smbd: unable to read itable block
[  603.900736] EXT4-fs error (device sda1): __ext4_get_inode_loc:4678: inode #11534355: block 184549409: comm smbd: unable to read itable block
[  603.900827] EXT4-fs error (device sda1): __ext4_get_inode_loc:4678: inode #11534355: block 184549409: comm smbd: unable to read itable block
[  603.901194] EXT4-fs error (device sda1): __ext4_get_inode_loc:4678: inode #11534337: block 184549408: comm smbd: unable to read itable block
[  603.901373] EXT4-fs error (device sda1): __ext4_get_inode_loc:4678: inode #11534337: block 184549408: comm smbd: unable to read itable block
[  603.901991] EXT4-fs error (device sda1): __ext4_get_inode_loc:4678: inode #11534337: block 184549408: comm smbd: unable to read itable block
[  603.902148] EXT4-fs error (device sda1): __ext4_get_inode_loc:4678: inode #11534337: block 184549408: comm smbd: unable to read itable block
[  603.902354] EXT4-fs error (device sda1): __ext4_get_inode_loc:4678: inode #11534337: block 184549408: comm smbd: unable to read itable block
[  603.902795] EXT4-fs error (device sda1): __ext4_get_inode_loc:4678: inode #11534355: block 184549409: comm smbd: unable to read itable block
[  603.903143] EXT4-fs error (device sda1): __ext4_get_inode_loc:4678: inode #11534355: block 184549409: comm smbd: unable to read itable block
[  609.085727] EXT4-fs error: 11 callbacks suppressed
[  609.085738] EXT4-fs error (device sda1): ext4_find_entry:1455: inode #2: comm smbd: reading directory lblock 0
[  609.085814] EXT4-fs error (device sda1): ext4_find_entry:1455: inode #2: comm smbd: reading directory lblock 0
[  609.129161] EXT4-fs error (device sda1): ext4_find_entry:1455: inode #2: comm smbd: reading directory lblock 0
[  609.129234] EXT4-fs error (device sda1): ext4_find_entry:1455: inode #2: comm smbd: reading directory lblock 0
[  609.135849] EXT4-fs error (device sda1): __ext4_get_inode_loc:4678: inode #11534337: block 184549408: comm smbd: unable to read itable block
[  609.136009] EXT4-fs error (device sda1): __ext4_get_inode_loc:4678: inode #11534337: block 184549408: comm smbd: unable to read itable block
[  609.136175] EXT4-fs error (device sda1): __ext4_get_inode_loc:4678: inode #11534337: block 184549408: comm smbd: unable to read itable block
[  609.136504] EXT4-fs error (device sda1): __ext4_get_inode_loc:4678: inode #11534337: block 184549408: comm smbd: unable to read itable block
[  609.136654] EXT4-fs error (device sda1): __ext4_get_inode_loc:4678: inode #11534337: block 184549408: comm smbd: unable to read itable block
[  609.137070] EXT4-fs error (device sda1): __ext4_get_inode_loc:4678: inode #11534337: block 184549408: comm smbd: unable to read itable block
[  615.966827] EXT4-fs error: 27 callbacks suppressed
[  615.966838] EXT4-fs error (device sda1): ext4_find_entry:1455: inode #11534337: comm smbd: reading directory lblock 0
[  615.966953] EXT4-fs error (device sda1): ext4_find_entry:1455: inode #11534337: comm smbd: reading directory lblock 0
[  615.967254] EXT4-fs error (device sda1): ext4_find_entry:1455: inode #11534337: comm smbd: reading directory lblock 0
[  615.967837] EXT4-fs error (device sda1): ext4_find_entry:1455: inode #11534337: comm smbd: reading directory lblock 0
[  615.967905] EXT4-fs error (device sda1): ext4_find_entry:1455: inode #11534337: comm smbd: reading directory lblock 0
[  615.968162] EXT4-fs error (device sda1): ext4_find_entry:1455: inode #11534337: comm smbd: reading directory lblock 0
[  617.138961] EXT4-fs error (device sda1): ext4_find_entry:1455: inode #11534337: comm smbd: reading directory lblock 0
[  617.139037] EXT4-fs error (device sda1): ext4_find_entry:1455: inode #11534337: comm smbd: reading directory lblock 0
[  617.139331] EXT4-fs error (device sda1): ext4_find_entry:1455: inode #11534337: comm smbd: reading directory lblock 0
[  617.253775] EXT4-fs error (device sda1): __ext4_get_inode_loc:4678: inode #11534337: block 184549408: comm smbd: unable to read itable block
[  630.882966] EXT4-fs error: 47 callbacks suppressed
[  630.882977] EXT4-fs error (device sda1): ext4_find_entry:1455: inode #11534337: comm smbd: reading directory lblock 0
[  630.883056] EXT4-fs error (device sda1): ext4_find_entry:1455: inode #11534337: comm smbd: reading directory lblock 0
[  630.883358] EXT4-fs error (device sda1): ext4_find_entry:1455: inode #11534337: comm smbd: reading directory lblock 0
[  630.884070] EXT4-fs error (device sda1): ext4_find_entry:1455: inode #11534337: comm smbd: reading directory lblock 0
[  630.884137] EXT4-fs error (device sda1): ext4_find_entry:1455: inode #11534337: comm smbd: reading directory lblock 0
[  630.884388] EXT4-fs error (device sda1): ext4_find_entry:1455: inode #11534337: comm smbd: reading directory lblock 0
[  632.263506] EXT4-fs error (device sda1): ext4_find_entry:1455: inode #11534337: comm smbd: reading directory lblock 0
[  632.263582] EXT4-fs error (device sda1): ext4_find_entry:1455: inode #11534337: comm smbd: reading directory lblock 0
[  632.263869] EXT4-fs error (device sda1): ext4_find_entry:1455: inode #11534337: comm smbd: reading directory lblock 0
[  632.403190] EXT4-fs error (device sda1): __ext4_get_inode_loc:4678: inode #11534337: block 184549408: comm smbd: unable to read itable block
[  657.518940] EXT4-fs error: 47 callbacks suppressed
[  657.518952] EXT4-fs error (device sda1): ext4_find_entry:1455: inode #11534337: comm smbd: reading directory lblock 0
[  657.519031] EXT4-fs error (device sda1): ext4_find_entry:1455: inode #11534337: comm smbd: reading directory lblock 0
[  657.519329] EXT4-fs error (device sda1): ext4_find_entry:1455: inode #11534337: comm smbd: reading directory lblock 0
[  657.519986] EXT4-fs error (device sda1): ext4_find_entry:1455: inode #11534337: comm smbd: reading directory lblock 0
[  657.520052] EXT4-fs error (device sda1): ext4_find_entry:1455: inode #11534337: comm smbd: reading directory lblock 0
[  657.520306] EXT4-fs error (device sda1): ext4_find_entry:1455: inode #11534337: comm smbd: reading directory lblock 0
[  657.976026] EXT4-fs error (device sda1): ext4_find_entry:1455: inode #2: comm smbd: reading directory lblock 0
[  657.976095] EXT4-fs error (device sda1): ext4_find_entry:1455: inode #2: comm smbd: reading directory lblock 0
[  657.976298] EXT4-fs error (device sda1): ext4_find_entry:1455: inode #2: comm smbd: reading directory lblock 0
[  657.977216] EXT4-fs error (device sda1): ext4_find_entry:1455: inode #2: comm smbd: reading directory lblock 0
[  723.427948] EXT4-fs error: 4 callbacks suppressed
[  723.427960] EXT4-fs error (device sda1): ext4_find_entry:1455: inode #2: comm smbd: reading directory lblock 0
[  723.428035] EXT4-fs error (device sda1): ext4_find_entry:1455: inode #2: comm smbd: reading directory lblock 0
[  723.428252] EXT4-fs error (device sda1): ext4_find_entry:1455: inode #2: comm smbd: reading directory lblock 0
[  723.428835] EXT4-fs error (device sda1): ext4_find_entry:1455: inode #2: comm smbd: reading directory lblock 0
[  723.428897] EXT4-fs error (device sda1): ext4_find_entry:1455: inode #2: comm smbd: reading directory lblock 0
[  723.429073] EXT4-fs error (device sda1): ext4_find_entry:1455: inode #2: comm smbd: reading directory lblock 0

scyle
Posts: 6
Joined: Tue Oct 08, 2019 9:19 pm
Location: Germany

Re: Raspberry Pi 4 + Powered USB Hub + 2,5" SSD not working

Sat Oct 19, 2019 1:44 pm

I found an old 2,5" spinning disk including an external enclosure. So i tried that drive and it worked. No problem on USB 2 / 3 or with / without the Hub. After that i put that old drive into the Ugreen enclosure which didn't work on USB 3 with the 2 TB drive. Again everything worked. That surprissed me. Next up i put the 2 TB drive into the old enclosure and ... everything works. I put the 2 TB drive in the Ugreen enclosure and STILL EVERYTHING WORKS. WHAT?! I don't get it. I am getting more and more confused on what is going on with this setup.
Also the transfer speed is quite slow. Even tough everything is connected via USB 3 and 1gbit LAN i get transfer speeds of around 20-40mb/s.

Kendek
Posts: 109
Joined: Thu Jul 25, 2019 4:39 pm
Location: Kaposvár, Hungary

Re: Raspberry Pi 4 + Powered USB Hub + 2,5" SSD not working

Sat Oct 19, 2019 2:12 pm

scyle wrote:
Sat Oct 19, 2019 1:44 pm
WHAT?! I don't get it. I am getting more and more confused on what is going on with this setup.
Lots of bugs have been fixed in the kernel, so maybe an update helped in your case.

scyle
Posts: 6
Joined: Tue Oct 08, 2019 9:19 pm
Location: Germany

Re: Raspberry Pi 4 + Powered USB Hub + 2,5" SSD not working

Sun Oct 20, 2019 8:23 pm

I did not update the system in between the last tries. So an update couldn't be it.
I just tried to use the RPi again and there was the same problem. SSD not recognized. I did not touch anything between today and the other day when everything was working. dmesg showing:

Code: Select all

[   22.411958] usb 1-1.2.2: device descriptor read/64, error -110
[   22.631607] usb 1-1.2.2: new high-speed USB device number 5 using xhci_hcd
[   27.771881] usb 1-1.2.2: device descriptor read/64, error -110
[   43.131874] usb 1-1.2.2: device descriptor read/64, error -110
[   43.252033] usb 1-1.2-port2: attempt power cycle
[   43.911594] usb 1-1.2.2: new high-speed USB device number 6 using xhci_hcd
[   45.864785] usb 1-1.2.2: Device not responding to setup address.
[   48.034783] usb 1-1.2.2: Device not responding to setup address.
[   48.251584] usb 1-1.2.2: device not accepting address 6, error -71
[   48.351582] usb 1-1.2.2: new high-speed USB device number 7 using xhci_hcd
[   50.304859] usb 1-1.2.2: Device not responding to setup address.
[   52.474790] usb 1-1.2.2: Device not responding to setup address.
[   52.691577] usb 1-1.2.2: device not accepting address 7, error -71
[   52.691921] usb 1-1.2-port2: unable to enumerate USB device

Return to “Troubleshooting”