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)
18. Mounting and Unmounting File Systems (Tasks)
Overview of Mounting File Systems
Commands for Mounting and Unmounting UFS File Systems
How to Determine Which File Systems Are Mounted
How to Add an Entry to the /etc/vfstab File
How to Mount a File System (/etc/vfstab File)
How to Mount a UFS File System (mount Command)
How to Mount a UFS File System Without Large Files (mount Command)
How to Mount an NFS File System (mount Command)
x86: How to Mount a PCFS (DOS) File System From a Hard Disk (mount Command)
Prerequisites for Unmounting File Systems
How to Verify a File System is Unmounted
How to Stop All Processes Accessing a File System
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)
After you create a file system, you need to make it available to the system so that you can use it. You make a file system available by mounting it, which attaches the file system to the system directory tree at the specified mount point. The root (/) file system is always mounted.
The following table provides guidelines on mounting file systems based on how you use them.
|
You can mount removable media that contains a file system by inserting the media into the drive and running the volcheck command, if necessary. For more information on mounting removable media, see Chapter 1, Managing Removable Media (Overview).
The following table lists the commands in the /usr/sbin directory that you use to mount and unmount UFS file systems.
Table 18-1 Commands for Mounting and Unmounting UFS File Systems
|
For more information about mounting and unmounting ZFS file systems, see the Oracle Solaris ZFS Administration Guide.
Keep the following key points in mind when using the mount and mountall commands:
The mount and mountall commands cannot mount a read/write file system that has known inconsistencies. If you receive an error message from the mount or mountall command, you might need to check the file system. See Chapter 21, Checking UFS File System Consistency (Tasks) for information on how to check the file system.
The umount and umountall commands do not unmount a file system that is busy. A file system is considered busy if one of the following is true:
A user is accessing a file or directory in the file system.
A program has a file open in that file system.
The file system is shared.
You can use the remount option when remounting from read-only access to read-write access only. You cannot remount from read-write access to read-only access.
The following table describes the commonly used options that you can specify with the mount -o option. If you specify multiple options, separate them with commas (no spaces). For example, -o ro,nosuid.
For a complete list of mount options for each file system type, refer to the specific mount man page (for example, mount_ufs(1M)). For information about mounting ZFS file systems, see zfs(1M).
Table 18-2 Commonly Used -o Mount Options
|
An entry in the /etc/vfstab file has seven fields, which are described in the following table.
Table 18-3 Field Descriptions for the /etc/vfstab File
|
Note - You must have an entry in each field in the /etc/vfstab file. If there is no value for a field, be sure to specify a dash (-). Otherwise, the system might not boot successfully. Similarly, white space should not be used as a field value.