Build a low cost NAS for RetroX using a Raspberry Pi

A convenient way to add games to RetroX is using a NAS server. This will allow you to share your game collection with all your RetroX devices in your home network. It’s like having your “own cloud” in your own home.

You can find several commercial NAS solutions, but for RetroX you can simply use a Raspberry Pi and one or more USB drives.

Using this guide, you will turn your Raspberry Pi into a cool NAS device for RetroX.

You will need:

  • 1 Raspberry Pi
  • 1 SD card for the operating system
  • 1 Ethernet cable (just for setup if you have a Wi-Fi dongle)
  • Optional: USB drives to store your games. The more, the better.

Step 1 – Install the operating system

The first step is to download OpenMediaVault (OMV). This is a Linux distribution to build a NAS server solution easily. It has a web-based console where you can do a lot of things, including sharing your folders for RetroX. This is what we will use as a base.

Just follow the instructions provided to create a bootable USB disk.

You will end up with OMV on your SD card. Put the SD card in your Raspberry Pi, connect the Ethernet cable and turn it on.

Step 2 – Initial setup

Once the system is booted, you will see the data required to connect to the web admin console on the screen, basically:

  • The IP address of your Raspberry Pi.
  • A user and password.

Open a web browser on any computer in your home network using the IP address provided. Then log in with the user and password.

In the screenshot below, my IP address is 192.168.30.102 and my username was admin.

OpenMediaVault login
OpenMediaVault login

Once logged in, set at least the following configuration:

  • General Settings -> Web Administrator Password: set your favorite password to log in to this web console.
  • Network -> General -> Hostname: This is the name for your NAS. Keep it short and simple.
  • Network -> Interfaces -> Add -> Wifi: Enable your Wi-Fi if you want to go wireless.

Step 3 – Adding storage

You can share any folder from your SD card. If that’s enough for you, you can skip this step.

If not, plug your USB drive and go to Storage -> File Systems. You will see your USB drive listed with its label. If you haven’t set a label on your drive, look at those devices named as “/dev/sd…“.

In this sample screenshot, I have two USB drives called FAT16GB and NTFS-32G.

Storage View
Storage View

At first, the drive will not be mounted, that is, the drive will be connected but not ready to be used by OMV. Just select the drive and then press Mount to make it available for OMV. Once mounted, you will see the amount of total and free space on the drive as shown above.

You can add as many drives as you want.

Step 4 – Create a user

You can share your folders to be accessed with no user/password, but that will restrict access to read-only, so you won’t be able to add new files from other computers. It is recommended to create a user that will be able to write to the drive.

Note that this doesn’t mean that you will need to put a user and password every time you access the drive, only that if you need to write to the drive, you can connect to your NAS with this authorized user.

Go to Access Rights Management -> Users and press Add to create a new user. Just set the name and password.

Consider using the simplest name possible: lowercase initials are a safe bet. Here I chose fcatrin as my username.

Create a user
Create a user

Step 5 – Create a shared folder

Shared folders in OMV are independent of the protocol being used to share them later (SMB, NFS, etc.). In this stage, you will define where the folder to share is located and how the permissions will be set.

In the following sample screenshot, the “games” folder in the FAT16GB device will be shared as RetroXGames.

Sharing a folder
Sharing a folder

Then press Privileges to define the users and their access level.

In the screenshot below, you can see that the user fcatrin has read/write access to the shared folder.

User permissions
User permissions

Step 6 – Enable the SMB/CIFS service

Your shared folders can be shared using several service protocols; here we will focus only on SMB/CIFS, which is what RetroX uses.

Go to Services -> SMB/CIFS and use at least these values in Settings:

  • General settings -> Enable -> Turn it on.
  • Workgroup -> WORKGROUP
  • Local master browser -> Allow
SMB/CIFS Settings
SMB/CIFS Settings

Final step – Share your folders using SMB/CIFS

Finally, in the same place, Services -> SMB/CIFS, go to Shares -> Add.

Set at least the following:

  • Enable -> On (of course).
  • Shared folder -> Select the shared folder that you want to share via SMB.
  • Public -> Choose one of:
    • No: A valid user is required.
    • Guest Allowed: You can access with a user or you can access with NO user.
    • Only guest: Always access with NO user.
  • Browseable -> On.
  • Hide dot files -> On (faster for big folders with a lot of hidden files).
Share folder via SMB/CIFS
Share folder via SMB/CIFS

And that’s all!
Now you will be able to access your Raspberry Pi as a NAS device from RetroX and other systems.

Your NAS on RetroX
Your NAS on RetroX