ffcastro
Posts: 4
Joined: Thu Nov 07, 2019 6:15 am

Raspberry Pi4 fail in the very moment I connect a second hard drive

Thu Nov 07, 2019 6:46 am

Hi,

I have configured mi raspberry pi4 with raspbian and I have the root filesystem instaled in an external ssd hard drive connected in a USB 3.0 port. It works perfect for days, but in the very moment I insert a new hard drive (it doesn't matter if it's a 2.5 USB drive or a 3.5 USB Drive with external power supply) the operation system start to fail and the only way to recover the system is switching it off and on (removing the second hard drive). I try too with Libreelec; with one hard drive all works perfect. But when I connect two hard drive the system start to fail (and each hard drive work perfect connected alone). And I talk with a friend with other raspi4 and He has the same problem
With my old raspberry pi 3b I was able to connect two and even three 2.5 hard drive without problem.
Is there any problem with our motherboards or it's a design problem? Someone could help me in order to be abler to connect two (or more) hard drives to my raspi4.

Thanks in advance

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

Re: Raspberry Pi4 fail in the very moment I connect a second hard drive

Thu Nov 07, 2019 7:19 am

Almost certainly a power supply problem, either too small, or the drive is taking too much power.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed. Here's an example...
“I own the world’s worst thesaurus. Not only is it awful, it’s awful."

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

Re: Raspberry Pi4 fail in the very moment I connect a second hard drive

Thu Nov 07, 2019 8:52 am

What are you using for a power supply?

I have successfully used my Pi 4B2 with two SATA SSDs with USB adapter cables (both connected to USB 3.0).
Pi4B_uSD-2SSDboot.jpg
Pi4B_uSD-2SSDboot.jpg (74.85 KiB) Viewed 637 times

The system was even configured to run the OS from the drives.
  • /boot on micro SD card.
  • / (rootfs) on 256GB SSD (top drive in picture).
  • /home on 500GB SSD (bottom drive in picture).

This was primarily done as a "just because I can" experiment when I first got my Pi 4B 2GB model. Used it like that for awhile with no trouble at all. I was using the older 5.1V/2.5A micro USB official PSU with a Volutz brand USB-C adapter.
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?

ffcastro
Posts: 4
Joined: Thu Nov 07, 2019 6:15 am

Re: Raspberry Pi4 fail in the very moment I connect a second hard drive

Thu Nov 07, 2019 11:04 am

Hi,

I use a 5V 3A PSU, so that is not the problem. I think the main problem is the limit to 1,2A in USB port. You have two ssd drives, but in my case I have checked that the second drive need 1A , so thats the problem. I'm not sure whats the consume of the ssd drive, but I suposse it's higher than 200mah so the bus is not able to provide enough power. I will try to get a usb hub with external supply and will check again.

Thanks and regards,

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

Re: Raspberry Pi4 fail in the very moment I connect a second hard drive

Thu Nov 07, 2019 11:21 am

ffcastro wrote:
Thu Nov 07, 2019 11:04 am
Hi,

I use a 5V 3A PSU, so that is not the problem. I think the main problem is the limit to 1,2A in USB port. You have two ssd drives, but in my case I have checked that the second drive need 1A , so thats the problem. I'm not sure whats the consume of the ssd drive, but I suposse it's higher than 200mah so the bus is not able to provide enough power. I will try to get a usb hub with external supply and will check again.

Thanks and regards,
Providing the power supply label is not lying, and it's decent quality, but have you considered the cable from PS to the board? Measure the voltage at the board to see what power drop you are getting.

Although using a spinning rust HW will require a lot of power at start up.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed. Here's an example...
“I own the world’s worst thesaurus. Not only is it awful, it’s awful."

dominic03
Posts: 91
Joined: Fri Dec 21, 2018 1:50 am

Re: Raspberry Pi4 fail in the very moment I connect a second hard drive

Fri Nov 08, 2019 11:29 am

HawaiianPi wrote:
Thu Nov 07, 2019 8:52 am
What are you using for a power supply?

I have successfully used my Pi 4B2 with two SATA SSDs with USB adapter cables (both connected to USB 3.0).

Pi4B_uSD-2SSDboot.jpg


The system was even configured to run the OS from the drives.
  • /boot on micro SD card.
  • / (rootfs) on 256GB SSD (top drive in picture).
  • /home on 500GB SSD (bottom drive in picture).

This was primarily done as a "just because I can" experiment when I first got my Pi 4B 2GB model. Used it like that for awhile with no trouble at all. I was using the older 5.1V/2.5A micro USB official PSU with a Volutz brand USB-C adapter.
Wow! That's a really cool setup! How do you configure the different devices to hold different parts of the OS?
Raspberry Pi 4B running Raspbian Buster v3.1 (via PINN)
Kingston 32 GB C10 (U1) microSD
Sceptre E225W 22" 75hz 1080p monitor
Flash drive for backups and swap
-or-
pi-top 3 running Raspbian with drivers and pi-topHUB 2.0 / 16GB SanDisk C10 microSD

Seketh
Posts: 7
Joined: Mon Mar 11, 2019 1:16 pm

Re: Raspberry Pi4 fail in the very moment I connect a second hard drive

Fri Nov 08, 2019 2:45 pm

I have the official power supply and unfortunely it's not enough to power 2x2.5" drives (1x2TB and 1x500GB).

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

Re: Raspberry Pi4 fail in the very moment I connect a second hard drive

Fri Nov 08, 2019 3:31 pm

Seketh wrote:
Fri Nov 08, 2019 2:45 pm
I have the official power supply and unfortunely it's not enough to power 2x2.5" drives (1x2TB and 1x500GB).
Presumably actual HD's rather than SSD's? In which case that is not surprising.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed. Here's an example...
“I own the world’s worst thesaurus. Not only is it awful, it’s awful."

Darktrax
Posts: 16
Joined: Sun Nov 30, 2014 1:40 pm

Re: Raspberry Pi4 fail in the very moment I connect a second hard drive

Fri Nov 08, 2019 4:50 pm

dominic03 wrote:
Fri Nov 08, 2019 11:29 am

The system was even configured to run the OS from the drives.
  • /boot on micro SD card.
  • / (rootfs) on 256GB SSD (top drive in picture).
  • /home on 500GB SSD (bottom drive in picture).
Wow! That's a really cool setup! How do you configure the different devices to hold different parts of the OS?
When you get it right on a Pi4, using a USB3 solid state drive, and redirecting where the Pi finds it's new high speed root partition, it fairly zips along! With this setup, the Pi becomes fully usable as a main everyday computer. If you load up simultaneous linear matrix math, or high speed data sampling on the GPIO while simultaneously checking out YouTube and eBay, on a Mate desktop, expect some slowdowns!

There are lots of how-to explanations on this forum, and on the internet, explaining ways of doing this. They vary, as does the final setup of what the user was going for, but the basics are the same. Since getting a Pi to directly boot up off a USB drive is not a feature available on the Pi just yet, we start it off on a SD card. I am sure one day, it will come, but for now, we can leave a MicroSD card in there, just to handle the initial boot-up up to the point it needs to find the rest of the root partition, which we arrange to be on the external drive. At first I made it work on a little 40GB 2.5 inch hard drive salvaged from a dead laptop PC. There seemed enough power from the USB to run it OK. Since then, I moved on to a 500GB SSD.

I had (foolishly) left a whole 64GB SanDisk MicroSD card doing the boot-up, now replaced with a 16GB, which happens to be the smallest I had around, but if you do this, sacrifice a 8GB or something. Just know that a "10 enclosed in a C" symbol alone is not enough to guarantee enough SD speed to manage a Pi boot-up. It may only be good for a cheap dashcam!

With a Samsung T5 500GB SSD using the high(er) speed USB3 on a Pi4, I split the space to make a separate partition for bigger data.

So I have the regular rootfs (/). Initially, it re-sizes to take up all the drive. The first thing was to install GParted, to claim back most of the space, and make a partition.
I made this separate partition as /data/(some_name) for my other stuff. I edited /etc/fstab to mount it, including the "noatime" parameter. There is no need to log the time of every write.
I reserved quite a lot (40G) for the root partition, because /user/share can get big with downloaded packages, and /home/(me) might even start getting large with stuff I stash, like photos, etc.

All this comes with a warning!
Search the posts in this forum. I am sure the advice is excellent. This is just about how I got there.

I ran into all sorts of problems, and messed up several times by blindly following various instruction procedures searched off the internet. There are so many different ways of achieving moving a Pi system onto a SSD or hard drive. Most work in the end, but the basic recipe turns out to be quite easy. The key thing not to have, at any stage, a PI image flashed onto the MicroSD card being identically the same as the Pi image put onto the USB drive, including the PARTUUID. The easy way to avoid this is not to directly flash an image on the USB hard drive, and then go through all sorts of resizing and editing to deal with the UUID. Simply use the nice Pi tool provided, explained below.

I followed this link. It has lots of good stuff, but a rather bad step at the very beginning (step 2)
https://jamesachambers.com/raspberry-pi ... sh-drives/

If you use BalenaEtcher, or whatever similar tool to write your initial Pi image to the MicroSD card, and then simply stick in the big USB drive, and write and identical copy onto it, it will end up exactly like the MicroSD card Pi, including the PARTUUID, and size and all.

Fortunately, there is the very handy, and much better way. On the Pi itself, meaning from the Raspian that includes the recommended software extras, there is a Accessories -> SD Card Copier. This has a checkbox [✓] New Partition UUIDs. Use this to copy a Pi system onto your external USB hard drive or SSD. If it is a big external disk drive, it may need a separate power source of it's own.

You first get the Pi up and running on SD, and use this tool to copy the Pi image onto the hard drive or SSD. Later, when the move is made, the resizing and creation of other partitions can be done. I used Gparted for that.

The basic method is to edit /boot/cmdline.txt on the MicroSD to point to the drive where is the real place you want the rest of the boot-up to happen, and you do this by discovering the PARTUUID using blkid, and lsblk in a terminal. You need to be root to do this edit.

The pictures show my Pi4 with the 500G drive. The conky monitor shows the temperature is at 37C. and it pretty much stays there. I happen to be trying out a 2-fan heatsink, but the little transparent acrylic cases with a 40mm fan blowing over a small heatsink stuck onto the CPU are actually more effective!

I suppose the other giveaway is that the Pi4 is running a hardened secure mail-server and web-server.
I include a bit of terminal showing the commands to check out UUIDs, but it was at 1600 x 1200, so I am not sure the text size will show up well on the posted picture
Attachments
Screenshot 2019-11 Pi4 on SSD.png
Screenshot 2019-11 Pi4 on SSD.png (234.04 KiB) Viewed 449 times
Pi4 + 500G USB.jpg
Pi4 + 500G USB.jpg (220.06 KiB) Viewed 449 times

Return to “Advanced users”