Linux File System Mount management

Source: Internet
Author: User

Mount multiple parameters separated by commas:

Example mount mount and query the partitions that have been mounted:

Examples of commands with parameters:

The default is read-write, you can create files:

After changing to RO:

Add sync parameter, do not use cache, the disadvantage is slow reading and writing, the advantage is high security.

Add the async parameter, use the cache, the disadvantage is not secure, the advantage is that the read and write speed is fast. Default Async

Examples are as follows:

The last one can be seen by sync.

Example Umount: (similar to a USB flash drive eject:)

When the program is in normal use: Prompt as follows: (busy) because the working directory is occupied

See which programs and files are in use: (Lsof mount point)

Switch to another working directory with the CD command, and you can uninstall it.

Auto Mount: (configuration file Settings)

Open it:

The configuration is as follows: (non-root user login Not saved note, should switch root user before operation)

Below use VI operation, enter the following command: Vi/etc/fstab, go to the following interface: (after adding)

View after configuration:

Then reboot via the reboot command and re-enter the system via Mount View:

To mount with a label, without a path: (before setting the label, uninstall it) you can see that the volume label has been set

Set configuration parameters by entering VI:

Linux File System Mount management

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.