Which of the following best describes the format of the /etc/fstab file?
A. mount point; device name; filesystem type; mount options; dump filesystem; fsck order
B. device name; mount point; filesystem type; mount options; dump filesystem; fsck order
C. mount point; filesystem type; device name; mount options; dump filesystem; fsck order
D. device name; mount point; mount options; filesystem type; dump filessystem; fsck order
E. device name; filesystem type; mount point; mount options; dump filesystem; fsck order
题解
「/etc/fstab」设置档共有 6 个字段,分别是:
- file system:设备名称(设备文件路径、UUID 或是 LABEL)。
- mount point:挂载设备的文件路径。
- type:设备的文件系统。
- options:文件系统的参数。
- dump:是否用 dump 来进行备份。
- pass:开机时使用 fsck 工具检查文件系统的顺序,0 表示不检查。
所以答案是选项 B。
