mirror of
https://github.com/tldr-pages/tldr.git
synced 2024-09-11 03:55:31 +03:00
cryptsetup: add Chinese translation (#11341)
This commit is contained in:
parent
b2395e8112
commit
db2b5eeaf6
20
pages.zh/linux/cryptsetup.md
Normal file
20
pages.zh/linux/cryptsetup.md
Normal file
@ -0,0 +1,20 @@
|
||||
# cryptsetup
|
||||
|
||||
> 管理普通 dm-crypt 和 LUKS(Linux 统一密钥设置)加密卷。
|
||||
> 更多信息:<https://gitlab.com/cryptsetup/cryptsetup/>.
|
||||
|
||||
- 初始化 LUKS 卷(覆盖分区上的所有数据):
|
||||
|
||||
`cryptsetup luksFormat {{/dev/sda1}}`
|
||||
|
||||
- 打开 LUKS 卷并在 `/dev/mapper/{{目标}}` 创建解密映射:
|
||||
|
||||
`cryptsetup luksOpen {{/dev/sda1}} {{目标}}`
|
||||
|
||||
- 删除已存在的映射:
|
||||
|
||||
`cryptsetup luksClose {{目标}}`
|
||||
|
||||
- 更改 LUKS 卷的口令:
|
||||
|
||||
`cryptsetup luksChangeKey {{/dev/sda1}}`
|
Loading…
Reference in New Issue
Block a user