Last active
June 23, 2017 09:03
-
-
Save theted/d936cb33239cdea00fd90b81cf568f5b to your computer and use it in GitHub Desktop.
Ubuntu chroot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo mount /dev/sda1 /mnt | |
sudo cp /etc/resolv.conf /mnt/etc/resolv.conf | |
sudo mount /dev/sda1 /mnt | |
sudo mount --bind /dev /mnt/dev && | |
sudo mount --bind /dev/pts /mnt/dev/pts && | |
sudo mount --bind /proc /mnt/proc && | |
sudo mount --bind /sys /mnt/sys | |
sudo chroot /mnt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment