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