Tags:
Note:
pacman -S cryptsetup
lsblk
or
fdisk -l
shred -v -n 1 /dev/sdX
or
dd if=/dev/urandom of=/dev/sdX bs=1M
cryptsetup luksFormat /dev/sdX
cryptsetup luksOpen /dev/sdX flashy
ls -arlt /dev/mapper | tail
mkfs -t ext4 /dev/mapper/flashy
mkdir /run/mount/flashy
mount /dev/mapper/flashy /run/mount/flashy
df -h /run/mount/flashy
cryptsetup luksOpen /dev/sdX flashy
Look it up
ls -arlt /dev/mapper | tail
mkdir /run/mount/flashy
mount /dev/mapper/flashy /run/mount/flashy
cd /run/mount/flashy
umount /run/mount/flashy
rm -r /run/mount/flashy
cryptsetup luksClose flashy