Installing OpenMediaVault on a USB flash drive |  Losst

OpenMediaVault is an open scalable network storage device (software NAS) management system based on Debian Linux. Includes software RAID (0,1,5,6), email client, SSH, (S) FTP, CIFS (Samba), NFS, DAAP media server, RSYNC, ISCSI, BitTorrent client.

The capabilities can be extended with plugins available through the repository. In this article, we will look at how to install OpenMediaVault on a USB flash drive, as well as how to configure the product before use.

The content of the article:

Installing OpenMediaVault on a USB flash drive

This means that the system itself will work from a separate flash drive, without affecting the main hard drives that are used to store files and other tasks. In my case, I took two 1TB HDDs and made a RAID 1 mirror out of them. I got a clean terabyte in the mirror, and the system is on a separate flash drive (I found this option very convenient). Installing and configuring OpenMediaVault:

  1. Download the system image from the page to sourcefoge;
  2. Using the Unetbootin program, we cut the image onto a USB flash drive and we get a bootable USB flash drive with the OpenMediaVault system;
  3. We take the SECOND USB flash drive (I took 16GB, maybe less), we do low-level formatting with the HDD Low Level Format program;
  4. We insert both flash drives into the computer that will be used for the NAS and through the BIOS we boot from the flash drive into which the image is cut, the installation will begin;
  5. We choose “Install”, follow the points. There is nothing special, select the language, location, keyboard layout;
  6. Next, the installation program will ask you to select the disk on which you want to install the system (at this stage, be careful not to confuse the disk where you want to install). I had 4 disks (2 terabytes – we do not touch them, a 16gb flash drive and another 16gb flash drive) I know that one of the flash drives is called transcend and it is empty – so we select it as the disk on which OpenMediaVault is installed;
  7. If there is an installation error (it will not be able to mark the area), then return to step 5 (full formatting is necessary with the destruction of the file system on the flash drive);
  8. After installing the system, the installer will start installing grub on the USB flash drive that you selected earlier and another error “Failed to install GRUB on / dev / sda” may pop up here. The problem is that my system has several disks, and dev / sda is the first terabyte to be in RAID, and the transcend flash drive is / dev / sdc (In your case, this may be dev / sdb or dev / sdd – look carefully when select the disk on which to install the system). GRUB tries to install itself on the wrong partition by default, so we’ll do it manually. Push the button “proceed”.
  9. Return to the main debian installation menu and select the item “Shell start”;
  10. In the shell, execute the following commands:
    chroot /target
    $ grub-install /dev/sd[a-z]

    Here az is the last letter of your flash drive that you chose to install the system. In my case, I wrote:
    grub-install /dev/sdc
    $ update-grub
    $ exit
    $ exit
  11. You are returned to the main Debian installation menu, then select “Continue without installing bootloader”;
  12. The installation completes, you are asked to remove the bootable USB flash drive on which you originally cut the image and the computer reboots;
  13. After rebooting, you are prompted to enter the Login string. Log in as root (you specified the password during installation). After logging in, enter the ifconfig command, it will prompt the IP address that the machine received. In my case it was, now the OpenMediaVault setting can be done with any device via the web interface. The login of the web muzzle is admin, the password is openmediavault.

Installing OpenMediaVault on a USB flash drive | Webilicious 10

Setting up an SFTP server

Next, configure the SFTP server (FTP working on port 22, i.e. if SSH is enabled, then secure FTP also works immediately):

  1. Go to bookmark “Services”“SSH” in the OpenMediaVault web face, enable SSH;
  2. Go to bookmark “Storage”“File systems”… Create an ext4 partition;
  3. Go to bookmark “Access rights management”“User”… We create a user, be sure to add it to the users and ssh groups;
  4. Go to bookmark “General Directories” and add a shared folder. We come up with a name for the ball, indicate the volume on which it will lie. The path will be created by itself based on the name. We save. Here we select the privileges and tick the read / write box for our user;
  5. We return to the section “User” and tab “Settings” include the home directory. The path will be named for the balls. The bottom line is this: ballname / username – this will be the home folder. It will be selected there by itself in the drop-down list;
  6. We install the CyberDuck program and with it you can connect via a secure ftp connection to our NAS. We write the server IP, login and password and port 22.


In this article, we have covered how to configure and install OpenMediaVault. For questions, write to ink.dude (at) or in the comments.

A new stable version has been released OpenMediaVault v3, the installation is carried out in exactly the same way, no problems should arise.

Installing OpenMediaVault on a USB flash drive | Webilicious 11

I’m installing a plugin omv-extras to install other plugins 🙂 There will be a lot of interesting things, I highly recommend it. First of all – reducing the recording of data on a USB flash drive, so that it will live longer

Official manual
1. Download the deb package for OMV 3.x
2. We go to the web muzzle of our nas and go to the “Plugins

Installing OpenMediaVault on a USB flash drive | Webilicious 12
3. Press the button “Download“and indicates the deb package that was downloaded earlier. We are waiting for it to download and install.
4. We are looking for it in the list of plugins (it will be called openmediavault-omvextrasorg), tick the box and press “Install“.
5. Refresh the openmediavault page and in the left pane under “System“you will see a new button with a picture of the OMV-Extras socket, go there and connect the repository which is on the test, the second in the list (before plex)

Installing OpenMediaVault on a USB flash drive | Webilicious 13
6. Return to the “Plugins“and now a lot of interesting things have appeared there, we are looking for openmediavault-flashmemory, tick the box – install, update the OMV page
7. On the left in the panel “Storage“a new button has appeared”Flash memory“, go into it and read” Notes “, there you need to manually correct fstab. There will be nothing criminal there, just connect via putty from the computer to your nas on port 22 under root and do what is indicated in the instructions, then enable the plugin and in reboot.

Installing OpenMediaVault on a USB flash drive | Webilicious 14

Installing Nagios on Ubuntu | Webilicious

Previous article

The Best CPU-Z Counterparts For Linux

Next article

You may also like


Leave a Reply

More in Linux