#磁盘分区配置文件
/etc/fstab
/dev/sdb5/mnt EXT4 Defaults 0 0
Mount partition mount point file system Mount option
Default = Rw,suid,dev,exec,auto,nouser,async
RW Read/write
Suid do suid Special privileges
Dev can parse partition under block device, character device file
After the exec mount, the files inside are executed.
Auto mount on Boot
Nouser does not allow normal user to mount partitions
Async disk is out of sync with memory
Sync disk synchronized with memory
0 not backed up log
0 boot does not detect the disk, if the boot detection disk with 2
#自动加载/etc/fstab inside the configuration
Mount-a
#另一种方法自动挂载, write the attached command in/etc/rc.local.
Vi/etc/rc.local
Add a row
Mount/dev/sdb1/home/tim/1
#挂载的同时指定选项, noatime mount do not update access time atime, Usrquota is disk quotas
Mount-o NOATIME,RW,USRQUOTA/DEV/SDB1/HOME/TIM/1
#查看加载了那些选项
Mount
Exercises:
1. What can I do to automatically mount the newly added partition?
Write the Mount command to/etc/rc.d/rc.local.
Edit the/etc/fstab configuration file and add a new line about the partition
2. The last two columns in the/etc/fstab file are described correctly?
The value of column fifth, if 0, indicates that the partition does not require a dump
The value of the sixth column can be 0,1,2
The value of the sixth column has a high priority of 1:2
3. The fourth paragraph in the Fstab file is the Mount option, and the following points are correct?
The defaults option contains Rw,suid,dev,exec,auto,nouser,async and Relatime
If a partition has a large number of file accesses, we should add a noatime to the partition
Nouser indicates that only the root user is allowed to mount the partition
Summarize:
Main:/etc/fstab is the disk partition configuration file, dump is the meaning of backup log
3.9 Disk Management Partition Table Fstab