System Administration Guide

How to Create a Loopback File System

  1. Become superuser.

  2. Create the directory where you want to mount the loopback file system and give it the appropriate permissions and ownership.

  3. 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. 

Example--Creating a Loopback File System

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.