Linux common commands--mount, umount

Source: Internet
Author: User

mount 磁盘分区功能

Syntax format: mount "option" "Device" "dir" mount [options] [device] [directory]
Attention:

    1. There must be at least one space between each element in the Mount command and in the following options, devices, and directories
    2. 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:

    1. There must be at least one space between each element in the Umount command and in the following options, devices, and directories
    2. 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.