Skip to content

Latest commit

 

History

History
24 lines (16 loc) · 433 Bytes

cryptsetup.md

File metadata and controls

24 lines (16 loc) · 433 Bytes

format the device

cryptsetup -v luksFormat /dev/sdx

dump header

cryptsetup luksDump /dev/sdx

map

cryptsetup luksOpen /dev/sdx name

zero (random data) fill

dd if=/dev/zero of=/dev/mapper/name bs=1M

create partition

mkfs.ext4 /dev/mapper/name

mount

mount -t ext4 /dev/mapper/name /mnt

unmount and close

umount /mnt cryptsetup luksClose