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.
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)