access proc and dev filesystems within chroot

When working with a chroot environment, mounted to /mnt/chroot, the real dev and proc filesystems must be mounted via bind to be used in the chroot environment.

mount -t proc none /mnt/chroot/proc
mount -o bind /dev /mnt/chroot/dev
categories: linux |