This is a quick guide to mounting a qcow2 disk images on your host server. This is useful to reset passwords, edit files, or recover something without the virtual machine running.
Step 1 - Enable NBD on the Host
modprobe nbd max_part=8
| NUCLEAR WASTE SOFTWARE LICENSE V1.0 | |
| Copyright <YEAR> <OWNER> | |
| This software license is a message... and part of a system of messages... | |
| pay attention to it! Writing this software and associated documentation | |
| files (the "Software") was important to us. We considered ourselves to be a | |
| powerful culture. This Software is not a place of honor... no highly | |
| esteemed deed is commemorated here... nothing valued is here. What is here was | |
| dangerous and repulsive to us. This message is a warning about danger. The |
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