Show Table of Contents
C.4.7. 在 /etc/fstab 中添加条目
在 /etc/fstab 中添加条目。只在需要在设备和挂载点之间建立永久关联时需要。在
/etc/fstab 文件中使用解密设备 /dev/mapper/<name>。
在很多情况下需要在
/etc/fstab 文件中根据 UUID 或者文件系统标签列出设备。主要目的是在改变设备名称的事件(例如:/dev/sda4)中提供恒定识别器。以 /dev/mapper/luks-<luks_uuid> 格式命名的LUKS 设备名称只是基于设备的 LUKS UUID,因此可保证是恒定的。这可使其适用于 /etc/fstab
注意
/etc/fstab 格式详情请阅读 fstab(5) man page。

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.