Mind Dump, Tech And Life Blog
written by Ivan Alenko
published under license Attribution-ShareAlike 4.0 International (CC BY-SA 4.0)copy! share!
posted in category Digital Despotism / Linux
posted at 11. Jan '16

Howto chroot to another linux installation

Chroot (change root) allows to switch to another Linux installation and use commands from the second system.

This way you can install Grub to correct disk, repair Grub, repair or update system, …

The only contraint is to have the same architecture for both systems (e.g. amd64).

To be able to use partitions on disks or hardware you need to properly mount proc, sysfs and dev for chrooted system.

cd /mnt/arch # or where you are preparing the chroot dir
mount -t proc proc proc/
mount -t sysfs sys sys/
mount -o bind /dev dev/
chroot .

Add Comment