From db2b5eeaf69510ad838b92e814e8713e9c0c38f2 Mon Sep 17 00:00:00 2001 From: The Galaxy <148551648+ga1aksy@users.noreply.github.com> Date: Wed, 1 Nov 2023 01:58:44 +0800 Subject: [PATCH] cryptsetup: add Chinese translation (#11341) --- pages.zh/linux/cryptsetup.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 pages.zh/linux/cryptsetup.md diff --git a/pages.zh/linux/cryptsetup.md b/pages.zh/linux/cryptsetup.md new file mode 100644 index 000000000..c162772d6 --- /dev/null +++ b/pages.zh/linux/cryptsetup.md @@ -0,0 +1,20 @@ +# cryptsetup + +> 管理普通 dm-crypt 和 LUKS(Linux 统一密钥设置)加密卷。 +> 更多信息:. + +- 初始化 LUKS 卷(覆盖分区上的所有数据): + +`cryptsetup luksFormat {{/dev/sda1}}` + +- 打开 LUKS 卷并在 `/dev/mapper/{{目标}}` 创建解密映射: + +`cryptsetup luksOpen {{/dev/sda1}} {{目标}}` + +- 删除已存在的映射: + +`cryptsetup luksClose {{目标}}` + +- 更改 LUKS 卷的口令: + +`cryptsetup luksChangeKey {{/dev/sda1}}`