Hello,

i wanted to share how i was able to mount KVM VPS data from within Rescue mode.

In Virtualizor, one can put a VPS into rescue mode. There is a button for that.

To access rescue mode, just login the VPS via SSH as root with password you defined when enabling rescue mode.

df -h
Code:
Filesystem      Size  Used Avail Use% Mounted on
/dev/sda1       672M  636M     0 100% /
udev             10M     0   10M   0% /dev
tmpfs           201M  4.3M  196M   3% /run
tmpfs           501M     0  501M   0% /dev/shm
tmpfs           5.0M     0  5.0M   0% /run/lock
tmpfs           501M     0  501M   0% /sys/fs/cgroup
fdisk -l
Code:
Disk /dev/sdb: 5 GiB, 5368709120 bytes, 10485760 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x0005ddd0

Device     Boot Start      End  Sectors Size Id Type
/dev/sdb1  *     2048 10485759 10483712   5G 83 Linux

Disk /dev/sda: 1 GiB, 1073741824 bytes, 2097152 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x2dd1bce6

Device     Boot Start     End Sectors  Size Id Type
/dev/sda1  *     2048 1435647 1433600  700M 83 Linux
I tried:
mkdir /vps;mount /dev/sdb1 /vps;cd /vps;ls -l
and it works to mount VPS file system

then one can edit files or maybe send them away to the destination of choice:
scp -r /vps/home/directoryname/ user@remoteserverIP:/backups/

To exit rescue mode, do not reboot, but disable it in Virtualizor.