Explain the/etc/fstab, boot automatically mount
[Email protected] home]# Cat/etc/fstab
label=//ext3 Defaults 1 1
Label=/boot/boot ext3 Defaults 1 2
TMPFS/DEV/SHM TMPFS Defaults 0 0
Devpts/dev/pts devpts gid=5,mode=620 0 0
Sysfs/sys Sysfs Defaults 0 0
PROC/PROC proc Defaults 0 0
Label=swap-sda2 swap swap defaults 0 0
/etc/fstab total of six columns, respectively corresponding
Fs_spec fs_file fs_type fs_options fs_dump fs_pass
The first column, the device file name, or the label of the device (label);
The second column, the mount point, is the access to the device (directory) under Linux;
The third column, the file system type of the disk partition;
The fourth column, the file system parameters, that is, automatically mount the parameters need to add, here contains a lot of content
Introduction to borrowing a common parameter
Parameter meaning
Async/sync
Asynchronous/synchronous Set whether the disk runs asynchronously and defaults to Async
Auto/noauto
Auto/non- automatic when up to Mout-a command, will be actively mounted, default to Auto
Rw/ro
Writable/read-only allows the partition to be read-write or simply mounted in read-only form
Exec/noexec
Executable/non- enforceable limits whether the work can be performed within this file system, if it is purely for storing data, set to Moexec
User/nouser
Allow/Disallow user mounts whether the user is allowed to mount using the Mount command, generally set to Nouser, for security reasons
Suid/nosuid
Whether there is a suid permission Indicates whether the file system allows the presence of suid
Usrquota indicates boot file system support Quota mode
Grpquota Boot file system support Group quota mode
Defaults default parameter: Async,auto,rw,exec,nouser,suid
Fifth column, whether to be dump (backup)
Dump is the command used to back up, 0 means no backup, 1 means a daily backup, and 2 means that backups are not scheduled. Usually this parameter is either 0 or 1.
Sixth column, whether to test the partition with FSCK
During system boot, the system will default to fsck to verify that our file system is complete. However, some special file systems, such as swap, do not need to be inspected. 0 indicates that no test is required, 1 indicates the earliest test, 2 is also a test, but is later than 1. In general/set to 1, the other if you want to test the set to 2 is good. If you don't want to test it, set it to 0.