Mounting loopback in linux

If you are creating a chroot jail and need to mount a filesystem from outside the jail, you can mount it as loopback,
before entering the jail.
For example, to mount /etc inside /jail/etc
# mount –bind /etc /jail/etc
done.
286/433

Leave a Reply

Your email address will not be published. Required fields are marked *