Nicholas Quirk
Systems Administrator
Projects / Linux
Linux

A persistent, encrypted Linux install on a USB key

Not a live USB. A full, encrypted Rocky Linux install on a 256 GB key that boots on almost any x86_64 machine.

  • Rocky Linux
  • Ventoy
  • LUKS
  • LVM
  • EXT4

I wanted a toolkit I could carry in a pocket: a full operating system, not a live USB that forgets everything at shutdown. So I installed a complete RHEL-compatible system, Rocky Linux, onto a 256 GB USB 3.2 flash drive.

Requirements

  • Persistence: tools, settings and files survive a reboot
  • Full disk encryption: if I lose it, nobody gets anything off it
  • Portability: it boots on any x86_64 machine that can boot from USB
  • A separate /home: easier backup and recovery

How I built it

  1. Carried the Rocky Linux ISO on a Ventoy multiboot stick, booted it and ran the graphical installer with the USB key itself as the target.
  2. Skipped auto-partitioning and laid it out by hand:
/boot          1 GB     EXT4, unencrypted
LUKS -> LVM volume group
  /            30 GB
  swap          4 GB
  /home       ~200 GB
  1. Set a strong LUKS passphrase, required at every boot.

How it runs

Over USB 3.2 it is perfectly fine for scripting and quick jobs. The plan is to load it with a field kit: diagnostics, network analysis, disk recovery, VMs, vulnerability scanning and partitioning tools.

Has it earned its keep?

Yes. I keep an encrypted backup of it in the lab, and it has already helped with disaster recovery and with setting up other systems, including a dual-boot Windows XP and Windows 7 setup on a Dell Latitude.

First published on my legacy site.
New message
Hiring?

Let's talk

If you need someone who secures Microsoft 365, keeps Windows and Linux infrastructure healthy and documents everything as he goes, I would like to hear about the role.