How to access data in Rescue Mode

This guide will help you to reach your files inside the Rescue Mode from Linux and Windows servers.

Step 1 #

Inside Customer Panel, please select your desired dedicated server and click on left menu Server Recovery.

rescuemode.png

Step 2 #

Please choose recovery template – Sysrescd-x86_64 and fill the password filed with the desired password.

Step 3 #

After submitting request, please wait a couple of minutes for booting rescue OS.

Step 4 #

Login to your server with username root and previously typed password.

Step 5 #

Type inside shell:

$ lsblk

You should get list of mount points (it can be different, depending of server’s configuration).

NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
loop0 7:0 0 502.2M 0 loop /livemnt/squashfs
nvme0n1 259:0 0 238.5G 0 disk
├─nvme0n1p1 259:1 0 200M 0 part
├─nvme0n1p2 259:2 0 1G 0 part
└─nvme0n1p3 259:3 0 237.3G 0 part
├─centos-swap 253:0 0 7.8G 0 lvm
├─centos-home 253:1 0 179.5G 0 lvm
└─centos-root 253:2 0 50G 0 lvm

Optional:
In this case, your files are located inside LVM container centos-root.

Please type:

$ lvscan
ACTIVE ‘/dev/centos/swap’ [7.75 GiB] inherit
ACTIVE ‘/dev/centos/home’ [179.52 GiB] inherit
ACTIVE ‘/dev/centos/root’ [50.00 GiB] inherit

Now you can see the root partition is located under /dev/centos/root

Step 6 #

Let’s mount the root partition inside Rescue OS:

$ mkdir /mnt/root $ mount -t auto /dev/centos/root /mnt/root

If your system doesn’t have LVM or it’s Windows installation, lsblk command should return in eg.:

NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
loop0 7:0 0 502.2M 0 loop /livemnt/squashfs
nvme0n1 259:0 0 238.5G 0 disk
├─nvme0n1p1 259:1 0 200M 0 part
├─nvme0n1p2 259:2 0 1G 0 part
└─nvme0n1p3 259:3 0 237.3G 0 part

or:

NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
loop0 7:0 0 502.2M 0 loop /livemnt/squashfs
sda 259:0 0 238.5G 0 disk
├─sda1 259:1 0 200M 0 part
├─sda2 259:2 0 1G 0 part
└─sda3 259:3 0 237.3G 0 part

In that case, you should mount your file system by using:

$ mkdir /mnt/root $ mount -t auto /dev/nvme0n1p3 /mnt/root

or:

$ mkdir /mnt/root $ mount -t auto /dev/sda3 /mnt/root

Your files are reachable under /mnt/root directory.