Skip to content

Instantly share code, notes, and snippets.

View ovidner's full-sized avatar

Olle Vidner ovidner

View GitHub Profile
@ovidner
ovidner / headless-luks-encrypted-ubuntu-server.md
Created July 6, 2018 19:11 — 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