Skip to content

Instantly share code, notes, and snippets.

@jpph
jpph / headless-luks-encrypted-ubuntu-server.md
Created April 2, 2020 01:29 — forked from jkullick/headless-luks-encrypted-ubuntu-server.md
Headless LUKS encrypted Ubuntu Server on Hetzner
# stop active raid
mdadm --stop /dev/md[01]

# destroy partition table on hdds
dd if=/dev/zero of=/dev/sda bs=1M count=512
dd if=/dev/zero of=/dev/sdb bs=1M count=512

# create new partition table
sgdisk -og /dev/sda

Keybase proof

I hereby claim:

  • I am jpph on github.
  • I am jpp59 (https://keybase.io/jpp59) on keybase.
  • I have a public key ASAcsrS-X5DaAYcr9NAkZ9dZmlguT0oUxHGJWuCo-Hiy8Ao

To claim this, I am signing this object: