How to Turn a PC into a NAS with OpenMediaVault or Recover a Crashed RAID?

Can you turn an ordinary PC into a NAS storage system? Let’s discover how to install and configure the OpenMediaVault operating system, create a RAID, set up network access, and recover data from such a device.

How to Turn a PC into a NAS with OpenMediaVault or Recover a Crashed RAID?

OpenMediaVault (OMV) is a kind of a software-based NAS, an open scalable system for management of network storage devices, which is based on Debian Linux. This system includes the opportunity to create a software-based RAID, a mail client, a media server, a BitTorrent client, and other services such as: (SSH, (S) FTP, CIFS (Samba), NFS, DAAP, RSYNC). Its functionality can be expanded with plug-ins available at the repository.

One of the main advantages in OpenMediaVault is that it can be completely configured and managed through the web administrator’s interface, which makes it a ready-made solution most suitable for novice users and people who are taking their first steps in Linux, and generally quite a simple system to use.

As long as you have an old computer and at least three hard disks, it can become a decent low-cost alternative to a NAS storage system, and if you add a RAID on top, you’ll get a good option to keep your information secure.

Usually, network storage systems with OpenMediaVault include second-hand hardware, which may cause a storage system to break down, and make users lose important information.

When a NAS system fails, you can’t retrieve the information from the hard disks that used to make up the RAID array. Getting access to that data requires specialized software tools.

Go to view
How to Turn a Computer into a NAS Storage Device. How to Recover Data from OpenMediaVault RAID

How to Turn a Computer into a NAS Storage Device. How to Recover Data from OpenMediaVault RAID

How to install OpenMediaVault operating system

For starters, let’s explore how to install OpenMediaVault on an ordinary computer. Before you start the installation, you will need an ISO image of the OpenMediaVault boot disk.

OpenMediaVault ISO
Download OpenMediaVault

If you’re planning to build a RAID, you will also need at least three hard disks, one of them for the operating system. When the ISO image of the OMV operating system is downloaded, you should create a bootable USB drive. Use any available utility to write the image to the USB pen drive. Connect it to the computer where the operating system should be installed, restart it, and boot the computer from the USB drive. The OpenMediaVault installation screen will appear. From the boot menu, select “Install” and press the Enter button.

Installation of OpenMediaVault - Downloads menu - Install

In the next screen, select the language to be used during the installation, and in the ready operating system, and press Enter.

Select language for installation and OS

Specify your location and press Enter again. In the next window, choose the keyboard layout.

Specify your location

After that, type the host name, and the domain name. Set the password for your root (or system administrative account), and type the password again.

Type the host name

Also, specify the time zone. After that, the installation process begins.

The process of OS installation

After that, in the package manager window you should specify the country for a mirror of the Debian archive. Choose a country from the list and remember that the nearby locations may not be the best choice – “Continue”.

Specify the country for a mirror of the Debian archive

In the next window, the wizard will ask you to specify the device for the system loader – press Enter to confirm. The installation is over. Remove the installation disk and click “Continue” to finalize the process and restart the computer.

Specify the device for the system loader

Now OpenMediaVault NAS is installed on your computer. After the operating system restarts, the IP address of the OMV device will be displayed on the screen. To start managing it, open a browser on another computer, type the IP address into the address bar, and press Enter.

The IP address of the OMV device is displayed

To access the administrator’s web panel, type your login and password. By default, the name is “admin” and the password is “openmediavault”.

Access the administrator’s web panel

How to create a RAID on OpenMediaVault NAS

Now let’s find out how to create a RAID system on this network storage device we have just created. When you enter the OMV web control panel, jump to Storage, and then – to RAID Management. Click “Create” to build a new array.

Storage – RAID Management - Create

Assign a name, chose the RAID type, select the disks that your RAID will consist of, and click “Create”, then “Yes”. The notification appears to inform you that you have to wait until the initialization is complete before a file system can be created – OK. At the top of the screen, click “Apply” for the changes to take effect – then click “Yes” to confirm.

Assign a name, chose the RAID type, select the disks and click Create

After the RAID becomes active, go to the Storage tab – find “File Systems”, then click “Create”, choose a file system type for the array, and click OK.

Storage - File Systems - Create

When the file system is created, select the array from the list and find the “Mount” button above: click on it to make the storage accessible for the operating system. Just as before, click “Apply” at the top of the screen to save the changes.

When the file system is created, select the array and find the Mount button

After the RAID has been created, you can go on to add a new user account, create a shared folder and configure its permissions by navigating to the access permission menu.

How to create a shared folder

To add a folder that will be available for everyone, go to the tab “Access Rights Management” and open “Shared Folders”.

Access Rights Management - Shared Folders

Click on the “Add” button here, give the name for your folder, select the disk where it should be located, set access, read and write permissions, and then click “Save”. Now this folder is available on the network. To access it, you need to set up network protocols.

Give the name for the network folder, select the disk and set permissions

How to enable an FTP server

To configure an FTP server, you should enable it first, and then select shared folders to which you would like to grant access. Go to “Services” – “FTP”, and turn this protocol on. After that, set up advanced settings.

Services – FTP

It is better to disable the option “Require valid shell”, and to enable the option “Resume”. Enable “Anonymous FTP” to connect clients without limitations. Now any user can connect to the storage through FTP.

Enable Anonymous FTP to connect clients without limitations

However, you shouldn’t turn it on if you’re going to grant FTP access to your storage from the Internet. The meaning of other settings should be clear from their names. Now you can connect to the network drive and write your data there.

How to recover data from a RAID based on OpenMediaVault

A network-attached storage with OMV is typically a low-budget solution often assembled with second-hand computer parts, so the chances for such system to break down are somewhat higher.

If files are removed accidentally from a hard disk inside a NAS system, a hard disk is formatted, the disk array is misconfigured, or in other scenarios involving loss of data, loss of access to the network drive, or damage to the RAID volume, a specialized data recovery tool is what you need to restore your information.

Most NAS devices are running on Linux-based operating systems, and their hard disks are formatted for Ext file systems, while RAID arrays are typically built with the use of mdadm or LVM technology, and it becomes impossible to read their contents when such disk arrays are connected to a Windows computer directly.

To read the disks and retrieve any information from there, use the tried and well-tested data recovery tool for NAS solutions – Hetman RAID Recovery. It supports most popular file systems, technologies and RAID types, and in most cases it will be able to rebuild the damaged RAID automatically.

Recover data from damaged RAID arrays inaccessible from a computer.

Take the disks out of the network storage device and connect them to a Windows computer. When the operating system has booted, open Disk Management and check if the added disks are recognized. Windows may suggest to initialize or format the drives to be able to access them. Remember to never agree to either operation, because it can erase the remaining information completely.

Don’t initialize or format the disks

Download, install and start the data recovery tool. Hetman RAID Recovery will identify the disks automatically, read their service information and rebuild the damaged RAID system. Now the program has rebuilt the RAID volume on the fly and shows it at the top of the Drive Manager window.

Don’t initialize or format the disks

To have the disk contents displayed, scan it. Right-click on the disk and choose “Open”. Choose the scan type to run, and click “Next” to start searching for lost files. Wait for the process to be over, and then switch to search results by clicking “Finish”.

Select the scan type and start searching for files

The program has found all the files that have been written to the disk, even those that have been removed before; such files are marked with a red cross. You can use the preview window to see their contents. Select the files you want to recover and click “Recovery”, choose the disk where to save them and specify the directory, then click “Recovery” and “Finish”.

Recovering data

After that, follow the path you have chosen and check if the recovered files are there.

Hetman RAID Recovery offers extra features to improve effectiveness of working with RAID disks that have hardware issues. It lets you create disk images and then analyze these images instead of the actual hard disks in order to reduce disk usage and prevent them from breaking down at the most inappropriate moment.

It lets you create disk images

How to recover data manually, with the RAID Constructor

When a disk is damaged or service information is erased, the program may have difficulties with rebuilding the RAID automatically; however, you can do it manually with the RAID Constructor if you know the properties of this damaged array.

Rebuild the RAID manually with RAID Constructor

Open the Constructor, select “Manual mode”, and fill in all the information you know about this disk array: the RAID type, block order and size.

Add the disks it used to include, use the arrows to specify their order, and replace the missing disks with empty drives by clicking the “plus” button. Also, you can specify the offset that helps to locate the beginning of the disk. Sometimes, the program may have difficulty in identifying it automatically, so you’ll have to enter the offset value manually.

Give all array properties

Usually, if you give correct properties, the newly built RAID system has at least one partition. Expand it to check for the folders that you need. If the folders you are looking for are displayed, then you have built this RAID properly. When you specify all the properties you know, click “Add”, and the array will appear in the Drive Manager. To have the array recovered, the last step is to scan it, find the files you want to restore, select them, and recover to the folder you choose.

Vladimir Artiukh

Author: , Technical Writer

Vladimir Artiukh is a technical writer for Hetman Software, as well as the voice and face of their English-speaking YouTube channel, Hetman Software: Data Recovery for Windows. He handles tutorials, how-tos, and detailed reviews on how the company’s tools work with all kinds of data storage devices.

Oleg Afonin

Editor: , Technical Writer

Oleg Afonin is an expert in mobile forensics, data recovery and computer systems. He often attends large data security conferences, and writes several blogs for such resources as xaker.ru, Elcomsoft and Habr. In addition to his online activities, Oleg’s articles are also published in professional magazines. Also, Oleg Afonin is the co-author of a well-known book, Mobile Forensics - Advanced Investigative Strategies.

Recommended For You

Hello! This is AI-based Hetman Software virtual assistant, and it will answer any of your questions right away.
Start Chat