1

I want to build a NAS with a single 2.5 ssd.

According to this video It should be possible. do I need a additional power supply for the hard drive?

2 Answers 2

4

The key thing with any Pi especially the 3B+ or 4 models is to make sure you are using a proper power supply and not a generic (or even branded charger).

Power supplies (esp. the RPF/RPT ones) are designed to cope with power surges (such as hard drives spinning up), increased number of cores (e.g. start up of programs or extra processing requirements) or demands from GPIO connected devices / HATs.

The majority of charges can drop the voltage temporarily to cope with the surge in current requirements to say nothing of initial loss over the cables. The cheap charger cables can cause significant loss due to the thinness of them.

The older drives with two USB connectors where designed to be used across two USB hubs on laptops or PCs allowing the two chips driving the ports to provide power without exceeding the current limits of the chip (or connectors). Unfortunately, the majority of Pi boards only use one hub (despite a plethora of USB ports) so a dual USB cable may not help unless you can confirm the power draw is via two hubs.

So far, the only issue I have found with spinning hard disk drives have been the 4Tb ones - I've not been able to get them to reliably work without a powered hub - I normally get more issues from the USB / SATA interface not booting.

That last point is also worth noting - not all drives will allow the Pi computers to boot from them. Linux has spotty support for USB devices and earlier Pi boards would only boot from some adapters and not others (even though they looked the same). A work around for early boards was to use the SD card to hold the bootcode file and load the rest from the hard drive, with another to tell the OS to load from the drive by reconfiguring part of the OS to point to the hard drive.

With a single drive NAS, I would consider using the SD card to hold the operating system and configuration and keep the data on the hard drive only. This lets you simply copy the SD card to another machine as backup. For example, a copy of config.txt / fstab and Samba files from the SD card will get you a basic NAS up and running from backup in under 30 minutes assuming the hard drive data is not corrupt.

1
  • Do the original raspberry pi branded power supplies count as "proper power supply"?
    – hey
    Jan 26 at 2:11
1

If you want to use an SSD as shown in the video you won't need an extra power suppply. However if you use an HDD you may need an extra power supply depending on what cabel you use to connect the HDD to your pi. Some cables for HDDs especially older ones come with two USB cables one for data and one for power. Since the Pi has 4 USB ports there should be no Problem setting this up.

2
  • 1
    The Rpi can only supply 1.2A in total to all USB ports so it is essential to check that the HDD will never try to draw more than this. If this is ignored, problems will happen, including file system corruption, reboots, shutdowns, etc. Dec 4, 2020 at 8:15
  • this is accurate - my pi can run my SSD no problem, however a 4TB HDD it gets I/O errors unless I connect using powered USB hub.
    – Poat
    Oct 11 at 17:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.