Skip to content

Instantly share code, notes, and snippets.

@GeorgFleig
GeorgFleig / btrfs-guide.md
Created May 1, 2020 14:07 — forked from MaxXor/btrfs-guide.md
Btrfs guide for initial setup of an LUKS-encrypted btrfs raid with included recovery guide

Btrfs guide

Initial setup with LUKS/dm-crypt

This exemplary initial setup uses two devices /dev/sdb and /dev/sdc but can be applied to any amount of devices by following the steps with additional devices.

Create keyfile:

dd bs=64 count=1 if=/dev/urandom of=/etc/cryptkey iflag=fullblock
chmod 600 /etc/cryptkey
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net462</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="EntityFramework" Version="6.2.0" />
<PackageReference Include="Microsoft.CSharp" Version="4.4.0" />
<PackageReference Include="SonarAnalyzer.CSharp" Version="6.7.1.4347" />
</ItemGroup>
</Project>
@GeorgFleig
GeorgFleig / debug_log.txt
Last active February 28, 2018 14:56
packer file provisioner permission issue
2018/02/28 15:50:33 [INFO] Packer version: 1.2.1
2018/02/28 15:50:33 Packer Target OS/Arch: linux amd64
2018/02/28 15:50:33 Built with Go Version: go1.10
2018/02/28 15:50:33 Detected home directory from env var: /home/georg
2018/02/28 15:50:33 Using internal plugin for cloudstack
2018/02/28 15:50:33 Using internal plugin for qemu
2018/02/28 15:50:33 Using internal plugin for amazon-chroot
2018/02/28 15:50:33 Using internal plugin for azure-arm
2018/02/28 15:50:33 Using internal plugin for hyperv-vmcx
2018/02/28 15:50:33 Using internal plugin for null