How can I boot a FreeBSD VPS into rescue mode?

If your FreeBSD VPS won't boot, for instance, because of a broken bootloader or kernel, you can boot your VPS into rescue mode.

Rescue mode is also useful to copy files from an infected VPS, for resetting passwords and a variety of other things. When you boot your VPS into rescue mode, it is started from mfsbsd which can be used for resetting passwords, resizing partitions and so on. Please note that the root password is blank

 

Booting into rescue mode

In order to boot into rescue mode, just go to the server via the Tilaa dashboard and select "Start in rescue mode".  

Your VPS will start again, but this time, it will boot from the FreeBSD Live CD. You can view the boot progress from the Video Display.

When your VPS has finished booting, you see the following:

Screen_Shot_2017-12-31_at_15.14.07.png

Choose the shell option.

Configuring network and SSH

Run dhclient to obtain an IP address.

Screen_Shot_2017-12-31_at_15.21.48.png

Next make your /etc folder writable and configure your SSH configuration so that root access is possible.

Screen_Shot_2017-12-31_at_15.43.09.png

Enable root acces trough SSH.

Screen_Shot_2017-12-31_at_15.26.03.png

Set a root password and start the SSH service. 

Screen_Shot_2017-12-31_at_15.27.40.png

Mounting partitions and copying files

You can mount your freeBSD root partition, to copy files from it (using scp or rsync):

Screen_Shot_2017-12-31_at_15.31.36.png

Reset your password

Once your root partition is mounted chroot into this newly mounted partition and change your password.

Screen_Shot_2017-12-31_at_15.32.43.png

 

 

Have more questions? Submit a request

0 Comments

Article is closed for comments.