Linux chroot
mouse 1589 · person cloud · link
Last update
2017-01-28
2017
01-28
«rescue installed system»
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# mount installed root system
mount /dev/sdXY dir

# mount pseudo folders
cd dir
mount -o bind /dev dev
mount -o bind /sys sys
mount -o bind /proc proc

# open a shell into that system
chroot `pwd` /bin/bash

# ... do what you need ...
exit # end chroot

# clean mounts
umount *
cd ..
umount dir