Skip to content

Instantly share code, notes, and snippets.

@petrkle
Created January 23, 2013 11:57
Show Gist options
  • Save petrkle/4604781 to your computer and use it in GitHub Desktop.
Save petrkle/4604781 to your computer and use it in GitHub Desktop.
Crypt flashdisk + win partition.
cfdisk /dev/sdb
mkdosfs /dev/sdb1
cryptsetup LuksFormat /dev/sdb2
cryptsetup luksFormat /dev/sdb2
cryptsetup luksOpen /dev/sdb2 flashdisk
mkfs.ext3 /dev/mapper/flashdisk
tune2fs -c 0 -r 0 -i 0 -L verbatim /dev/mapper/flashdisk
cryptsetup luksClose /dev/mapper/flashdisk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment