差異處
這裏顯示兩個版本的差異處。
Both sides previous revision 前次修改 下次修改 | 前次修改 | ||
luks [2023/06/11 01:00] jz |
luks [2023/06/11 01:17] (目前版本) jz |
||
---|---|---|---|
行 4: | 行 4: | ||
<code> | <code> | ||
cryptsetup -v --cipher aes-xts-plain64 --key-size 512 --hash sha512 --iter-time 5000 --use-urandom --verify-passphrase luksFormat /dev/sdX0 | cryptsetup -v --cipher aes-xts-plain64 --key-size 512 --hash sha512 --iter-time 5000 --use-urandom --verify-passphrase luksFormat /dev/sdX0 | ||
+ | </code> | ||
+ | |||
+ | Or, with default option | ||
+ | <code> | ||
+ | cryptsetup luksFormat /dev/sdX0 | ||
+ | </code> | ||
+ | |||
+ | <code> | ||
+ | cryptsetup luksOpen /dev/sdX0 rootfs | ||
+ | mkfs.ext4 /dev/mapper/rootfs | ||
+ | mount /dev/mapper/rootfs /mnt/rootfs | ||
+ | </code> | ||
+ | |||
+ | <code> | ||
+ | cryptsetup luksDump /dev/sdX0 | ||
+ | </code> | ||
+ | |||
+ | <code> | ||
+ | umount /mmt/rootfs | ||
+ | cryptsetup luksClose rootfs | ||
</code> | </code> | ||
行 25: | 行 45: | ||
cryptsetup luksUUID /dev/sda1 --uuid "$newuuid" | cryptsetup luksUUID /dev/sda1 --uuid "$newuuid" | ||
</code> | </code> | ||
+ |