Raspberry Pi 5 NAS

by bra2298407 in Circuits > Arduino

73 Views, 1 Favorites, 0 Comments

Raspberry Pi 5 NAS

IMG_4500.JPG
IMG_4498.JPG
IMG_4499.JPG

This is my Network Attached Storage (NAS) device. It features a Uninterruptible Power Supply (UPS) expansion board, that way when the wall power goes out, the batteries on board will keep the Raspberry Pi alive. It can hold two M.2 memory cards, as well as external hard drives that can be mounted through the USB ports.

Supplies

IMG_4449.JPG
  1. Device Parts
  2. Geekworm X1201-C1 Metal Case
  3. Geekworm X1004 PCIe to Dual M.2 HAT
  4. Geekworm X1201 Ultra-Thin 5V UPS Shield
  5. Geekworm H505 Active Cooler
  6. 18650 Batteries (x2)
  7. Storage
  8. 500gb M.2 SSD
  9. Hard Drive (USB to SATA cable required)
  10. External SSD (USB to SATA cable required)
  11. USB flash drive (not recommended)
  12. Tools/Utility
  13. USB Keyboard
  14. Monitor (Requires a miniHDMI cable!)
  15. MicroSD reader
  16. Extra computer/laptop

Install Your Active Cooler

IMG_4450.JPG
IMG_4454.JPG
IMG_4456.JPG

Take your Raspberry Pi 5 and clean the connection points where the cooler will be attached. Next, apply the Thermal pads on top of the chips, then put the cooler on and press down the connection pins.

Install the UPS Shield and PCIE Hat

IMG_4457.JPG
IMG_4459.JPG
IMG_4463.JPG
IMG_4464.JPG
IMG_4489.JPG

Grab your UPS shield. Now, flip it over and screw in the two spacers WITH the threads onto the side where the Pi will be installed. Next, install the spacers WITHOUT the threads with the included screws onto the side where the batteries will be attached.


Next, grab your PCIE Hat. you will need to install it on top of your Pi along with the spacers. You will get either metal or nylon spacers, I opted to use the nylon spacers. To install, I suggest that you first install the Hat onto the Pi's pins (make sure it is pushed down as far as it can go). Then, place the long screws into the hole while feeding it through the spacers. Then, screw down the whole piece onto the UPS shield.


Feed the ribbon cables into the connectors. You will need to flip up the lock on the connection in order to feed it in.


You can now place your 18650 batteries into the slots. These batteries will power your Pi if in case your device suddenly loses power.

Place Your Device Into the Case

IMG_4490.JPG
IMG_4491.JPG

Unscrew the face of the case. You can now slide the cover off. With some finesse you will now be able to fit your Pi into the case. Flipping the case upside-down will give you screw holes to secure your Pi to the case. You can also install the rubber feet onto the bottom.


Close your case by sliding the plate back in, and then screwing it back in. Make sure to install your memory before you close it!

Installing Storage

IMG_4492.JPG
IMG_4493.JPG
IMG_4471.JPG
IMG_4472.JPG

There are multiple ways to add storage onto the NAS. All of these can work simultaneously with each other. I highly suggest using an M.2 card, as we installed the Hat for it.

  1. M.2:
  2. Slide the card into the labeled slot 1 (SDD1) and screw down card (do not overtighten).
  3. You can also add a second M.2 into slot 2 (SDD2).
  4. Solid State Drive or Hard Drive:
  5. You will have to use an external connection. Connect the storage device through USB.
  6. USB drive:
  7. Simply plug into one of the USB slots.

Installing Software

p1.png
p2.png
p3.png
p4.png

For my NAS I've opted to use Debian Bookworm with Open Media Vault (OMV) Installed onto the Pi. I can then use a separate computer to control the pi through SSH, or plug in a monitor and a keyboard.


  1. Flash the microSD card with Debian Bookworm
  2. Insert the microSD card into the computer. You can use an external reader the one built into your computer if you have one.
  3. Head over to the Raspberry Pi website and install the Raspberry Pi Imager.
  4. Once installed, select your device, then go to Raspberry Pi OS (other) and select Raspberry Pi OS (Legacy, 64-bit) Lite. This is the one with Debian Bookworm on it without a desktop environment.
  5. Select your microSD card as the one you want to flash to. You will have to set up the Pi by giving it a name, setting up the time, setting up user login info, and then configuring it's connection.
  6. Install Debian onto the microSD card.
  7. Control the Pi through another computer via SSH (optional, recommended)
  8. First, if you have a computer with Windows on it, you will need to install Linux on it using WSL. I just used the regular version of Ubuntu as my version of Linux.
  9. Find the local IP address of your Pi. Make it is connected to your network (ethernet cable), and that you are on the same network as it. You may have to login to the admin page of your network in order to find it. The Pi will also tell you its own IP address when it is turned on and plugged into a monitor.
  10. On your computer, open WSL. The command used to connect to your Pi is:
  11. ssh (loginname)@(localip)
  12. Install Open Media Vault
  13. Following the guide from the OMV Website is helpful.
  14. Under the Install OMV section, copy and paste this section into your ssh terminal.
  15. wget -O - https://github.com/OpenMediaVault-Plugin-Developers/installScript/raw/master/install | sudo bash
  16. OMV should now start installing onto your Pi.


You can access the OMV web GUI by typing your Pi's IP address into the search bar. in my case it was 192.168.1.100. The default login and password is admin and password.


You can now use your Raspberry Pi 5 as a NAS!