Learning notes-"Linux Basics" mounting details (mount,umount and boot auto mount)

Source: Internet
Author: User
Tags uuid disk usage

Linux Basics (mount,umount and boot auto mount)Source: Linux Community Chawan

Original link http://www.linuxidc.com/Linux/2016-08/134666.htm


The following is a study of the author of this article to do some summary and learning experience.


    1. Important Concepts (Classic text quote)

Mount Concept Brief:

Files other than the root filesystem must be accessed by " associating" to a directory on the root filesystem, which is "mount", which is the "mount point", and the process of releasing this association is called "unloading".

1. Mount: Access is implemented outside the root file system by associating to a directory on the root file system

2. Mount point: Mount_point, used as access entry for another file system;

(1) prior existence;

(2) Directories that are not or will not be used by other processes should be used;

(3) The existing files under the mount point will be hidden;

PS: The term associated with this word in the documentation is attach to, a neural connection of a similar organism. The root filesystem is like the nerve center, and the hands and feet are linked to the nerve center. 】


2. Enquiry

1) System Mount Equipment roster:/etc/mtab (individual likes to open with vim) "précis-Writers: Mount Table"

2) file mount configuration file:/etc/fstab "précis-Writers: Files system table"

The difference between the two is that fstab the configuration file that was submitted at file system startup, mTAB is a running File mount table. The former belongs to static, while the latter is dynamically updated.


3.Mount

Command use format:mount [-FNRSVW] [-t vfstype] [-o options] device dir


Device(Mount object) can be:

(1) device files: e.g./dev/sda5

(2) Label:-L ' LABEL ', e.g.-l ' MYDATA '

(3) UUID,-u ' uuid ': for example-U ' 0c50523c-43f1-45e7-85c0-a126711d406e '

Theuuid is a string that identifies the storage device in your system and is designed to help the user uniquely determine all the storage devices in the system, regardless of their type. It can identify DVD drives, USB storage devices, and hard drive devices in your system. "

(4) Pseudo file system name: Proc, SYSFS, Devtmpfs, Configfs


dir ( mount point) should be:

(1) prior existence;

(2) The proposed use of empty directory;

(3) The device that the process is in use cannot be uninstalled;


4. Uninstall command:umount

The command uses the format:

Umount DEVICE

Umount Mount_point




4. The commands involved

1) Blkid: Gets the file system type, UUID, label

"Précis-writers: Block ID"

2) DF: Disk usage

"Précis-writers: disk Free"



Learning notes-"Linux Basics" mounting details (mount,umount and boot auto mount)

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.