Skip to content

Instantly share code, notes, and snippets.

@imaginator
Created May 5, 2021 19:37
Show Gist options
  • Save imaginator/361a264e73ab2198094979af4f29eea1 to your computer and use it in GitHub Desktop.
Save imaginator/361a264e73ab2198094979af4f29eea1 to your computer and use it in GitHub Desktop.
cryptsetup luksFormat /dev/sdg1
cryptsetup open /dev/sdg1 BunkerVolGroup06-crypt
pvcreate /dev/mapper/BunkerVolGroup06-crypt
vgcreate BunkerVolGroup06 /dev/mapper/BunkerVolGroup06-crypt
lvcreate -l 100%FREE -n btrfs /dev/mapper/BunkerVolGroup06
btrfs device add /dev/mapper/BunkerVolGroup06-btrfs /mnt
lsblk -o name,mountpoint,label,size,uuid
vim /etc/crypttab
# create disk label
lsblk --nodeps -no name,serial,type,tran
# Print disk label (12pt size)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment