Show Table of Contents
C.4.3. 将设备格式化为 dm-crypt/LUKS 加密设备
警告
以下命令将破坏该设备中所有现存数据。
cryptsetup luksFormat <device>
注意
要了解更多信息,请阅读
cryptsetup(8) man page。
输入两次密码后设备将格式化,之后就可使用了。使用如下命令进行验证:
cryptsetup isLuks <device> && echo Success
使用以下命令来查看设备的加密信息:
cryptsetup luksDump <device>

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.