Browsing this Thread:   1 Anonymous Users






ubuntu cryptsetup
#1
Just can't stay away
Just can't stay away


See User information
fallocate -l 2G /tmp/test.img

cryptsetup luksFormat 
/tmp/test.img  ## only once
sudo cryptsetup luksOpen /tmp/test.img  usbone


sudo mkfs
.ext4 /dev/mapper/usbone   ## only once

sudo mount  /dev/mapper/usbone /mnt/usb.mt/

sudo umount /mnt/usb.mt 
sudo cryptsetup luksClose usbone

dd if=/dev/urandom of=放置keyfile的文件路径 bs=1k count=64
cryptsetup luksDump 已加密的物理设备或逻辑设备
cryptsetup luksAddKey 已加密的物理分区或虚拟盘 所用keyfile的路径
cryptsetup 
--key-file 所用keyfile的路径 luksOpen 已加密的物理分区或虚拟盘 映射名
cryptsetup luksKillSlot 已加密的物理分区或虚拟盘 Slot的编号

Posted on: 2023/3/23 12:09
Top








friend links
Themes

(2 themes)
Login
Username:

Password:


Lost Password?
Register now!
Categories
Xoops (11)
--Modules (2)
--Themes (0)
Article (8)