Raspberry-PI OpenMediaVault NAS Build

From LearnLinux.tv Wiki
Jump to navigation Jump to search

Overview

If you want to build a Network Attached Storage device on a Raspberry Pi, this video is for you. Using a Raspberry Pi 4, the Argon One M.2 case, and OpenMediaVault - I show you how to build a NAS of your very own. I'll cover an unboxing of the case, assembly, OS tweaks, and I'll go over a one-line command to install OpenMediaVault.

Relevant Links
Original Video
Raspberry Pi OS Downloads
USB Imager
List of build components (commissions earned)

Build Steps

Required Components

  • Raspberry Pi Board
  • Power Cable
  • SD Card
  • Raspberry Pi OS (free download)

Optional Components

Argon One M2 Case SSD

Install Raspberry Pi OS

Download the zip file for Raspberry Pi OS (Lite version used in the video) and flash it to an SD card with usbimager. Note: Everything on the SD card will be wiped out.

Enable OpenSSH

Remove/reinsert the SD card. You should find a partition labeled "Boot". Inside that partition, create an empty file named "ssh" with no filename extension. This will cause OpenSSH to be enabled at first boot.

Set the hostname

Be sure to set the hostname of your Pi. After you boot it up, enter the following commands to edit the hostname. Basically, you are editing two files:

sudo nano /etc/hostname

sudo nano /etc/hosts

You can set the hostname to whatever you want, or use "omv" if you don't have a name of your own.

Install Updates

Be sure to install all updates. Run the following command to do so:

 sudo apt update && sudo apt dist-upgrade

Configure OS options

Set locale options
sudo raspi-config

Go to "localisation options", then "locale". Find your locale, press space to insert an asterisk for your locale

Set the time zone

Go to "localisation options", then "locale". Set your time zone there.

Install the safe shutdown script

Switch to root:

 sudo su -

Run the install command:

 curl https://download.argon40.com/argon1.sh | bash

Install OpenMediaVault

Run the following command (may take a while):

 sudo wget -O - https://github.com/OpenMediaVault-Plugin-Developers/installScript/raw/master/install | sudo bash

Log in to OpenMediaVault, and configure it

You should be able to log in to OpenMediaVault and set it up to your liking. Enter the IP address or the hostname of your Pi into a browser address bar. The default login is:

Username: admin Password: openmediavault