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
Time
When You Need Rescue Mode
Server Will Not Boot
Broken Configuration Files
/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
fsck to check and repair it.Data Recovery Before Rebuild
Entering Rescue Mode
Navigate to Your Server
Open the Options Tab
Select the Rescue Sub-Tab
Choose a Rescue System
Create the Rescue Session
- 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
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
/mnt/sys, /mnt/proc, /mnt/dev) before unmounting /mnt.Return to the Rescue Tab
End the Rescue Session
Will Rescue Mode affect my data?
Will Rescue Mode affect my data?
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?
How do I find the correct disk to mount?
How do I find the correct disk to mount?
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?
Can I install software in the rescue environment?
Can I install software in the rescue environment?
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?
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