Installing OpenMediaVault on a flash drive

OpenMediaVault — open, scalable management system for network storage device (NAS software) 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.

Capabilities can be extended using plug-ins available through the repository. In this article we will discuss how to Install OpenMediaVault on a flash drive and how to setup the product before use.

Installing OpenMediaVault on a flash drive

Have in mind that the system will work with separate drives, without affecting the main hard disks, which are used to store files and other tasks. In my case I got two HDD 1TB and made them a RAID 1 mirror. I did clean terabytes in the mirror, and the system is on a separate drive (to Me, this option seemed very convenient). Installation and configuration of OpenMediaVault:

  • Download the system image from the page at sourcefoge;
  • Using the program Unetbootin cut the image on a flash drive and we get a bootable flash drive with the system OpenMediaVault;
  • Take the SECOND stick (I got 16GB, and can be less), do low-level format program HDD Low Level Format;
  • Insert both drives in the computer that will be used for NAS and using the BIOS boot from the stick, which sliced the image, the installation will start;
  • Select “Install”, follow the points. There is nothing special, select language, location, keyboard layout;
  • Next, setup will ask you to select the drive on which you want to install the system (at this stage, be careful not to confuse the disk where to put). I have 4 disks (2 Terabithia – they do not touch, 16gb flash drive on another USB flash drive 16gb) I know that one of the drives is called transcend and it is empty, respectively it and select as disk where you are installing OpenMediaVault;
  • If there is a setup error (can’t mark region), then return to step 5 (you need a full format with the destruction of the file system on the drive);
  • After the installation, the installation program will install grub on the stick, which was chosen earlier and there might pop up another error “failed to install GRUB on /dev/sda”. The problem is that in my system a few disks as dev/sda is the first terabyte which will be in RAID, and USB flash drive transcend /dev/sdc (In your case it could be dev/sdb or dev/sdd – look carefully when choosing the disk on which to put the system). GRUB by default attempts to install to the wrong partition, so we’ll do it manually. Click “continue”.
  • Return to the main menu install debian and choose the option “Start shell”;
  • In the shell execute the following command:
    chroot /target
    $ grub-install /dev/sd[a-z]

    Here a-z the last letter of your stick, which you chose to install the system. In my case I wrote:
    grub-install /dev/sdc
    $ update-grub
    $ exit
    $ exit
  • You returned to the main menu of the Debian installation, then choose “Continue without installing boot loader”;
  • The installation completes, you are asked to get a bootable USB flash drive on which you originally cut the image and the computer reboots;
  • After a reboot you are prompted to enter the string Login. Logintes as root (the password you specified during installation). Once logged in, enter the command ifconfig, it will tell you the IP address given to the machine. In my case it was 192.168.0.244, now configure OpenMediaVault can be performed with any device through the web interface. Login web muzzle admin, password is openmediavault.
  • Setup SFTP servers

    Then configure the SFTP server (FTP is running on port 22, i.e. if you have enabled SSH, and secure FTP also works immediately):

  • Go to the tab “Services”“SSH” in a web muzzle OpenMediaVault, turn on SSH;
  • Go to the tab “Storage”“File system”. Create a partition format ext4;
  • Go to the tab “access rights Management”“User”. Create a user, be sure to add it to the group users and ssh;
  • Go to the tab “Shared folders” and add the shared folder. Come up with the name balloon, you specify the volume on which it will lie. The path itself is created based on the name. Persistent. Here select privileges and put a check reading/writing our user;
  • Return to the section “User” and the tab “Settings” to include the home directory. The path will be called by the name of balls. The bottom line is this: imagery/username – this will be your home folder. It’s that will be selected in the drop-down list.
  • Put the program CyberDuck and you can use it to connect via a secure ftp connection to our NAS. Write the server IP, username and password and port 22.
  • Insights

    In this article, we reviewed how to manually configure and install OpenMediaVault. For questions write on ink.dude(at)mail.ru or in the comments.

    Update:

    Released a new stable version of OpenMediaVault v3, the installation is done exactly the same, no problems should arise.

    Put the plugin in omv-extras to install any other plugins:) There will be a lot more interesting, I recommend it highly. First of all – reduction of the data record on the stick to make it longer lived

    The official manual http://omv-extras.org/joomla/index.php/guides
    1. Download the deb package for OMV 3.x http://omv-extras.org/openmediavault-omvextrasorg_latest_all3.deb
    2. Go to the web face of our nas and go to the left pane in the tab “Plugins

    3. Click on the “Download” and points to the deb package that downloaded earlier. Wait until is downloaded and installed.
    4. Looking for it in the list of plugins (will be called openmediavault-omvextrasorg), check boxes and at the top click “Install“.
    5. Update the openmediavault page and in the left pane, under “System” will see a new button with the picture of the socket OMV-Extras, go there and connect the repository which is on the test, the second list (before plex)

    6. Go back to the tab “Plugins” and now there appeared a lot of interesting things, looking for openmediavault-flashmemory, check boxes – installed, updated the page OMV
    7. Left in “the Vault“, a new button “Flash memory“, go into it and read the “Notes”, there is a need to manually correct fstab. Nothing criminal there will not just connect with putty from a computer to your nas on port 22 as root and then do what is specified in the instructions, then enable the plugin and reboot.

    Source: losst.ru

    (Visited 466 times, 3 visits today)