Rescue Mode
Rescue Mode boots server with temporary live OS (on RAM), completely separate from main disk. Lets you access files, repair system and recover data even when server won't start normally.
02
When to Use Rescue Mode
- Forgot root password and can't access SSH
- Operating system corrupted and server won't start
- Damaged filesystem (fsck fails automatically)
- Need recover files from compromised server before reinstall
- Network or firewall config wrong blocking access
- GRUB corrupted
03
How to Activate Rescue Mode
- Access VirtFusion panel
- Select your server
- Go to Options
- Click Rescue Mode (or Boot into Rescue)
- Server will automatically restart into rescue system
- You'll get temporary credentials via email (rescue user and password)
04
Access Rescue Mode
Once activated, access via SSH with received credentials:
bash
ssh root@SERVER_IP
Or via VNC Console from panel.
05
Common Operations in Rescue Mode
Identify and Mount Main Disk
bash
# View available disks
lsblk
# Typical output:
# vda : main disk
# vda1 : main partition
# vda2 : swap (if present)
# Mount main partition
mount /dev/vda1 /mnt
# If partition uses LVM
vgscan
vgchange -ay
mount /dev/mapper/name-root /mnt
Restore SSH Access (chroot)
bash
# Mount disk
mount /dev/vda1 /mnt
# Mount necessary filesystems
mount --bind /dev /mnt/dev
mount --bind /proc /mnt/proc
mount --bind /sys /mnt/sys
# Enter system as if inside it
chroot /mnt
# Now can operate on original system
# Change root password
passwd
# Fix firewall
ufw disable
iptables -F
# Restart SSH (will run in original context at next boot)
# Exit chroot
exit
# Unmount everything
umount /mnt/dev /mnt/proc /mnt/sys /mnt
Repair Filesystem
bash
# Disk must NOT be mounted to run fsck
# Check and repair automatically
fsck -y /dev/vda1
# For XFS filesystem
xfs_repair /dev/vda1
Recover Important Files
bash
mount /dev/vda1 /mnt
# Copy files via SCP on your local computer
# (run from your PC, not from rescue)
scp -r root@SERVER_IP:/mnt/var/www/html/ ./backup-site/
scp root@SERVER_IP:/mnt/etc/nginx/nginx.conf ./nginx.conf.bak
Restore GRUB
bash
mount /dev/vda1 /mnt
mount --bind /dev /mnt/dev
mount --bind /proc /mnt/proc
mount --bind /sys /mnt/sys
chroot /mnt
# Reinstall GRUB
grub-install /dev/vda
update-grub
exit
umount /mnt/dev /mnt/proc /mnt/sys /mnt
06
Disable Rescue Mode
After completing operations:
Don't forget to disable Rescue Mode from panel. If server restarts manually in rescue mode, it will keep booting from rescue instead of your OS.
- Return to VirtFusion panel
- Go to Options
- Click Exit Rescue Mode or Boot from Disk
- Server will restart normally from main disk
Verwandte Artikel
VirtFusion
Network from Panel
How to manage IP addresses, reverse DNS and network interfaces from VirtFusion panel
2 Min. Lesezeit
VirtFusion
VirtFusion Control Panel Overview
Guide to sections and features of VirtFusion control panel to manage your VPS
3 Min. Lesezeit
VirtFusion
VNC / noVNC Console
How to access server via console even when SSH doesn't work
2 Min. Lesezeit
