Show Table of Contents
C.4.6. 在 /etc/crypttab 中添加映射信息
要让系统为该设备设置一个映射,必须在
/etc/crypttab 文件中有一个条目。如果该文件不存在,创建该文件并将拥有者和组群改为 root(root:root),同时将模式改为 0744。在该文件中使用以下格式添加一行:
<name> <device> none
<device> 字段应该是 "UUID=<luks_uuid>",其中 <luks_uuid> 是
cryptsetup luksUUID <device> 命令给出的 LUKS uuid。这样可保证在设备节点改变时(例如:/dev/sda5)仍可识别正确的设备。
注意
有关
/etc/crypttab 文件格式详情请阅读 crypttab(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.