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.