Become superuser.
Create the directory where you want to mount the loopback file system and give it the appropriate permissions and ownership.
Create a loopback file system.
# mount -F lofs loopback-directory mount-point |
loopback-directory |
The file system to be mounted at the loopback mount point. |
mount-point |
The directory where the LOFS is mounted. |
This example shows how to use a new loopback file system with the chroot command to provide a complete virtual file system view of a process or family of processes:
# mount -F lofs / /tmp/newroot # chroot /tmp/newroot command |
See lofs(7FS) or mount(1M) for more information.