实例
[root@localhost ~]# cat /etc/fstab
[root@localhost ~]# cat -n /etc/fstab
1
2 #
3 # /etc/fstab
4 # Created by anaconda on Mon Aug 6 17:47:50 2018
5 #
6 # Accessible filesystems, by reference, are maintained under '/dev/disk'
7 # See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
8 #
9 /dev/mapper/centos-root / xfs defaults 1 1
10 UUID=bd40ba81-2c3a-4234-8057-816e098a03fd /boot xfs defaults 1 2
11 /dev/mapper/centos-home /home xfs defaults 1 2
12 /dev/mapper/centos-swap swap swap defaults 0 0