User Tools

Site Tools


linux:filesystems:crypto_raid

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
linux:filesystems:crypto_raid [2016/03/30 08:44]
tkilla
linux:filesystems:crypto_raid [2016/06/20 22:22] (current)
tkilla [CryptFile]
Line 248: Line 248:
   * http://linuxgazette.net/140/pfeiffer.html   * http://linuxgazette.net/140/pfeiffer.html
   * http://www.saout.de/tikiwiki/tiki-index.php   * http://www.saout.de/tikiwiki/tiki-index.php
-  * +  * https://thesimplecomputer.info/full-disk-encryption-with-ubuntu 
 + 
  
  
Line 257: Line 259:
 create a file full of random data, setup loop device, luksFormat & format create a file full of random data, setup loop device, luksFormat & format
                                                                              
-  dd if=/dev/urandom of=testfile bs=1M count=3900    #=MB +  dd if=/dev/urandom of=/cryptfile bs=1M count=3900    #=MB 
-  losetup /dev/loop32 cryptfile+  losetup /dev/loop32 /cryptfile
   cryptsetup luksFormat /dev/loop32   cryptsetup luksFormat /dev/loop32
   cryptsetup luksOpen /dev/loop32 cryptfs   cryptsetup luksOpen /dev/loop32 cryptfs
   mkfs.ext4 -L homecrypt /dev/mapper/cryptfs   mkfs.ext4 -L homecrypt /dev/mapper/cryptfs
  
 +
 +
 +===== btrfs on top of luks =====
 +
 +Create a crypto partition as described above, then format the opened crypto container filesystem:
 +
 +  mkfs.btrfs /dev/mapper/<cryptname>
 +  
 +  # recommended options for rotational discs (for ssds set 'sdd' option):
 +  mount -o noatime,compress=lzo,noauto,autodefrag /dev/mapper/<cryptname> /<mountpoint>
 +
 +
 +===== Recommended options for installing on a pendrive, a SD card or a slow SSD drive =====
 +
 +
 +/dev/sdaX / btrfs x-systemd.device-timeout=0,noatime,compress=lzo,commit=0,ssd_spread,autodefrag 0 0
 +
 +
 +* https://wiki.debian.org/Btrfs
linux/filesystems/crypto_raid.1459320296.txt.gz · Last modified: 2016/03/30 08:44 by tkilla