企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
开机自动挂载: 每一列对应的分别是: * 挂载:设备名/UUID/卷标Lable * 挂载点: * 挂载文件系统:ext4/xfs * 挂载的权限:默认 * 0:是否dump,1表示每天开机备份文件系统,0表示不备份 * 0:是否开机自检,0表示不检测,1代表先检测,其他代表后检测 ![](https://img.kancloud.cn/e2/fb/e2fbd31a9938fcef63b58614d6dca088_746x268.png) ~~~ echo "/dev/vdb1 /home ext4 defaults 0 0" >> /etc/fstab ~~~ ~~~ echo "/dev/mapper/centos_bogon-home /home xfs defaults 0 0" >> /etc/fstab ~~~ **查看自动挂载文件配置** ~~~ [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 ​ ~~~ **可用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 ~~~