Migrating from ext to BTRFS & LUKS (for encryption and snapshots)

@Rex I’ve been a big fan and a user of your DragonOS (Debian Trixie version) for my CM5 uConsole and NVMe boot drive. Since I’ve been bringing it everywhere, I was hoping to harden it with an encrypted file system in case I lose it. I’ve been trying to convert my root partition in ext to BTRFS and LUKS2, so that I get encryption and snapshots. So far, it’s not working, despite updating fstab, config.txt and crypttab and updating initramfs.

Is there any way anyone can recommend that would work? Many thanks!

1 Like

Unfortunately, I can’t help you directly. But perhaps you’ll find it useful to encrypt only the home directory or a separate partition, rather than the root partition. That’s what I did with my two uConsoles.

I carried out the partitioning manually before the first boot and then created a separate home/data partition. I only encrypted that one. The system itself, however, I didn’t encrypt. This allowed me to add encryption to the system from within the system itself.

1 Like