Mastiff
Posts: 63
Joined: Tue Oct 18, 2016 6:41 pm

Does anybody else have problems with USB 3 storage on RPi4?

Mon Jul 15, 2019 8:03 am

I was really looking forward to getting one of these, because I boot from SSD; and USB3 and the new CPU would mean blistering fast boot. But unfortunately it doesn't work. When I connect the USB3 (which works on Windows in USB3) SSD to an USB 2 port on the RPi4, it mounts. When I do the same on the USB 3 port, it doesn't, and the numount "eject" icon on the task bar doesn't show. And even if I can mount it manually, it won't boot from it. Also, if I run Gparted I will get it up in the normal amount of time with the SSD connected to one of the USB 2 ports. If I do the same with it connected to an USB 3 port, it will stay spnning "Scanning all devices" forever.

I have tried with three different USB SSD's and the same thing happens.

spb
Posts: 1
Joined: Mon Jul 15, 2019 8:13 am

Re: Does anybody else have problems with USB 3 storage on RPi4?

Mon Jul 15, 2019 8:18 am

I've not a problem with using a USB 3 hard drive on my Pi4, which admittedly doesn't help you much.

If you run

Code: Select all

dmesg | grep -i usb
in a terminal window does that give any clues?

This is what I get for my external drive

Code: Select all

   0.844716] usbhid: USB HID core driver
[    0.982001] usb 2-2: new SuperSpeed Gen 1 USB device number 2 using xhci_hcd
[    1.032452] usb 2-2: New USB device found, idVendor=152d, idProduct=0567, bcdDevice= 1.24
[    1.032466] usb 2-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    1.032478] usb 2-2: Product: USB to ATA/ATAPI Bridge
[    1.032490] usb 2-2: Manufacturer: JMicron
[    1.032501] usb 2-2: SerialNumber: 0123456789ABCDEF
[    1.036558] usb-storage 2-2:1.0: USB Mass Storage device detected
[    1.037311] usb-storage 2-2:1.0: Quirks match for vid 152d pid 0567: 5000000
[    1.038301] scsi host0: usb-storage 2-2:1.0

User avatar
HawaiianPi
Posts: 4736
Joined: Mon Apr 08, 2013 4:53 am
Location: Aloha, Oregon USA

Re: Does anybody else have problems with USB 3 storage on RPi4?

Mon Jul 15, 2019 8:23 am

USB boot is not currently supported on the Pi4. That feature will be added in a future firmware update (after netboot). However, your drive should be supported as storage. How is it formatted?

You can do the old-school style hybrid SD-USB boot by placing /boot on an SD card and running the root filesystem from the SSD (that's what I'm currently doing). See this post for a quick tutorial on how to do it: https://www.raspberrypi.org/forums/view ... 0#p1498774

Or see this post for RonR's script, which might be a simpler solution: https://www.raspberrypi.org/forums/view ... =made+easy
My mind is like a browser. 27 tabs are open, 9 aren't responding,
lots of pop-ups...and where is that annoying music coming from?

huwred
Posts: 7
Joined: Wed Dec 27, 2017 1:37 pm

Re: Does anybody else have problems with USB 3 storage on RPi4?

Mon Jul 15, 2019 7:22 pm

I'm having similar issues trying to connect a crucial MX500 500GB SSD (I'm not trying to boot)

If I power up the pi and plugin the drive then it seems to work, but after a while it just vanishes.
If it is connect when the pi boots then the pi hangs.

I have tried with two different usb/sata connectors. Which work fine in all other devices I have connect them to.

If I connect the drive to the USB 2 ports then it works as expected.

User avatar
lpsw
Posts: 157
Joined: Thu Jun 25, 2015 4:45 pm
Location: USA

Re: Does anybody else have problems with USB 3 storage on RPi4?

Mon Jul 15, 2019 7:24 pm

Self-education is, I firmly believe, the only kind of education there is - Isaac Asimov

Mastiff
Posts: 63
Joined: Tue Oct 18, 2016 6:41 pm

Re: Does anybody else have problems with USB 3 storage on RPi4?

Mon Jul 15, 2019 7:50 pm

Spb, I think it may be the issue mentioned by Ipsw. If it isn't I'll get back to you with those results.

Hawaian Pi, the Pi 4 should boot without a hitch on a hybrid solution, with /Boot on the SD, which I'm using. So that's not the problem.

Ipsw, thanks a lot! That sounds very interesting! I will check that out tomorrow morning and report back!

User avatar
HawaiianPi
Posts: 4736
Joined: Mon Apr 08, 2013 4:53 am
Location: Aloha, Oregon USA

Re: Does anybody else have problems with USB 3 storage on RPi4?

Mon Jul 15, 2019 9:09 pm

huwred wrote:
Mon Jul 15, 2019 7:22 pm
I'm having similar issues trying to connect a crucial MX500 500GB SSD (I'm not trying to boot)
I happen to have a spare Crucial MX500 SSD (500GB), so I just tried it on my Pi 4B (2GB), which, by the way, is already running its OS from another SSD (hybrid SD-USB boot). And... well... it worked fine.

Connecting it after the system booted worked as expected. The drive auto-mounted and Raspbian Buster popped up a request to open the new drive in file manager. Turns out the MX500 had some old Raspbian image on it, so I installed gparted and ntfs-3g and used GParted to wipe the drive (create new partition table) and reformat it as NTFS. Then I rebooted with the drive connected, and that worked as expected as well.

I was using the newer Eluteng Blue USB3-SATA3 adapter cable on the OS SSD, and the old Eluteng/TNP black adapter on the MX500. The SSD running the OS is a Silicon Power A55 256GB with the July 2019 Buster release. Both USB3-SATA3 adapters are connected to the USB 3.0 ports (powered only by USB), and I'm using the old 2.5A Raspberry Pi Universal Power Supply with a Volutz micro-USB to USB-C adapter.

Oh, and in response to another thread I'm participating in, I'm using a Logitech K400r wireless keyboard with trackpad on one of the USB 2.0 ports (2.4GHz Unifying dongle), and a USB 2.0 micro SD card reader with a 32GB card in the other USB 2.0 port (used for backups).

So that's two SSD on USB 3.0 adapters, and two USB 2.0 devices on a Pi 4B, all powered by the older Pi3 2.5A power supply.

I know there will be doubters, and I know that a picture is not absolute proof, but for what it's worth...
Pi4dualSSD.jpg
Pi4dualSSD.jpg (85.98 KiB) Viewed 3056 times


EDIT:
Forgot to mention I tried a power off cold boot as well, and I'm now watching it with a VNC remote desktop on my other monitor too see if the SSD disconnects after a while (so far so good).
My mind is like a browser. 27 tabs are open, 9 aren't responding,
lots of pop-ups...and where is that annoying music coming from?

User avatar
HawaiianPi
Posts: 4736
Joined: Mon Apr 08, 2013 4:53 am
Location: Aloha, Oregon USA

Re: Does anybody else have problems with USB 3 storage on RPi4?

Tue Jul 16, 2019 6:15 am

Still messing around with dual SSD.

Reformatted the 2nd SSD to ext4 and used rsync to clone the 2 user folders there, edited /etc/fstab to mount the 2nd SSD as /home, and rebooted. Worked perfectly. I'm now showing 235GB on / and 458GB on /home (with 15GB on /boot).

So microSD as /boot, 256GB SSD as / (rootfs), and 500GB SSD as /home, all powered by the older Pi3 2.5A PSU. Cold boot and reboot working fine (as it usually does with /boot on SD).

Code: Select all

~ $ df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/root       235G  3.1G  222G   2% /
devtmpfs        841M     0  841M   0% /dev
tmpfs           970M     0  970M   0% /dev/shm
tmpfs           970M  8.6M  962M   1% /run
tmpfs           5.0M  4.0K  5.0M   1% /run/lock
tmpfs           970M     0  970M   0% /sys/fs/cgroup
/dev/mmcblk0p1   15G   45M   15G   1% /boot
/dev/sdb1       253M   40M  214M  16% /mnt/boot
/dev/sda1       458G  354M  434G   1% /home
tmpfs           194M     0  194M   0% /run/user/1001
/dev/sdc1        30G   19G   12G  61% /media/tim/USB32GB

~ $ ls -l /dev/disk/by-label
total 0
lrwxrwxrwx 1 root root 15 Jul 15 18:06 SDCARD16 -> ../../mmcblk0p1
lrwxrwxrwx 1 root root 10 Jul 15 18:06 MX500ext4 -> ../../sda1
lrwxrwxrwx 1 root root 10 Jul 15 18:06 boot -> ../../sdb1
lrwxrwxrwx 1 root root 10 Jul 15 18:06 rootfs -> ../../sdb2
lrwxrwxrwx 1 root root 10 Jul 15 18:06 USB32GB -> ../../sdc1

Not really planning on keeping it this way, but I'll mess with it for awhile to see if anything unexpected happens (working for several hours).

Picture of current configuration. Silicon Power A55 256GB SSD on top (/rootfs) Crucial MX500 500GB SSD on bottom (/home).
Pi4B_uSD-2SSDboot.jpg
Pi4B_uSD-2SSDboot.jpg (74.85 KiB) Viewed 2997 times
My mind is like a browser. 27 tabs are open, 9 aren't responding,
lots of pop-ups...and where is that annoying music coming from?

Mastiff
Posts: 63
Joined: Tue Oct 18, 2016 6:41 pm

Re: Does anybody else have problems with USB 3 storage on RPi4?

Tue Jul 16, 2019 8:11 am

Ipsw, bingo! I actually have the very same JMicro chip as in the thread you linked to! Weird thing is that I googled myeyes red for "boot" "usb 3" "pi 4", and I didn't find anything. So thanks! :mrgreen:

HawaiianPi, I'm using a unifying myself, and right now I have the SSD on one of the USB 3 ports, the Unifying on the other (works just as well on the USB 2 port, of course) and a Tellstick Duo on one of the USB 2 ports. I am going to do a few hours boot cycle first. It's based on MQTT, to make it a bit more random. Node-RED connects to the broker and reboots the Pi when it gets a particular signal from any of the Termostats in the Z-Wave network, so it varies between five seconds after Node-RED is started and up to maybe a minute. So far around 15 reboots without problems. And they're blistering fast compared to both the Pi 3 with SSD and Pi 4 with an SD card.

Btw how did you use the original Pi PSU for this? An micro USB-USB-C adapter, or something? I have the original Pi 4 adapter in the mail, expecting it tomorrow.

User avatar
HawaiianPi
Posts: 4736
Joined: Mon Apr 08, 2013 4:53 am
Location: Aloha, Oregon USA

Re: Does anybody else have problems with USB 3 storage on RPi4?

Tue Jul 16, 2019 9:37 am

Mastiff wrote:
Tue Jul 16, 2019 8:11 am
Btw how did you use the original Pi PSU for this? An micro USB-USB-C adapter, or something?
Sorry, thought I mentioned that above. Must have been another thread...

Yes, I'm using a Volutz micro-USB to USB-C adapter I already owned. Got them a while ago from Amazon for something like $6 a pair.

Dual SSD system is still working fine. I let it sit idle for a few hours, then I looped an HD video from the /home SSD for awhile, and it's been playing a 10h long 1080p youtube video in Chromium browser for over 2.5 hours with no trouble. Temps are around 45C with a quiet Noctua 40mm 5V fan and no heatsink. CPU has been at 1500MHz the whole time, and all throttling bits are still zero (no thermal or power issues).
My mind is like a browser. 27 tabs are open, 9 aren't responding,
lots of pop-ups...and where is that annoying music coming from?

Mastiff
Posts: 63
Joined: Tue Oct 18, 2016 6:41 pm

Re: Does anybody else have problems with USB 3 storage on RPi4?

Tue Jul 16, 2019 11:09 am

Interesting. My plan was to put my Pi 4 in a plastic box like the ones I use for my Pi 3's, when that arrives for the Pi 4:
Pi-kabinett.jpg
Pi-kabinett.jpg (14.21 KiB) Viewed 2930 times
The CPU is not really taxed at all, my Pi 3's are normally around 2-7 %. Would it be a problem with the Pi 4 without heat sink or fan? The ambient temp is around 25 degrees.

User avatar
HawaiianPi
Posts: 4736
Joined: Mon Apr 08, 2013 4:53 am
Location: Aloha, Oregon USA

Re: Does anybody else have problems with USB 3 storage on RPi4?

Tue Jul 16, 2019 6:25 pm

The case I'm using has open sides, so that surely helps with cooling. For a closed case you may need a fan and good case ventilation (but at <10% CPU you might be fine).

Flirc is taking pre-orders for the Pi 4B version of their aluminum alloy heatsink case (the case itself acts as a huge heatsink). I've been using their 3B version for years and they are awesome (already got my pre-order in). No fan needed, and my Pi 3B and 3B+ computers never hit throttling temps, no matter how hard I push them.
My mind is like a browser. 27 tabs are open, 9 aren't responding,
lots of pop-ups...and where is that annoying music coming from?

Mastiff
Posts: 63
Joined: Tue Oct 18, 2016 6:41 pm

Re: Does anybody else have problems with USB 3 storage on RPi4?

Wed Jul 17, 2019 8:18 am

I liked that Flirc case, but it will be twice the price when ordering to Norway. I wonder if they will get a reseller. They do for the Flirc USB IR device.

User avatar
HawaiianPi
Posts: 4736
Joined: Mon Apr 08, 2013 4:53 am
Location: Aloha, Oregon USA

Re: Does anybody else have problems with USB 3 storage on RPi4?

Wed Jul 17, 2019 8:49 am

Mastiff wrote:
Tue Jul 16, 2019 11:09 am
The CPU is not really taxed at all, my Pi 3's are normally around 2-7 %. Would it be a problem with the Pi 4 without heat sink or fan? The ambient temp is around 25 degrees.
I have to ask, if your Pi 3's only use 2-7% CPU to do what you need, why do you even want a Pi4? Seems like a Pi Zero would be a more logical choice (smaller, less power consumption, much less expensive, and from what you've said a Pi0 should be fast enough). ¯\_(ツ)_/¯
My mind is like a browser. 27 tabs are open, 9 aren't responding,
lots of pop-ups...and where is that annoying music coming from?

Mastiff
Posts: 63
Joined: Tue Oct 18, 2016 6:41 pm

Re: Does anybody else have problems with USB 3 storage on RPi4?

Wed Jul 17, 2019 8:53 am

HawaiianPi, the reboot time and startup of Home Assistant. The problem with Z-Wave is that it's the only thing in my system that I can't have a dual (or triple) setup of, so if Z-Wave goes down, the Pi has to be restarted and Home Assistant needs to get running and get all of the Z-Wave stuff up again. And with the P4 that restart time is maybe between 1/5 and 1/10 of the time needed to restart a Pi 3. I shudder to think how long time that would take on a Zero...

huwred
Posts: 7
Joined: Wed Dec 27, 2017 1:37 pm

Re: Does anybody else have problems with USB 3 storage on RPi4?

Wed Jul 17, 2019 2:20 pm

HawaiianPi wrote:
Tue Jul 16, 2019 6:15 am
Still messing around with dual SSD.

Reformatted the 2nd SSD to ext4 and used rsync to clone the 2 user folders there, edited /etc/fstab to mount the 2nd SSD as /home, and rebooted. Worked perfectly. I'm now showing 235GB on / and 458GB on /home (with 15GB on /boot).

So microSD as /boot, 256GB SSD as / (rootfs), and 500GB SSD as /home, all powered by the older Pi3 2.5A PSU. Cold boot and reboot working fine (as it usually does with /boot on SD).
That's odd then. I have tried the same cable as you, plus a usb to sata caddy (not sure of make will check) but none worked so far. I have tried it as ntfs and ext 4, it can't be the ssd as that works in everything else I have tried it, both usb 2 and 3 maybe my pi is defective, will have to check a USB stick in the usb3 port see if that behaves so I can rule out the port itself.

huwred
Posts: 7
Joined: Wed Dec 27, 2017 1:37 pm

Re: Does anybody else have problems with USB 3 storage on RPi4?

Wed Jul 17, 2019 3:50 pm

lpsw wrote:
Mon Jul 15, 2019 7:24 pm
This may help:
https://www.raspberrypi.org/forums/view ... 8&t=245323
Yes, this helped. I can now boot with the USB SSD connected, however read/write performance seems poor, it is only slightly better than a sata 4500rpm hdd plugged into the usb 3

User avatar
lpsw
Posts: 157
Joined: Thu Jun 25, 2015 4:45 pm
Location: USA

Re: Does anybody else have problems with USB 3 storage on RPi4?

Wed Jul 17, 2019 4:29 pm

huwred wrote:
Wed Jul 17, 2019 3:50 pm
lpsw wrote:
Mon Jul 15, 2019 7:24 pm
This may help:
https://www.raspberrypi.org/forums/view ... 8&t=245323
Yes, this helped. I can now boot with the USB SSD connected, however read/write performance seems poor, it is only slightly better than a sata 4500rpm hdd plugged into the usb 3
What SSD and SATA controller chip are you using?

My read speeds (Kingston 240GB w/JMicron JMS561U USB3 -> SATA controller).
I don't have a 4500 RPM "brown and round" to compare.

[email protected]:~ $ sudo hdparm -Tt /dev/sda
/dev/sda:
Timing cached reads: 1634 MB in 2.00 seconds = 817.04 MB/sec
Timing buffered disk reads: 750 MB in 3.01 seconds = 249.51 MB/sec
Self-education is, I firmly believe, the only kind of education there is - Isaac Asimov

huwred
Posts: 7
Joined: Wed Dec 27, 2017 1:37 pm

Re: Does anybody else have problems with USB 3 storage on RPi4?

Thu Jul 18, 2019 10:36 am

lpsw wrote:
Wed Jul 17, 2019 4:29 pm

What SSD and SATA controller chip are you using?

My read speeds (Kingston 240GB w/JMicron JMS561U USB3 -> SATA controller).
I don't have a 4500 RPM "brown and round" to compare.

[email protected]:~ $ sudo hdparm -Tt /dev/sda
/dev/sda:
Timing cached reads: 1634 MB in 2.00 seconds = 817.04 MB/sec
Timing buffered disk reads: 750 MB in 3.01 seconds = 249.51 MB/sec
I'm using a Crucial mx500 500Gb SSD attached using
ASMedia Technology Inc. Name: ASM1051E SATA 6Gb/s bridge, ASM1053E SATA 6Gb/s bridge, ASM1153 SATA 3Gb/s bridge, ASM1153E SATA 6Gb/s bridge (I'm assuming this is the issue as it is now using usb_storage rather than UAS

I have reformatted the SSD to Ext4 and has improved some

Timing cached reads: (524 MB, 500 MiB) copied, 1.36739 s, 383 MB/s
Timing buffered disk reads: (524 MB, 500 MiB) copied, 2.6474 s, 198 MB/s

Which is now a lot better than the sata now.

User avatar
HawaiianPi
Posts: 4736
Joined: Mon Apr 08, 2013 4:53 am
Location: Aloha, Oregon USA

Re: Does anybody else have problems with USB 3 storage on RPi4?

Thu Jul 18, 2019 10:48 am

huwred wrote:
Wed Jul 17, 2019 2:20 pm
That's odd then. I have tried the same cable as you, plus a usb to sata caddy (not sure of make will check) but none worked so far. I have tried it as ntfs and ext 4, it can't be the ssd as that works in everything else I have tried it, both usb 2 and 3 maybe my pi is defective, will have to check a USB stick in the usb3 port see if that behaves so I can rule out the port itself.
What are you using for a power supply?
My mind is like a browser. 27 tabs are open, 9 aren't responding,
lots of pop-ups...and where is that annoying music coming from?

huwred
Posts: 7
Joined: Wed Dec 27, 2017 1:37 pm

Re: Does anybody else have problems with USB 3 storage on RPi4?

Fri Jul 19, 2019 8:40 am

HawaiianPi wrote:
Thu Jul 18, 2019 10:48 am
huwred wrote:
Wed Jul 17, 2019 2:20 pm
That's odd then. I have tried the same cable as you, plus a usb to sata caddy (not sure of make will check) but none worked so far. I have tried it as ntfs and ext 4, it can't be the ssd as that works in everything else I have tried it, both usb 2 and 3 maybe my pi is defective, will have to check a USB stick in the usb3 port see if that behaves so I can rule out the port itself.
What are you using for a power supply?
Official Pi 4 power supply

huwred
Posts: 7
Joined: Wed Dec 27, 2017 1:37 pm

Re: Does anybody else have problems with USB 3 storage on RPi4?

Sat Jul 20, 2019 8:08 am

Seems to have settled down now and getting fairly decent speeds

sudo hdparm -tT /dev/sdb

/dev/sdb:
Timing cached reads: 1528 MB in 2.00 seconds = 763.92 MB/sec
Timing buffered disk reads: 714 MB in 3.01 seconds = 237.36 MB/sec

cheddy
Posts: 26
Joined: Wed Jan 18, 2017 12:46 pm

Re: Does anybody else have problems with USB 3 storage on RPi4?

Sun Jul 28, 2019 3:27 pm

Yes, I'm having a lot of difficulty with a Crucial MX500 1TB SSD and USB3 on the RPI4. At first everything looked good. I used gdisk to partition the SSD and then used 'mke2fs -t ext4' to create the filesystem. Everything looked good initially and I was able to mount the volume. I then used rsync to copy the root file system to the SSD (want to use the SD boot/SSD filesystem setup) and everything chugged along fine for a few minutes, but then crashed with an IO error. After that the RPI4 wouldn't recognize the SSD. Going back to Windows 10 and using Acronis True Image I was able to recover the SSD to the point where I could do the above again, but with same result (yeah, I know about the definition of stupidity.) After that debacle, I tried it on one of the USB2 ports, with the same results, only this time the RPI refuses to even see the SSD drive, and Windows 10 also won't recognize the drive, not even in the Device Manager. Oh, one other thing - when the SSD was still recognized after I plug it into the USB port I get the 'Open in File Manager' popup dialog for about 3 seconds, then it disappears, and I get the 'drive disconnected without ejecting' message (or words to that effect, can't remember exactly) up in the top right-hand corner of the screen.
I checked the dmesg error messages for USB and they seem to indicate a low power problem. I am using the official Raspberry Pi 2.5 amp USB-C power supply
Right now it looks like I have a bricked SSD as neither Windows 10 nor Raspbian Buster will recognize it at any level. When I try to reboot either my RPi4 or my Windows 10 box with the SSD connected the boot procedure hangs in both cases until I disconnect the SSD.
Although I would love to get the SSD working on my RPi4, my biggest problem now is recovering the SSD for any use. Does anyone know how to bring an SSD back to life when it isn't recognized by any computer?

P.S. The USB3-SATA cable I was using is a StarTech model USB3S2SAT3CB.

cheddy
Posts: 26
Joined: Wed Jan 18, 2017 12:46 pm

Re: Does anybody else have problems with USB 3 storage on RPi4?

Sun Jul 28, 2019 3:58 pm

Update to my previous post about the Crucial MX500 1TB SSD - the drive now shows up in the Windows 10 Device Manager, as ASMT ASM105x SCSI Device (huh?). It still isn't visible in either Device Management or Acronis True Image.or anywhere in Raspbian, but at least it isn't quite dead.

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 23878
Joined: Sat Jul 30, 2011 7:41 pm

Re: Does anybody else have problems with USB 3 storage on RPi4?

Sun Jul 28, 2019 4:07 pm

cheddy wrote:
Sun Jul 28, 2019 3:58 pm
Update to my previous post about the Crucial MX500 1TB SSD - the drive now shows up in the Windows 10 Device Manager, as ASMT ASM105x SCSI Device (huh?). It still isn't visible in either Device Management or Acronis True Image.or anywhere in Raspbian, but at least it isn't quite dead.
That's weird. My first guess would be it's actually faulty.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed. Here's an example...
“I think it’s wrong that only one company makes the game Monopoly.” – Steven Wright

Return to “Raspbian”