Each column corresponds respectively:
Mount: Device name / UUID / labels Lable
Mount point:
Mount the file system: ext4 / xfs
Mount permissions: default
0: Does dump, 1 indicates the startup file backup system every day, 0 means no backup
0: Does POST, 0 indicates no detection, 1 represents the first test, the detection of other representatives
echo "/dev/vdb1 /home ext4 defaults 0 0" >> /etc/fstab
echo "/dev/mapper/centos_bogon-home /home xfs defaults 0 0" >> /etc/fstab
View automatically mount file configuration
[root@ansible-node03 ~]# cat /etc/fstab
#
# /etc/fstab
# Created by anaconda on Fri Nov 16 10:40:57 2018
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
/dev/mapper/centos_bogon-root / xfs defaults 0 0
UUID=e65c7d0f-e9ad-447c-8bd1-f149d34a3853 /boot xfs defaults 0 0
UUID=E383-A8AC /boot/efi vfat umask=0077,shortname=winnt 0 0
/dev/mapper/centos_bogon-swap swap swap defaults 0 0
/dev/mapper/centos_bogon-home /home xfs defaults 0 0
Mount View information available df -Th
[root@ansible-node03 ~]# df -Th
Filesystem Type Size Used Avail Use% Mounted on
/dev/mapper/centos_bogon-root xfs 50G 30G 20G 60% /
devtmpfs devtmpfs 7.7G 0 7.7G 0% /dev
tmpfs tmpfs 7.7G 4.0K 7.7G 1% /dev/shm
tmpfs tmpfs 7.7G 490M 7.3G 7% /run
tmpfs tmpfs 7.7G 0 7.7G 0% /sys/fs/cgroup
/dev/sda3 xfs 1014M 135M 880M 14% /boot
/dev/sda2 vfat 200M 9.8M 191M 5% /boot/efi
/dev/mapper/centos_bogon-home xfs 872G 64G 809G 8% /home
tmpfs tmpfs 1.6G 0 1.6G 0% /run/user/0
Reproduced in: https: //www.jianshu.com/p/30ac8b21a1e2