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.