Common Linux Commands: Mount/umount/blkid

Source: Internet
Author: User

One, Mount: Mount command

1. Command format

mount [parameter] [device name] [Mount Point]

2. Common parameters

-A: Install all file systems listed in the/etc/fstab file

-F: Disguise mount, make check device and directory appearance, but do not really mount file system

-R: Installing the file system as read-only

-V: Detailed display of installation information

-W: Install the file system as writable (default command)

-T: Developing the device's file system type (EXT2/EXT3/EXT4/XFS/NFS/NTFS/AUTO/DEFAULTS)

Second, Umount: unloading equipment

1. Command format

umount [parameter] [Mount Point]

2. Common parameters

-A: Uninstalling all file systems recorded in the/etc/mtab

-N: Do not store information in the/etc/mtab file when uninstalling

-R: Attempt to re-mount the file system as read-only if it cannot be successfully uninstalled

Third, Blkid: Get file system type, UUID

Iv. Automatic mount of Boot

1. Use Blkid to view the UUID of the device

2. Write the mount command to the/etc/fstab file

#使用UUID挂载UUID=0e01e144-f321-478d-a234-c396c698688a/    boot           ext2    defaults        0       2#使用设备名称挂载/dev/md127    /mnt/raid0      xfs     defaults        0
   0

3. Check with Mount-a

Add: Use the device name to do the boot automatically mount, there is a risk, because the device name every time the boot is likely to change, if the change, then Linux boot will fail to enter the emergency mode, so it is advisable to use the UUID to mount

Common Linux Commands: Mount/umount/blkid

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.