Unmounting a File System
If you no longer need to access the data in a file system, you can unmount the file system using the umount command.
Prerequisites
- A file system must exist and be mounted in order to be unmounted.
Usage Notes
- See the umount(1M) manual page for more information on mounting file systems.
- You cannot unmount a file system that is in use.
To unmount a file system using the command line
-
Use the fuser command to make sure that the file system is not being used:
# fuser -c /mount_point
where the -c option provides information on file system mount points and any files within mounted file systems.
Note
If the file system is being used and you need to unmount it, use the fuser -ck command. See the fuser(1M) man page for more information.
-
Unmount the file system using the umount command:
# umount special
or
# umount /mount_point
or
# umount -f /mount_point
where:
- special is a block special device
- /mount_point is the location where the file system is mounted
- -f forcibly unmounts the mount point
Example
To verify that the file system /db01 is not in use and then unmount the file system:
# fuser -c /db01
/db01:
# umount /db01
To unmount a file system on a volume using the GUI
-
Select the volume containing the file system to be unmounted.
-
Choose Actions > File System > Unmount File System.
-
Click Yes in the Unmount File System dialog box to confirm that you want to unmount the file system.
-
If an entry exists for a file system in the file system table, a Remove File System dialog appears. Click Yes in the Remove File System dialog if you want the file system table entry removed.
|