About mount and unmount
Mount or unmount file systems and remote resources.
mount [-p | -v ]
mount [ -F FSType ] [ generic_options ] [-o specific_options ] [ -O ] special | mount_point
mount [ -F FSType ] [ generic_options ] [-o specific_options ] [ -O ] special mount_point
mount -a [ -F FSType ] [ -V ] [ current_options ] [-o specific_options ] [ mount_point … ]
umount [ -V ] [ -o specific_options ] special |mount_point
umount -a [ -V ] [ -o specific_options ] [ mount_point… ]
-p | Print the list of mounted file systems in the /etc/vfstab format. Must be the only option specified. |
-v | Print the list of mounted file systems in verbose format. Must be the only option specified. |
-F | Used to specify the FSType on which to operate. TheFSType must be specified or must be determin able from /etc/vfstab, or by consulting /etc/default/fs or /etc/dfs/fstypes. |
-m | Mount the file system without making an entry in /etc/mnttab. |
-r | Mount the file system read-only. |
-o | Specify FSType-specific options in a comma separated (without spaces) list of suboptions and keyword-attribute pairs for interpretation by the FSType-specific module of the command. |
-O | Overlay mount. Allow the file system to be mounted over an existing mount point, making the underlying file system inaccessible. If a mount is attempted on a pre-existing mount point without setting this flag, the mount will fail, producing the error “device busy”. |
-a | Perform mount or umount operations in parallel, when possible.If mount points are not specified, mount will mount all file systems whose /etc/vfstab “mount at boot” field is “yes”. If mount points are specified, then /etc/vfstab “mount at boot” field will be ignored.
If mount points are specified, umount will only umount those mount points. If none is specified, then umount will attempt to umount all filesystems in /etc/mnttab, with the exception of certain system required file systems: /, /usr, /var, /proc, /dev/fd, and /tmp. |
-V | Echo the complete command line, but do not execute the command. umount generates a command line by using the options and arguments provided by the user and adding to them information derived from /etc/mnttab. This option should be used to verify and validate the command line. |
Mount a local disk:
mount /dev/usr /usr
Mount a MS-DOS floppy:
mount -F dos /dev/rdsk/fds0d2.3.5 /floppy
Mount a Macintosh HFS floppy:
mount -F hfs /dev/rdsk/fds0d3.3.5hi /floppy
Mount a HFS CD-ROM:
mount -F hfs /dev/rdsk/dks0d7vol /cdrom
Mount an ISO 9660 CD-ROM:
mount -F iso9660 /dev/rdsk/dks0d7vol /cdrom
Unmount floppy:
umount /dev/fd0