Fstab automatic mounting file, fstab mount file

Source: Internet
Author: User

Fstab automatic mounting file, fstab mount file

Stat view Timestamp

Tip: the local system is usually mounted in fstab, and the two columns at the end do not use 1, 0 0.
Fstab file description:
Column 1: the device to be mounted (such as/dev/sda) or remote file system (such as NFS)
The format of this column is as follows:
Common mounting: The format is/dev/cdrom,/dev/sdb7, etc.
NFS mount: format:

, Such as (10.0.0.14:/oldboy)
Procfs mounting: The format is proc
LABEL or UUID mounting

Column 2: mount point of the file system
For example, Mount/dev/sdb to/file01. In particular, man fstab mentioned that if the mount point of the swap partition is none, it is also like this when installing the system, however, after installation, cat/etc/fstab finds that the mount point is swap.

Column 3: Type of the file system to be mounted.
For example, ext2, ext3, hfs, etc.
Column 4: mount Option associated with the file system
Parameters that can be followed by the mount command-o Option
Async, atime, ults, etc.
Column 5: set the number 0 or 1 to determine whether the file system of this column needs dump (the BACKUP command provided by linux ).
The value 0 indicates that dump is not required.
Column 6: This column uses a number to control whether to perform the fsck check at startup.
0 is not checked, the root partition is generally set to 1,/boot partition is generally set to 2
If the Boot Check is set, execute fsck-
The configured partitions are all 0 to prevent startup failure.

When fstab becomes unavailable due to a problem:
Run: mount-o rw, remount/
Edit fstab again.

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.