1. Managing Removable Media (Overview)
2. Managing Removable Media (Tasks)
3. Accessing Removable Media (Tasks)
4. Writing CDs and DVDs (Tasks)
5. Managing Devices (Overview/Tasks)
6. Dynamically Configuring Devices (Tasks)
7. Using USB Devices (Overview)
9. Using InfiniBand Devices (Overview/Tasks)
11. Administering Disks (Tasks)
12. SPARC: Adding a Disk (Tasks)
13. x86: Adding a Disk (Tasks)
14. Configuring Oracle Solaris iSCSI Targets and Initiators (Tasks)
15. The format Utility (Reference)
16. Managing File Systems (Overview)
17. Creating ZFS, UFS, TMPFS, and LOFS File Systems (Tasks)
Creating an Oracle Solaris ZFS File System
How to Create an Oracle Solaris ZFS File System
How to Create a UFS File System
How to Create a Multiterabyte UFS File System
How to Expand a Multiterabyte UFS File System
How to Expand a UFS File System to a Multiterabyte UFS File System
Troubleshooting Multiterabyte UFS File System Problems
Creating a Temporary File System (TMPFS)
How to Create and Mount a TMPFS File System
18. Mounting and Unmounting File Systems (Tasks)
19. Using The CacheFS File System (Tasks)
20. Configuring Additional Swap Space (Tasks)
21. Checking UFS File System Consistency (Tasks)
22. UFS File System (Reference)
23. Backing Up and Restoring UFS File Systems (Overview)
24. Backing Up UFS Files and File Systems (Tasks)
25. Using UFS Snapshots (Tasks)
26. Restoring UFS Files and File Systems (Tasks)
27. UFS Backup and Restore Commands (Reference)
28. Copying UFS Files and File Systems (Tasks)
An LOFS file system is a virtual file system that provides an alternate path to an existing file system. When other file systems are mounted onto an LOFS file system, the original file system does not change.
For more information, see the lofs(7FS).
Note - Be careful when creating LOFS file systems. Because LOFS file systems are virtual file systems, the potential for confusing both users and applications is enormous.
# 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
Example 17-4 Creating and Mounting an LOFS File System
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 newcommand
Example 17-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.
For more information on the /etc/vfstab file, see Field Descriptions for the /etc/vfstab File.