A chroot
(change root) environment is a powerful feature in Linux that allows you to temporarily change the root directory (/
) of the current session to a different directory. In the context of our Rescue System, this means you can "enter" your server's main operating system to run commands as if it were normally booted.
This is essential for tasks like resetting passwords, repairing the bootloader, or fixing configuration files.
Prerequisites: This entire process must be performed from the Linux Rescue System.
→ Full Guide: How to Start Rescue Mode
After booting into recovery and connecting via SSH, you must mount your server's main partitions to access its files. The process differs slightly for RAID and non-RAID systems.
/
) and boot (/boot
) partitions using the lsblk
command./mnt
./mnt/boot
.