Recover your files


Whatever your operating system is (Windows or Linux), if there is not a hardware fault, you can recover your files using the rescue mode.

Rescue mode

Start your Dedibox in rescue (recovery system) from your console. Wait until your server has become available (it takes 5 to 15 minutes depending on the servers hardware)

Connect yourself using putty if you are using Windows on your computer.

On Linux you can use SSH directly.


Gain root rights

You are connected to your Dedibox via an user account, therefore you don't have all rights.
This is the philosophy of Ubuntu, although in our case it's more annoying than anything else.
We'll go into the root account to get the right to do what we want.

Changing into the root user implies that you can perform unsafe practices such as deleting files.
Perform these commands your own risk.


sudo su

(and again the password displayed in the console. It is normal, that the password will not be shown when you type it)

Mount the partitions

As the title let you expect, it is time to mount your partitions.
If this stage passes, you can be pretty sure you can recover your files.

An script is available and you have to type as “root” >
The partitions will be available in the diretory /mnt

You will see some errors, the swap can not be mounted and also the partitions that are not existing. This is normal

Recover your valuable files...

Depending on your level of knowledge, you can select your files, or even erase everything, you do what you want. Here we will show you how to get ALL the contents of your disk (all partitions included) on your dedibackup storage.

We will install a FTP client that will work alone, and screen will allow us to run the computer without having to stay on with putty opened.

apt-get -y install screen lftp

Launch screen,


Press “Enter”. You can launch the transfer now:

lftp -u YOUR_DEDIBACKUP_LOGIN,YOUR_DEDIBACKUP_PASSWORD -e "mirror --reverse /mnt /; exit"

YOUR_DEDIBACKUP_LOGIN has to be replaced with your dedibackup login (typically sd- your server number).

YOUR_DEDIBACKUP_PASSWORD has to be replaced with your dedibackup password.
If you do not know it, change it in the console in order to know it.

Now, if all went well, all of your files should be in the process of copy on your dedibackup space.
You can browse and retrieve the files by logging on dedibackup via a FTP client.

To your personal PC (via SFTP)

The recovery mode supports by default the connection using SSH, it is therefore possible to connect from your computer using a SFTP client to recover your files.

In this example we use the client FileZilla

To connect yourself to the server, you need to fill in several values:

  • Host: The servers IP address
  • Identifier: The user name used to connect to the server
  • Password: The password of the recovery system
  • Port: Port 22
These details are available in your console once the recovery mode is launched.
Configuration example

The files can be found in the folder “mnt”, then “sda1” or “sda2”.

Now you can download your files before you reinstall or change your server.

If you do not feel able / do not have time to do these manipulations, you can contact an outsourcer