User Tools

Site Tools


linux

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 [2020/06/16 19:31]
hanez
linux [2020/07/08 00:45] (current)
hanez
Line 26: Line 26:
 ==== Howto create and mount encrypted disk ==== ==== Howto create and mount encrypted disk ====
  
-Create:+=== Create: ===
  
 <code>cryptsetup luksFormat /dev/sdb1 <code>cryptsetup luksFormat /dev/sdb1
Line 32: Line 32:
 mkfs.ext2 /dev/mapper/crypto</code> mkfs.ext2 /dev/mapper/crypto</code>
  
-Mount:+=== Mount: === 
  
 <code>cryptsetup luksOpen /dev/sdb1 crypto <code>cryptsetup luksOpen /dev/sdb1 crypto
 mount /dev/mapper/crypto /mnt/crypto</code> mount /dev/mapper/crypto /mnt/crypto</code>
  
-Unmount:+=== Unmount: === 
  
 <code>umount /dev/mapper/crypto <code>umount /dev/mapper/crypto
 cryptsetup luksClose /dev/mapper/crypto</code> cryptsetup luksClose /dev/mapper/crypto</code>
  
-Change Key:+=== Change Key: === 
  
 In LUKS scheme, you have 8 "slots" for passwords or key files. First, check, which of them are used: In LUKS scheme, you have 8 "slots" for passwords or key files. First, check, which of them are used:
linux.1592335893.txt.gz · Last modified: 2020/06/16 19:31 by hanez