Created
September 27, 2013 00:31
-
-
Save framon/6722575 to your computer and use it in GitHub Desktop.
Some commands to create crypted disk
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dd if=/dev/random of=/media/pendrive/tape bs=1 count=256 | |
cryptsetup --verbose -c aes-cbc-essiv:sha256 --key-size 256 luksFormat /dev/sde1 /media/pendrive/tape | |
cryptsetup luksOpen --key-file /media/pendrive/tape /dev/sde1 tape | |
cryptsetup luksAddKey /dev/sde1 --key-file /media/pendrive/tape | |
cryptsetup luksDump /dev/sde1 | |
mkfs.xfs -dsunit=256 -dswidth=1024 /dev/mapper/user | |
tune2fs -E stride=32 /dev/mapper/isw_eafdffhfij_Raid05 | |
apt-get install libpam-mount | |
vi /etc/security/pam_mount.conf.xml | |
<volume user="user" fstype="crypt" path="/dev/md2" mountpoint="/home/user" /> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment