System Administration Guide

How to Preserve a Loopback File System

You can preserve a loopback file system across reboots or unmounts by adding an entry to the /etc/vfstab file. Edit the file to add an entry like this at the end of the file, separating each field with a tab.


/    -   mount-point  lofs   -   yes     -

mount-point

The default mount point directory (for example, /tmp/newroot).


Caution - Caution -

Make sure the loopback entry is the last entry in the /etc/vfstab file. Otherwise, if the /etc/vfstab entry for the loopback file system precedes the file systems to be included in it, the loopback file system cannot be created.


For more information about the /etc/vfstab file, refer to Chapter 28, Mounting and Unmounting File Systems (Tasks).