Skip to content

Instantly share code, notes, and snippets.

@labor4
labor4 / headless-luks-encrypted-ubuntu-server.md
Created August 7, 2021 19:31 — 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