mount 磁盘分区功能
Syntax format: mount "option" "Device" "dir" mount [options] [device] [directory]
Attention:
- There must be at least one space between each element in the Mount command and in the following options, devices, and directories
- The mounted directory must be pre-existing and preferably empty, if the directory is not empty, then mount the device will cover up the previous directory content, but the contents of the original directory will not be damaged, so, if written in the corresponding device, then the contents of the previous directory can be accessed
Option Description:
parameter Options |
Explanatory notes |
-A |
Hangs in file system according to the configuration in the/etc/fstab file |
-L |
Displays information about devices that are already mounted on the system |
-T |
Specifies the file system type to mount, and if you do not set the-t parameter, or use the-T auto parameter, the mount command chooses the mounted file type itself |
-O |
followed by some mounting options, is an important option for security performance optimization |
-R |
Read-only mount, equivalent to-o ro mount mode |
-W |
Read-write mount, equivalent to-o RW mount mode |
Case one:
Display information to mount
Case TWO:
RELATED Links: http://blog.sina.com.cn/s/blog_545f2b4701010lyn.html
umount 卸载文件系统
Syntax format: umount "option" "Device" "dir" umount [options] [device] [directory]
Attention:
- There must be at least one space between each element in the Umount command and in the following options, devices, and directories
- Umount Uninstall can pick up the mount point directory, can be connected to the device file
Option Description:
parameter Options |
Explanatory notes |
-F |
Force Uninstall |
-L |
Lazy uninstallation, separating the file system from the file system hierarchy and clearing all references to the file system. The general and-f parameters work better with their unload effect |
Case one:
RELATED Links: Http://man.linuxde.net/umount
Linux common commands--mount, umount