Home Raspberry Pi Raspberry Pi NAS: (NAS-pi) Plex, Samba, RAID1 and more #part7

Raspberry Pi NAS: (NAS-pi) Plex, Samba, RAID1 and more #part7

I have been troubleshooting the RAID1 for about 20h!!

What a journey it was! It’s time for the last part of the Raspberry Pi NAS project.

Raspberry Pi NAS – Setting up Open Media Vault

Note, that I will expect a know-how in terms of Raspberry Pi connectivity. If you are unsure how to do that, check my tutorials section for more helpful guides. The Raspberry Pi NAS is running an Open Media Vault software. It’s a free NAS operating system. Download the latest repository and install it on your board. Find the Raspberry’s IP and log in:

  • User: admin, root (for terminal)
  • Password: openmediavault

I formatted the drives on my desktop PC to speed things up. Set it all as Ext4. Once ready plug everything in and log in to the web interface.

OpenMediaVault – drives

I strongly suggest to quick-wipe the drives before you do anything else.  This way you are 100% sure drives can be accessed by the Raspberry Pi NAS. Also, scan for drives even if the drives are present. The fstab file will get populated this way and will save you some issues later.

Create a user account, set a username and password. You will need these credentials later to access the network storage. Once this is done, you have to create the file systems. If you want to create a RAID partition, don’t create any file systems on the drives used for that. We will do this once the RAID partition has been created.

SMB – file sharing

Enable SMB in services, click through to shares option and create shares. It’s important that you select permission inheritance for any folders that contain media files for Plex or DLNA, otherwise, Plex server won’t see new file structures.

Once you have the shares available, modify the user permissions using the ACL option in users/share. This way you can allow users, groups etc to write/read content from the shares.

RAID1 – Mirror files

The speed of the USB on the Raspberry Pi NAS is not great, there will be no gain from stripping data across drives, but I can take advantage of RAID1 configuration. Mirroring is set so one disk is automatically mirrored on the other drive, and creates a safe backup environment.  Leave this step for the end. This will take a couple of hours depending on your drives. When the RAID set up is complete, you can create the file system, and add the shares.

PLEX – Media files

First, go to OMV- extras and enable Plex. Once this is done, download Plex plugin from the menu and installation will start. It will take few moments, after which you will get the Plex option in running services. This is where you can configure your Plex server and access the Plex interface.

Make sure you have some files on your drive (transfer it using SMB protocol) as it will be easier for you to verify that you have your Plex server running successfully on Raspberry Pi NAS.

Log in to your Plex account, and the libraries selecting the correct paths and after few moments you should see the Plex and your media available for streaming.

To make sure the drives load correctly on boot we have to delay the root. I spent countless amount of hours trying to figure out why my RAID1 partition disappears after the boot. Turned out that disks weren’t spinning quickly enough at the boot to register. To fix this, pop the SD card out and add this to the cmdline.txt file

rootdelay=10

Conclusion

The setup can be time-consuming due to slow CPU of the Raspberry Pi NAS. It’s worth it. I ended up with a nice low power backup solution and a Plex server.  I set up all my video files to be downloaded directly to the NASpi, this way I’m saving a lot of time transferring files back and forth between the computers. You can see the box in its full glory below.

Feel free to follow me on social media as it helps me grow, share it, and comment if you need any advice. You can also support me, and fund my projects directly.

ItemAmazon UKAmazon USAAliexpress.comBanggood.comComments
1 x USB 3.0 4 port hub£8.99$9.99$6.64$11.99I picked the microUSB powerd one, other are available
4 x USB angled cables£6.99 pack of two$6.99 pack of two$1.68$2.99Plan the bends accordingly
1 x 2.5 -3 A 5V power supply£5.79$8.99$4.99$5.75Works from 2.4A but aim for 3A if possible
1 x Raspberry PI 2/3£32.00$35.10$39.50$39.99There is no speed penalty for RPI2
3 x HDD£5.95$8.99$8.49$9.49Needs to have a specific opening mechanism
USB hub with power 2.5A£12.22$16.99   

Conclusion

I write this part months later,  the project has been completed and it’s running  non stop, serving as a media center and local back up. It may not be the fastest NAS solution out there, but it’s one of the cheaper ones, and incredibly handsome! On top of that, no one else have it, unless you followed my tutorial step by step. In that case: KUDOS to you! Enjoy your new NASpi!

Project Download

Download project files here. Bear in mind that Patreon supporters have early access to project files and videos.

PayPal

Nothing says "Thank you" better than keeping my coffee jar topped up!

Patreon

Support me on Patreon and get an early access to tutorial files and videos.

image/svg+xml

Bitcoin (BTC)

Use this QR to keep me caffeinated in style with crypto-currency

SATA HAT

Add an SSD to Raspberry Pi 4 and turn it into a super-cooled NAS drive.

More HATs

Argon One

Enclose Raspberry Pi 4 inside this great case with custom I/O, cooling and GPIO

More cases on

Best Raspberry Pi Projects

How to use Raspberry PI as WOL (wake on lan) server

0
While you could wake up your PC from a mobile directly, having a dedicated server capable of doing so is the best solution. The reason is simple. You can hook up as many devices as you wish with a single endpoint. This is why Raspberry Pi is perfect for this.

Free wireless doorbell (Amazon Dash button hack)

0
The most terrifying situation I can imagine* is missing a parcel

Raspberry Pi NAS: (NAS-pi) Modding like a boss #part2

0
Plex and RAID1 NAS drive build log

MagPi – auto-downloader

0
Grab each edition of Mag Pi as soon as possible!

HOW TO...

How to boot Raspberry Pi 4 from USB

0
How to set up and boot Raspberry Pi 4 from USB drive - headless guide.

Raspberry Pi Zero, Raspberry Pi 3A+ WiFi without keyboard or cables

0
Getting Raspberry Pi boards connected in seconds

Everything you need to start using JSON

0
It's JSON not Jason, just saying!

How to use Join App in NodeRED

0
The day finally comes where Join app is almost everywhere!

Driving LCD with Arduino and Raspberry Pi

0
Displaying things on an LCD screen is as easy as going through a cup of jellybeans while writing this tutorial!