So, here's mostly you have to do to chroot:
mkdir /mnt
mount /dev/sda1 /mnt
cd /mnt
mount -t proc proc proc/
mount -t sysfs sys sys/
mount -o bind /dev dev/
chroot /mnt /bin/bash
Having just a shell in the chroot-ed environment is sometimes a nice idea, you could just
exit
to return to earlier environment.
0 rants:
Post a Comment