Your Server’s Emergency Recovery Drive
Imagine your laptop will not boot. What do you do? You grab a USB recovery drive, boot from it, and fix things from the outside. Rescue Mode works exactly the same way for your VPS. It boots your server from a completely separate, minimal operating system — one that lives independently from your server’s main disk. Your actual disk just sits there, unmounted and untouched, waiting for you to mount it, inspect it, and repair whatever went wrong. This means Rescue Mode works even when your server’s operating system is completely destroyed. Corrupted bootloader? Broken kernel? Filesystem so damaged it will not mount? None of that matters — the rescue system boots from its own image and gives you a clean environment to work from.Difficulty
Advanced
Time
10-30 Minutes
When You Need Rescue Mode
Server Will Not Boot
The most common reason to use Rescue Mode. Your server is stuck in a boot loop, showing kernel panics, GRUB errors, or just a blank screen. Rescue Mode lets you boot independently, mount the disk, and fix whatever is broken.
Broken Configuration Files
A typo in
/etc/fstab can prevent your server from ever booting again. A bad network config means no SSH access. A misconfigured SSH daemon means you are locked out. Rescue Mode lets you edit these files from the outside and fix them.Filesystem Corruption
If your disk has filesystem errors (maybe from a sudden power loss or a failed update), you need to run repair tools on an unmounted filesystem. Rescue Mode gives you that — your disk is not mounted, so you can safely run
fsck to check and repair it.Data Recovery Before Rebuild
Sometimes the best option is to rebuild your server from scratch. But first, you need to grab important files — configuration backups, database dumps, website files. Rescue Mode lets you mount the old disk and copy everything you need before wiping it.
Entering Rescue Mode
Navigate to Your Server
Log into the VPS Control Panel at cloud.freakhosting.com. Click on Servers in the top navigation bar, then click Manage next to the server you need to troubleshoot.
Select the Rescue Sub-Tab
Click on the Rescue sub-tab. You will see the rescue mode description explaining that it boots a minimal operating system independent of the server’s main disk.
Choose a Rescue System
Select a rescue system from the dropdown. The available option is Linux (Debian Live) Rescue v1, which provides a full Debian-based recovery environment with all the standard repair tools pre-installed (fsck, mount, nano, chroot, and more).
Create the Rescue Session
Click the blue Create Rescue Session button. The system will automatically:
- Shut down your server
- Boot it from the rescue image (not your main disk)
- Provide you with temporary login credentials for the rescue environment
Connect to the Rescue Environment
Connect to your server using SSH with the temporary credentials provided. If SSH is not available (for example, if network issues are part of the problem), enable VNC access and log in through the web console instead. You now have full root access to the rescue system.
Essential Rescue Mode Commands
Before diving into specific scenarios, here are the foundational commands you will use in almost every rescue session:Finding and Mounting Your Server’s Disk
Your server’s main disk is not mounted automatically in Rescue Mode — that is the whole point. You need to find it and mount it yourself:Running Filesystem Repairs
If you suspect disk corruption (common after unexpected shutdowns or failed updates):Real-World Rescue Scenarios
Scenario 1: Fixing a Broken /etc/fstab
A bad entry in/etc/fstab is one of the most common reasons a Linux server refuses to boot. Maybe you added a mount point with the wrong UUID, or referenced a disk that no longer exists. Here is how to fix it:
Scenario 2: Recovering Files Before a Rebuild
Your server is beyond repair and you have decided to rebuild from scratch. But you need your data first:Scenario 3: Resetting the Root Password Manually
If the control panel password reset is not working (QEMU Guest Agent not installed), you can reset the password from Rescue Mode:Scenario 4: Fixing a Broken SSH Configuration
You editedsshd_config and now SSH will not start:
Scenario 5: Repairing the GRUB Bootloader
If GRUB is broken and your server will not boot past the bootloader:Exiting Rescue Mode
When you have finished your repairs:Unmount Everything
Make sure you unmount all partitions you mounted during the rescue session. Leaving them mounted can cause data corruption:If you used chroot, unmount the bind mounts first (
/mnt/sys, /mnt/proc, /mnt/dev) before unmounting /mnt.Will Rescue Mode affect my data?
Will Rescue Mode affect my data?
No. Rescue Mode boots from a completely separate image and does not touch your server’s main disk at all. Your data remains exactly as it was unless you explicitly mount the disk and make changes yourself. Think of it like booting a laptop from a USB drive — the hard drive is just sitting there, inactive.
Can I use Rescue Mode if my server will not start at all?
Can I use Rescue Mode if my server will not start at all?
Yes, that is the primary use case. Since Rescue Mode boots from an independent image provided by the hypervisor, it works even when your server’s operating system is completely destroyed, the bootloader is missing, or the filesystem is corrupted beyond automatic repair.
How do I find the correct disk to mount?
How do I find the correct disk to mount?
Run
lsblk to see all available disks and partitions. Your main disk is typically /dev/vda (virtio) or /dev/sda (SCSI), with the primary partition being /dev/vda1 or /dev/sda1. You can also run lsblk -f to see filesystem types and labels, or fdisk -l for detailed partition information.Is there a time limit on Rescue Mode sessions?
Is there a time limit on Rescue Mode sessions?
There is no strict time limit, but rescue sessions are meant to be temporary. Complete your troubleshooting, make the necessary repairs, and then exit Rescue Mode to return to normal operation. Do not run production workloads in the rescue environment.
Can I install software in the rescue environment?
Can I install software in the rescue environment?
Yes, the Debian Live rescue environment includes a package manager. You can install additional tools with
apt update && apt install <package> if needed. However, remember that anything installed in the rescue environment itself is temporary and will be lost when you exit. To install software permanently, chroot into your mounted disk first.What if I cannot connect to the rescue environment via SSH?
What if I cannot connect to the rescue environment via SSH?
If SSH to the rescue environment is not working, enable VNC console access from the Options > VNC tab. VNC connects through the hypervisor and does not depend on network configuration inside the rescue system.
Need Extra Help?
If you encounter any issues, our support team is ready to assist:- Live Chat: Quick assistance via our website.
- Support Ticket: Open a Ticket
- Discord: Join our Community
- Email: support@freakhosting.com
Last Updated: March 2026 | VPS Support: Rescue Mode simplified.