Skip to main content

Data Recovery

Bootowanie LiveCD

  1. Go to the VNC console and select the LiveCD image in the first drive.

  1. In the console’s left menu, select the „Commands” tab, then click „Hard Reset” and confirm the appearing dialog.

  1. During the reboot, in the left panel choose „Show Extra Keys” and press the ESC key.

WARNING:

This action must be quick and completed while the PROXMOX logo is displayed on the screen.

  1. The boot menu will appear. From the list, select the option containing the suffix "d_live". In our case, this is option 3.

  1. Next, the Debian screen will appear. Select the first option and wait for it to boot.

  1. A preliminary configuration window should appear. Click „Next” repeatedly until the end.

  1. Click "Start using Debian". You can now proceed to file recovery.

Mounting Partitions

  1. In the upper left corner, select "Activities" and search for Terminal.

  1. In the terminal, switch to the root account using:
sudo su root

Then check the number and names of available partitions with:

lsblk

In our example, there is one disk (sda) and one partition (sda1).

  1. Create a folder where you will mount your partition. Mount it to:
mount /dev/sda1 /odzyskiwanie

  1. Check if your files are present in the /odzyskiwanie folder.

Installing OpenSSH Server and Downloading Recovered Files

  1. Install the SSH server:
apt install -y openssh-server

  1. Change the root account password by entering:
passwd
  1. Edit the SSH server configuration file to allow root login:
nano /etc/ssh/sshd_config

In the config file, find the line containing PermitRootLogin and change its value as follows.

Then save and exit (CTRL + X → Y → Enter).


  1. Restart the SSH service using:
systemctl restart sshd
  1. Run WinSCP and log in using the password set in step 2.

  1. Navigate in WinSCP to the mounted folder and download the needed files to your computer.

WARNING:

Do not restart the server before downloading all your data. Otherwise, the recovery process will have to start over.

TIP:

If you have many files, consider packing them using the following tar command:

tar -cf backup.tar /odzyskiwanie/importantfiles/