How to configure your own NAS with Linux and Raspberry Pi

This tutorial covers setting up your own NAS with Linux and Raspberry Pi. We will do our best to make sure you understand this guide. I hope you will like this blog How to configure your own NAS with Linux and Raspberry Pi. If your answer is yes, please share after reading this.

Check out how to set up your own NAS with Linux and Raspberry Pi

Do you have a large number of recordings lying around like photos, videos, files, movies, music on your PC? Are you worried about being disappointed with the album? Do you need to build a network attached storage (NAS) to avoid being overpriced, however?

In case your answer is yes to all of the above questions then at that point this business is right for you! With the more advanced processing speed and execution of the Raspberry Pi 4 along with USB 3.0 and Gigabit Ethernet, you can assemble a sleek NAS server at an economically smart cost.

Before we go any further, I would also prefer to draw your attention to our new article on NAS and RAID in Edge Server Applications. It will incredibly complement the content included in this article, so be sure to read it!

How to configure Raspberry Pi in NAS?

  • If you have the necessary hardware for your own NAS server, you can devote yourself to installing and configuring the software necessary for its operation. There are several ways to do this, and one of the most popular is to download OpenMediaVault under the GPLv3 license, which has become the standard.
  • The Debian-based Linux / Raspberry Pi distribution includes services like SSH, (S) FTP, RSync, and a BitTorrent client, which can be operated through a web interface, making it the perfect solution for setting up a Raspberry Pi. NAS . Thanks to its modular structure, the range of functions can be extended at any time by means of plugins.
  • In the following tutorial, you will learn how to install OpenMediaVault and what steps are required to implement the procedure from your own Raspberry Pi NAS server.

Download and install OpenMediaVault

  • As with Raspbian or other versions of Raspberry Pi, you need an external computer to download and install OpenMediaVault. On this page, you can access the official SourceForge directory for open source software, which contains the corresponding image file for Raspberry Pi models 2 and 3.
  • Download the file, which is just over 300 megabytes, and write it to a microSD card using imaging software like Etcher.

Start the Raspberry Pi NAS and change the keyboard layout

  • In most cases, you will need to connect your monitor and keyboard to the Raspberry Pi to continue. Once you have done that, start the boot and installation process with the microSD card, until you can log into the NAS program through the shell for the first time. You can do this using the following standard login information:

Username: root Password: openmediavault

  • Since the US keyboard is pre-selected in OpenMediaVault, you may need to change the keyboard layout if you are accessing from another country.

Change password and view IP address

  • After switching to the correct keyboard language, it is time to assign a new root password for shell access to your Raspberry Pi NAS to prevent unauthorized users from logging in with the default password. familiar.
  • The required command is:


  • Enter the new password twice and confirm the entry in both cases by pressing the Enter key.
  • If the change was successful, the command line displays the message (“Password updated successfully”).
  • Use the “iconfig” command to start the command line program of the same name, which provides you with all important information about the network.
  • The IP address (“inet addr”) listed in “eth0” is particularly important for later configuration of your Raspberry Pi NAS server. This is the address assigned by your router to the NAS server.

Log in to the web interface

  • Once you have laid the groundwork for using the Raspberry Pi as a NAS server in the steps above, you can now log into the web interface where the actual configuration is done.
  • To do this, switch from the Raspberry Pi to another computer that is only on the same network and must have a standard internet browser.
  • Launch the browser and enter the IP address your router assigned to the Raspberry Pi NAS in the address line. There is also a predefined default connection for the NAS distribution.

Username: admin Password: openmediavault

  • After a successful connection, the OpenMediaVault start menu opens, offering an overview of the available services and various information about the services.
  • A first possible configuration step is to set the system date and time (“Date and time”).
  • If your network is connected to the Internet, you can check “Use NTP server”; otherwise, just enter the corresponding times manually.

Securing the web interface

  • Since you make all the important settings on your Raspberry Pi NAS server through the web interface, it makes sense to secure the connection as completely as possible.
  • This is done by default over the unencrypted HTTP protocol, so it is recommended to enable the encrypted HTTPS peer.
  • To do this, select the “General preferences” menu item in the “System” partitions and move the cursor to “Secure connection”. To use TLS / SSL you also need a certificate which can be created in “System” -> “Certificates” -> “SSL”. Just click “Add” and in the next pop-up window click “Save”.
  • Enter the certificate in the general settings, click “Save” again and confirm the decision. Using the three-dot symbol, then disconnect the current connection from the web interface and replace the HTTP in the address line with HTTPS to start a new connection (this time over TLS / SSL).
  • Since the browser does not yet know the certificate, a warning will appear until you add the certificate as an exception. Please log in one last time with standard data to enter your own password in “System” -> “General settings” -> “Web administrator password”.

Connect the storage medium to the Raspberry Pi NAS

  • In order for the NAS server to function as a central file storage location, the respective storage media must be connected to the Raspberry Pi and configured on the web interface.
  • If there is a power supply and a physical connection, you can view the data carriers in the “Real Hard Drives” partition of the “Data Storage” partition. If OpenMediaVault does not automatically detect a disk, you may need to use the “Find” button.
  • Various partitions of your connected media can be found under “File systems”. If any of the storage units you added is missing, you can add it using the “Create” option. Then check the individual storage drives you want to include and add them to the Raspberry Pi NAS system using “Mount”.

Configure file sharing on included partitions

  • To allow users to later store files on connected data storage devices, share the corresponding folders in “Access Control”. To do this, click on the sub-menu item “Shared folder” and then on “Add”.
  • Start with the user directory (also called “home” directory) to which you must assign the path home /. However, with all the other files, you can let your imagination run wild regarding the name and the path.

Creation of user profiles to access the Raspberry Pi NAS server

  • Once you have added storage capacity to the Raspberry Pi NAS and structured it accordingly, the next step is to create a user profile. You can do this in the “User” section of the menu (or via “Access Control”). Click on the “Add” option and enter the corresponding user data (name and password).
  • Move the slider under “Edit Access” if you want to allow a user to adjust their login information. Then reopen the shared folders overview, select the relevant folders for access and assign the corresponding rights (read / write, read only or no access).

Configuring access services for the Raspberry Pi NAS server

  • Finally, it is important to clarify how users can exchange data with the NAS server. SSH (secure shell) is enabled by default, but only Linux users (via terminal) can use it without the need for additional software.
  • Windows users need client applications such as PuTTY or WinSCP for data transfer over network protocol.
  • Therefore, a more practical solution is the cross-platform SMB (Server Message Block), which you can activate under “Services” -> “SMB / CIFS”.
  • Windows has supported the default protocol for years, while Linux and macOS have used Samba, which is also a suitable solution. When activating the service, also check “Activate user home directories” before adding the folders that you want to make accessible via the protocol in the “Shares” tab.

Access the Raspberry Pi NAS

  • All the important points for running and using the Raspberry Pi NAS server are now fixed, so that the start signal for central file storage can be given.
  • Users only need to connect to the server. If you are using Linux or Ubuntu, open the file manager and select the “Connect to server” option. Then enter the server address with the smb: // prefix and the connection starts.
  • Windows users establish an SMB connection to the Raspberry NAS through Windows Explorer. In this case, just enter the IP address after inserting the double backslash (“”).

Final words: How to configure your own NAS with Linux and Raspberry Pi

hope you will understand this item How to configure your own NAS with Linux and Raspberry Pi, if your answer is no, you can request anything through the contact forum section linked to this article. And if your answer is yes, then share this article with your family and friends.

Comments are closed.