Linux and Windows are two of the most frequently used VPS operating systems. Sometimes, a few errors within their script may cause a failure. In this tutorial, we will tell you how to Recover Files from Corrupted Linux or Windows VPS.
If, for any reasons, the Operating System, whether Windows or Linux, does not load on your VPS server, you can follow this step by step guide and learn how to load the VPS into the Rescue Mode and grab your files off the server before formatting your VPS and installing a new Operating System on it.The first thing you need to do is to confirm that the Operating System does not load by connecting to the server via VNC and then reboot the VPS from your control panel a couple of times.
Note: If you don’t know how to use VNC — Please click here
As most of the corruptions happen in Windows VPS servers, we have written this guide around Windows VPS servers, but the same steps work for other Operating Systems as well.
How to Recover Files from Corrupted VPS
Step 1: Log In to Cloudzy and choose the VPS (in the ‘Services’ list)
First, log in to your Control Panel from https://support.cloudzy.com/clientarea.php.
Then click on ‘Services‘.
Click on the target VPS server which you want to reboot into Rescue Mode. (if you have multiple VPS servers, please make sure that you select the appropriate VPS instance.)
Step 2: Choose Rescue Mode
Choose the ‘Rescue Mode‘ just like the picture below:
Step 3: Enable Rescue Mode
Pick a password for the Rescue Mode. Then, click on Enable Rescue Mode.
Wait until the server reboots into Rescue mode.
It will show you a page like:
In this step, please wait 2-5 minutes. Then, refresh the page and you will see this message:
Now the VPS is loaded into the Rescue Mode. The Rescue Mode is Linux based utility for grabbing your data out of the server.
Step 4: Install WinSCP and login to the rescue VM
To transfer the data, you must download WinSCP software, which transfers files between Windows and Linux Operating Systems. So, follow the upcoming steps:
A) Download WinSCP.
B) Install the software and run it.
You will see the following window:
- Insert your VPS’s IP address into ‘Host Name:’
- Enter ‘root’ in the Username field.
- Enter the password that you had chosen when you enabled Rescue Mode.
- Click on ‘Login‘
Step 5: Press ‘Ctrl + ‘T‘ keys to open the Terminal
then click ‘OK‘ on the warning message, so a Terminal window opens.
Step 6: Run these commands (in WinSCP terminal)
Pay attention that you must run the following commands in this exact order:
apt-get update --allow-releaseinfo-change
apt-get install ntfs-3g -y
mount -t ntfs /dev/vdb1 /mnt
Step 7: Head Over to Root
Click on the right panel, then press ‘Ctrl + O‘ so the Open Directory window will pop- up. Write ‘/mnt‘, like in the following picture, and click on ‘Ok‘
Excellent! Now you can see the root page of your Windows drive, which will be like the image below:
Step 8: Download the Files
After doing all the above-mentioned steps, you can go to the folder/location where you have stored your files, right-click on files/folder, and click on download to download them onto your computer.
Some of the common locations you may have stored your files (for Windows VPS) are:
After downloading all the files/folders you were looking for, please go back to the VPS control panel and click on ‘Rescue Mode.’ Then, click on disable button and press ‘OK.’
I encourage you to check our article about Linux System Monitoring. The Linux system monitor tools are in charge of making sure that every system operation is working at its optimal level and that there are no server misbehaviors.
In the end, you can re-create the VPS by reloading to your desired Operating System. Please check here to find out how you can do that.