Skip to content

Instantly share code, notes, and snippets.

@sdoro
Last active December 10, 2015 06:08
Show Gist options
  • Save sdoro/4391898 to your computer and use it in GitHub Desktop.
Save sdoro/4391898 to your computer and use it in GitHub Desktop.
mount/umount before/after chroot inside Knoppix
exit
umount $KNO/source/sys
umount $KNO/source/proc
umount $KNO/source/dev
# export KNO=/home/sdoro/netkit/kno705 && cd $KNO
mount --bind /dev $KNO/source/dev
mount --bind /proc $KNO/source/proc
mount --bind /sys $KNO/source/sys
chroot $KNO/source
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment