Changes between Version 3 and Version 4 of linux/Encryption/cryptsetup


Ignore:
Timestamp:
Aug 4, 2015, 5:07:47 PM (4 years ago)
Author:
mutetella
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • linux/Encryption/cryptsetup

    v3 v4  
    33=== Create encrypted ext4-Partition
    44[[http://wiki.ubuntuusers.de/LUKS?highlight=cryptsetup#Erstellen|ubuntuusers wiki]]\\
     5DEVICE can be a parition like `/dev/sdb1` or the whole device like `/dev/sdb`. Therefore see [[http://serverfault.com/questions/338937/differences-between-dev-sda-and-dev-sda1|Differences between /dev/sda and /dev/sda1]]
    56
    67- Override the beginning of the partition with random numbers
    78
    89{{{
    9 # dd if=/dev/urandom of=/dev/xxx bs=1M count=8
     10# dd if=/dev/urandom of=/dev/DEVICE bs=1M count=8
    1011}}}
    1112
     
    1314
    1415{{{
    15 # cryptsetup luksFormat -c aes-xts-plain64 -s 512 -h sha512 -y /dev/xxx
     16# cryptsetup luksFormat -c aes-xts-plain64 -s 512 -h sha512 -y /dev/DEVICE
    1617}}}
    1718
     
    1920
    2021{{{
    21 # cryptsetup luksOpen /dev/xxx xxx_crypt
    22 # mkfs.ext4 /dev/mapper/xxx_crypt
    23 # cryptsetup luksClose xxx_crypt
     22# cryptsetup luksOpen /dev/DEVICE crypt_DEVICE
     23# mkfs.ext4 /dev/mapper/crypt_DEVICE
     24# cryptsetup luksClose crypt_DEVICE
    2425}}}