Mount/Uninstall of Linux file system

Source: Internet
Author: User
Tags readable

After the partition is formatted, it must be accessed if the data needs to be stored. The root directory in the Linux file system is the highest directory, if you want to access the partition, then the partition must appear as a subdirectory under the root directory, so you need to create a mount point (that is, the directory), and then associate the directory with the partition (mount), the administrator can access the partition's data.

If you want to see which partitions are now mounted on the system, you can use the Mount command to view

In fact, the system mounted a lot of partitions

Here is our own mount. The parentheses are followed by some functional properties of the partition
Unload mount point

If the partition is being processed by IO, it cannot be uninstalled.
-A will mount all partitions in fstab that support automatic mounting, and in general, support automatic mounting as long as there is defaults
-r=-o ro Mount in read-only mode
-w=-o RW mount in a readable and writable manner
-L Mount Partition by volume label

-U mount partition via UUID
-N This option is best done without having to write mount information to the file system mounted by the current system/etc/mtab the file record, as the Mount command displays. Under normal circumstances, the system updates the/etc/mtab file while the mount succeeds, and the effect of this option is to mount successfully and do not need to update/etc/mtab

mTAB is actually recording the information of the system at this stage of the Mount
-O Parameters
Async async All I/O to the file system should be asynchronous this is similar to a cache write drive
Sync Sync all I/O to the file system should be synchronized this is similar to writing directly to the hard disk
Whether the Atime/noatime file or directory updates its access timestamp when it is accessed noatime can increase the speed of file access because the access timestamp is not modified.
Diratime/nodiratime This selection is only for the directory, the Directory access timestamp is modified
Remount Re-mount
ACL enable FACL feature CentOS6 default self-built file system does not support ACL CentOS7 default support Facl

-O Remount,acl first re-mount, then enable ACL feature Note (RW,ACL) This place does not support ACLs without ACLs. The Add ACL function in TUNE2FS is not displayed in parentheses. You can view a demonstration of the TUNE2FS command.

And then there's no error.

RO read-only mount content read-only
RW read-Write Mount content readable and writable
Dev/nodev allow creation of device files on the device is allowed by default
Exec/noexec whether the executable file on this device is allowed to run unknown device can use noexec when mounted
Auto/noauto whether to allow automatic mounting. File systems that typically require automatic mounting are written to the Fstab
User/nouser whether a normal user is allowed to mount the file system
Suid/nosuid Suid and Sgid are in effect in this file system
Relatime does not need to modify the access time every time, only if the access time is earlier than modify Time/change. The effect is that the file is modified before the access timestamp is modified.
Default functionality of the file system in CentOS7

Default functionality of the file system in CentOS6

Do an exercise.
Mounting the file system is to automatically run the program and not update the file's access timestamp

Mount/Uninstall of Linux file system

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.