6 - 1711720186

cryptsetup

  • Container mit Zufallsdaten erstellen:

<blockquote>dd if=/dev/urandom of=containerFile bs=1M count=GroesseInMB</blockquote>

  • LUKS-Formatierung (z.B.:sda3):

<blockquote> sudo cryptsetup -c aes-xts-plain64 -s 512 -h sha512 -y luksFormat /dev/sda3 </blockquote>

  • LUKS-Container einhängen:

<blockquote> cryptsetup luksOpen /dev/sd* neuesDevice </blockquote>

  • LUKS-Header Backup:

<blockquote> cryptsetup luksHeaderBackup /dev/sd* –header-backup-file headerBackup </blockquote>

  • LUKS-Container mit headerBackup öffnen:

<blockquote> cryptsetup luksOpen –header headerBackup /dev/sd* neuerName </blockquote>

  • LUKS-Container schließen:

<blockquote> cryptsetup luksClose neuesDevice </blockquote>