|
|||
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 Solaris iSCSI Targets and Initiators (Tasks) 15. Configuring and Managing the Solaris Internet Storage Name Service (iSNS) 16. The format Utility (Reference) 17. Managing File Systems (Overview) 18. Creating UFS, TMPFS, and LOFS File Systems (Tasks) 19. Mounting and Unmounting File Systems (Tasks) Overview of Mounting File Systems 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) 20. Using The CacheFS File System (Tasks) 21. Configuring Additional Swap Space (Tasks) 22. Checking UFS File System Consistency (Tasks) 23. UFS File System (Reference) 24. Backing Up and Restoring File Systems (Overview) 25. Backing Up Files and File Systems (Tasks) 26. Using UFS Snapshots (Tasks) 27. Restoring Files and File Systems (Tasks) 28. UFS Backup and Restore Commands (Reference) 29. Copying UFS Files and File Systems (Tasks) |
Unmounting File SystemsThe unmounting of a file system removes it from the file system mount point, and deletes the entry from the /etc/mnttab file. Some file system administration tasks cannot be performed on mounted file systems. You should unmount a file system when the following occurs:
In an emergency situation, you can use the umount -f option to forcibly unmount a busy file system. This practice is not recommended under normal circumstances because the unmounting of a file system with open files could cause a loss of data. This option is only available for UFS and NFS file systems. Prerequisites for Unmounting File SystemsThe prerequisites for unmounting file systems include the following:
How to Verify a File System is UnmountedTo verify that you unmounted a file system or a number of file systems, examine the output from the mount command. $ mount | grep unmounted-file-system $ How to Stop All Processes Accessing a File System
The following example shows how to stop process 4006c that is using the /export/home file system. # fuser -c /export/home /export/home: 4006c # fuser -c -k /export/home /export/home: 4006c # fuser -c /export/home /export/home: How to Unmount a File SystemUse the following procedure to unmount a file system, except for the root (/), /usr, or /var file systems. Note - The root (/), /usr, and /var file systems can be unmounted only during a shutdown. The system needs these file systems to function.
The following example shows how to unmount a local home file system. # umount /export/home The following example shows how to unmount the file system on slice 7. # umount /dev/dsk/c0t0d0s7 The following example shows how to forcibly unmount the /export file system. # umount -f /export # The following example shows how to unmount all file systems in the /etc/vfstab file, except for the root (/), /proc, /var, and /usr file systems. # umountall All file systems are unmounted, except for those file systems that are busy. |
||
|