Martin Michlmayr

HP mv2120 from the front

Installing Debian on the HP mv2120 and mv5020


In a nutshell, the installation of Debian on your HP mv2120 and mv5020 works like this: you use the recovery mode of the mv2120 to load the Debian installer image via the network. Debian installer will start and allow you to login via SSH to perform the installation. Debian will be installed to disk and the mv2120 will directly boot Debian from disk.

If you follow this procedure, Debian will be installed to your SATA disk and the HP firmware on disk will be replaced with Debian. Debian does not install a web interface to configure your machine, although it's possible to install such software. If this is not what you want, please don't proceed with the installation.

Requirements and Preparation

In order to install Debian on a HP mv2120, you need the following:

Making a Backup

You have to make a backup of all the data stored on your HP mv2120 before starting with the installation of Debian since Debian will format the whole disk during the installation.

Starting the Installer

The HP mv2120 has a recovery mode through which it can request a boot image via the local network. This recovery mode will be used to load the Debian installer. HP ships a tool for Windows to serve recovery images to your mv2120 and there is a tool called uphpmvault written by Marc Singer that does the same on Linux and other systems. You can obtain the Windows tool by going to HP's web site. First, search for mv2120, then choose Software & driver downloads and then download the HP Media Vault Firmware Recovery Utility. uphpmvault is in Debian so you can simply install it with apt-get.

Once you have installed uphpmvault or the Windows tool, you have to tell the tool to serve the recovery image. Download the Debian installer image and start the tool. If you want to use the Windows tool, please follow these instructions. To use uphpmvault, issue the following command:

uphpmvault netboot.img

Now you have to put your mv2120 into recovery mode:

uphpmvault will show the MAC address of the mv2120 and will give a status when it's recovering the device:

uphpmvault netboot.img
HP P2 NAS        00:0a:e4:83:64:1a (
Recovering 00:0a:e4:83:64:1a
File is 5849213 bytes in 11425 blocks of 512 bytes

Once the recovery has completed, your HP mv2120 will automatically reboot and the Debian installer will start.

The Installation

Since the HP mv2120 does not have any IO device, SSH will be used for the installation. The installer will bring up the network, start the OpenSSH server and you can then connect to the device using SSH. You have to wait approximately two minutes after starting the system before you can connect. When the installer is ready, it will change the health LED to to indicate that you can now login via SSH.

Here is a list of stages and the corresponding signals the boot process of Debian installer will go through:

Since the HP mv2120 does not have an LCD, the installer cannot tell you which IP address to connect to or which password to use. With regards to the IP address, the following strategy is used:

Please make sure that the HP mv2120 is on a local network to which only you have access since the installer uses a very generic password, namely install. The user is installer. Connect to the installer (again, replacing the address in the example with the actual IP address of your mv2120):

ssh installer@

The installation itself should be pretty standard and you can follow the installation guide. The installer knows about the HP mv2120 and will by default choose an appropriate partition layout. If you partition the disk manually, you have to make sure that sda1 is a /boot partition with type ext2 or ext3 (ext2 is recommended for the boot partition). You also have to set the bootable flag for this /boot partition, otherwise your mv2120 will fail to boot.

During disk partitioning, Debian installer will find an existing LVM logical volume on the disk and ask you whether it's okay to remove it. This is the existing logical volume from the HP installation but it cannot be used for your new Debian installation because the disk layout used by the HP firmware will not work for Debian. Please answer the question whether the logical volume data should be removed with yes (or cancel the installation and make a backup of your disk if you have not done so yet).

Debian installer: remove existing locical volume data

At the end of the installation, the installer will create a boot image on disk. Afterwards you will get a confirmation that the installation is complete. Confirm, wait for the installer to finish and once your SSH session terminates, wait a few minutes before you can connect to your newly installed system via SSH. The LEDs of your HP mv2120 will be used to indicate when you can connect via SSH. You will be able to log in as your newly created user.

The health LED is used to signal the status of the boot process. Here is a list of stages and the corresponding signals the boot process will go through:


You should now have a complete Debian system running on your HP mv2120. You can use apt-get and other tools to install additional software. The mv2120 is an ARM based device and the armel architecture is fully supported by Debian.

In case you run into any bugs or problems, you may want to check the list of known issues and bugs with Debian on the HP mv2120.

Go back to my Debian on HP mv2120 page.