Differences between revisions 2 and 3
Revision 2 as of 2010-01-23 20:28:44
Size: 1010
Editor: PieterSmit
Comment:
Revision 3 as of 2010-01-24 06:02:26
Size: 1061
Editor: PieterSmit
Comment:
Deletions are marked like this. Additions are marked like this.
Line 24: Line 24:
    dir=/home/pes/crypt fstype=ext3     dir=/home/USER/crypt fstype=ext3
Line 27: Line 27:
 1. mkdir /home/USER/crypt
 1. cryptmount crypt

Setup Linux crypto

  • Instructions on setting up crypto on USB HD for linux.
  • 2010 - January
  • Find disk mapping by-uuid to keep it constant.
    • # ls -l /dev/disk/by-uuid/
  • Setup Luks on device
    • cryptsetup --verbose --verify-passphrase luksFormat /dev/sdb1
  • Format the encrypted partition
    • # mkfs.ext3 /dev/mapper/crypt -L crypt1.5GB -m 0.5
    • # mkfs.ext3 -j -m 1 -O dir_index,filetype,sparse_super,extent /dev/mapper/crypt
      • flex_bg,extent,uninit_bg
    • mkfs.ext4 -O dir_index,filetype,sparse_super,extent,flex_bg,uninit_bg /dev/mapper/crypt -L crypt1.5GB -m 0.1
    • gvim /etc/cryptmount/cmtab
       crypt {
          keyformat=luks
          dev=/dev/disk/by-uuid/0513f3c1-14da-41d5-b4ee-97fac5b5ac23 keyfile=/dev/disk/by-uuid/0513f3c1-14da-41d5-b4ee-97fac5b5ac23
          dir=/home/USER/crypt    fstype=ext3
          }
  • mkdir /home/USER/crypt
  • cryptmount crypt

pcfpg ...


CategoryLinux

linux/crypto (last edited 2017-02-03 02:51:53 by PieterSmit)