How to Use Rescue Mode
Rescue mode starts your dedicated server once from a small Linux system that runs from memory, without touching the installed system. Use it when the installed system does not start or you cannot log in: you can then repair files, reset the root password or copy your data to another place.
1. Start Rescue Mode
Open your server in the Client Area and go to the Rescue tab (1). It lists the rescue images. Click Launch Rescue Mode (2).
Choose the image (1). For Linux servers, GRML Linux Rescue Image is a good choice: it has the usual Linux tools. Then click Launch Rescue Mode (2).
Launching rescue mode switches the power of the server off and on. Programs running on the server stop without a clean shutdown.
The rescue system answers SSH about 3 minutes later. The progress is in the Jobs tab.
2. Get the Rescue Password
Open the Credentials tab (1). The line RESCUE_MODE (2) has the user name root and the password for rescue mode. Click Show to read it or Copy to copy it.
The rescue system has its own password. Your usual root password does not work there.
3. Log In
Connect as root to the usual IP address of your server. The rescue system has a different SSH key than your installed system, so connect like this (with your server's address):
ssh -o UserKnownHostsFile=/dev/null root@YOUR.SERVER.IP
The option makes SSH forget the rescue key afterwards, so your computer keeps the key of your installed system. Type the command (1), answer yes (2), and at password: (3) type or paste the rescue password. The prompt (4) shows that you are in the rescue system.
In PuTTY, the window PuTTY Security Alert appears: choose Connect Once. More about connecting: How to Connect to a Linux Server via SSH.
4. Work With Your Disks
The disks of the server are not mounted yet. List them:
lsblk -o NAME,SIZE,TYPE,FSTYPE
The installed Linux system is usually the largest ext4 or xfs partition of the first disk. Mount it, here sda5:
mount /dev/sda5 /mnt
Your files are now under /mnt, for example /mnt/etc or /mnt/home. You can, for example:
- reset a forgotten root password: How to Recover the Root Password on Linux;
- repair a setting that stops the system from starting, for example a wrong line in
/mnt/etc/fstab(nano /mnt/etc/fstab); - copy your data to another server before a reinstall: Back Up Your Linux Server Before a Reinstall.
Commands Inside Your Installed System
To run a command of your installed system, for example passwd or apt, open its shell with chroot:
chroot /mnt /bin/bash
Type exit to return to the rescue system. Keep /bin/bash at the end: without it, chroot starts the shell of the rescue system, zsh, which your installed system usually does not have. You then get chroot: failed to run command '/bin/zsh': No such file or directory.
If Your Server Uses Software RAID
The rescue system does not start software RAID by itself. lsblk shows the partitions as linux_raid_member, and cat /proc/mdstat lists no arrays. Start them:
mdadm --assemble --scan cat /proc/mdstat lsblk -o NAME,SIZE,TYPE,FSTYPE
The arrays may get other numbers than in your installed system. With RAID 1, for example, the array of / can be md5 in the installed system and md125 in the rescue system. ls -l /dev/md/ also shows the names of the arrays, for example 51601-root -> ../md125. Mount the array, not one of its partitions:
mount /dev/md125 /mnt
Always mount the md device. If you write to a partition such as sda5 directly, the two copies of the mirror no longer match.
5. Leave Rescue Mode
Rescue mode is used for one start only. Unmount the disk and restart:
umount /mnt reboot
The server starts its installed system again. SSH answers again after about 3 minutes. You can also restart it with Restart in the Information tab.
If the rescue system does not answer within 15 minutes, look at the console (IPMI) or open a support ticket.



