Cloud Rescue Mode

From Nitradopedia EN
Jump to: navigation, search

If a Cloud Server doesn't boot or has file system issues, you can boot a Linux live rescue system via our Webinterface. The start of the rescue system takes up to 15 minutes. After the rescue system has booted you can login via SSH to your server.


If you login via SSH you will get a information that the SSH keys on the server has been changed (man-in-the-middle-attack warning). You need to reset the key locally on your machine with "ssh-keygen -R <your ip address or hostname>", then you will able to connect with SSH. After you boot up your disk image again you need to replay this task.


Running fsck

To repair your system disk after a file system crash please use fsck for this. Y should take a look into the fsck documentation for further parameters.

fsck /dev/sda1

Mounting your disk

To fully use your disk on the rescue system mount the root partition inclusive /proc /sys and /dev to use chroot.

mount /dev/sda1 /mnt
mount --rbind /proc /mnt/proc
mount --rbind /sys /mnt/sys
mount --rbind /dev /mnt/dev


Optional you can enter your server with chroot. Chroot can be used for example to reset the root password.

chroot /mnt /bin/bash

If DNS resolving does not work, please add DNS servers:

echo "nameserver
nameserver" > /etc/resolv.conf

If you get the error "'/etc/resolv.conf': No such file or directory" there is maybe a symlink. To fix this issue, please remove the symlink.

Reset Windows Administartor password

If you have Windows on your Cloud Server running you can use the recovery mode also to reset your Administrator password.

First of all you need to mount your NTFS volume on the server.

ntfs-3g /dev/sda1 /mnt/

Then reset your password:

cd /mnt/Windows/System32/config
chntpw -u Administrator SAM

You need to confirm with pressing 1 (Clear (blank) user password). Then exit the program with pressing q.

Reboot the server and login to Windows with a empty password field in the emergency console. Then you are able to change your Administrator password again.