Skip to content

Instantly share code, notes, and snippets.

View fat0troll's full-sized avatar
🔥
but does it work?

Vladimir Hodakov fat0troll

🔥
but does it work?
View GitHub Profile
@fat0troll
fat0troll / raspberry-pi-cryptsetup-btrfs.md
Last active November 21, 2025 19:25
Raspberry Pi Encrypted Root Partition + btrfs Headless Setup Guide

This is a step-by-step guide for making your Raspberry Pi 5 more secure and powerful by using encrypted rootfs and btrfs. It is highly recommended to use NVME drive as a boot device for this setup to work properly. Installing NVME drive as a boot partition and enabling SSH autostart is outside of the scope of this guide. This guide is inspired by this AskUbuntu! answer and this btrfs guide.

This method of installation is completely headless, but can also be performed on the device itself.

All commands in this guide are executed from root account (aka with sudo).

Don't forget to make a backup of your system BEFORE attempting any changes. It is highly recommented to do this conversion after the initial install of Raspberry Pi OS, before adding any new data to the system, in case something

Keybase proof

I hereby claim:

  • I am fat0troll on github.
  • I am fat0troll (https://keybase.io/fat0troll) on keybase.
  • I have a public key ASBz8L6G-DVKUDhR5R9cEO8un055XpopD4Lmzmk5nV2t8Qo

To claim this, I am signing this object:

#!/bin/bash
#список номеров заносится в файл
echo "Enter file name" #имя файла в котором список номеров
read FILE
while read number
do
login=`inf -r $number | awk '$2 ~ /ep/ {print $2}' >> /dev/null` #определение логина
sleep 10
killall inf