For more information, see Using Your Assigned Administrative Rights in Securing Users and Processes in Oracle Solaris 11.2 .
# mkdir loopback-directory
# mkdir /mount-point
# mount -F lofs loopback-directory /mount-point
Specifies the file system to be mounted on the loopback mount point.
Specifies the directory on which to mount the LOFS file system.
# mount -v
The following example shows how to create, mount, and test new software in the /new/dist directory as a loopback file system without actually having to install it.
# mkdir /tmp/newroot # mount -F lofs /new/dist /tmp/newroot # chroot /tmp/newroot newcommandExample 2-5 Mounting an LOFS File System at Boot Time
You can set up the system to automatically mount an LOFS file system at boot time by adding an entry to the end of the /etc/vfstab file. The following example shows an entry in the /etc/vfstab file that mounts an LOFS file system for the root (/) file system on /tmp/newroot.
/ - /tmp/newroot lofs - yes -
Ensure that the loopback entries are the last entries in the /etc/vfstab file. Otherwise, if the /etc/vfstab entry for a loopback file system precedes the file systems to be included in it, the loopback file system cannot be mounted.