Q:

chroot question

I am wondering if there is anyone out there that can explain an error that happens when I try to use debootstrap.  
sudo debootstrap --arch i386 wheezy /srv/chroot/wheezy http://http.debian.net/debian
mknod: `/srv/chroot/wheezy/test-dev-null': Operation not permitted
E: Cannot install into target '/srv/chroot/wheezy' mounted with noexec or nodev

A:

The error is self-explanatory: the filesystem that is mounted at (or that contains) /srv/chroot/wheezy has either the noexec or nodev mount flags.  Try:
mount -o remount,rw,exec,dev /srv/chroot/wheezy

