linux /etc/fstab 文件解析

2022-09-10  本文已影响0人  ShootHzj

linux /etc/fstab 文件解析

fstab表格描述了文件挂盘的顺序,以及挂盘的参数等。fstab文件包含6列

show case

cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/nvme0n1p3 during installation
UUID=68c85c1a-8b84-4dcb-aba5-e84425c4bee0 /               ext4    errors=remount-ro 0       1
# /boot/efi was on /dev/nvme1n1p2 during installation
UUID=9C25-7E07  /boot/efi       vfat    umask=0077      0       1
/swapfile                                 none            swap    sw              0       0

部分挂载选项说明

参考

上一篇下一篇

猜你喜欢

热点阅读