I get invited to the most unexpected events. The more astonished I am that someone would want me at a thing, the more likely I am to accept. That’s how you open the tap to being invited to even more things later. Practice saying yes when you can.
I get invited to the most unexpected events. The more astonished I am that someone would want me at a thing, the more likely I am to accept. That’s how you open the tap to being invited to even more things later. Practice saying yes when you can.
I logged into one of our vendors for the first time to make some urgent changes. Every third time I tried to click on something, instead of going to that thing, I got an obnoxious full-screen onboarding screen with no way to close it:

If I hit my browser’s back button, half the time I got a “submit this form again?” popup.
If you really want to thank me because you really value me as a customer, please stop asking me stupid questions and let me use the site I logged into.
Synology just released DSM 7.4 highlighting their new “storage efficiency” feature.
Note that you can’t actually use this feature unless you’re dumb and/or rich enough to fill your NAS with only Synology’s own overpriced drives. It’s unavailable to the other 99.9% of us paying users.
I’m so over their antics.
As of this writing, Synology’s own 24TB drive is $1300 on Amazon, with only a few in stock. Seagate’s equivalent is only $860. You can get a Seagate 28TB drive for $1020, and Synology doesn’t even make that size.
And what happens when you have to replace a drive? I can drive over to Central Computers right now and have a new WD purchased and installed an hour later. I have no idea where I’d source a Synology branded drive on short notice in an emergency.
That feeling when you get to the point where can tell what a company’s compliance regime is going to be like based on the layout of their trust center. “Oh, standard Vanta format. It’s probably fine.”
And then you realize that this is not an S-tier superpower.
How’s my morning going, you ask? Well, I dropped my left AirPod into my cup of freshly brewed coffee, and my first reflex was so try to fish it out. Now I have one working AirPod and my fingers are stinging from being slightly boiled.
Yeah, going just great I’d say.
I need a fidget toy that’s a Morse code key I can use to send myself notes during meetings: “ask boss about thing he said” or “read about new subject”.
Drop a folder. Or a zip.
Summon your site - HTML, CSS, JS. See it live instantly.
Cloudflare announced their new Exfiltration as a Service app today. Admins, be sure to lock this jackassery down ASAP.
I have a uConsole computer and a new NVMe adapter for it. I’m not going to walk around with a terabyte of unencrypted data. That wasn’t an option. I found several good HOWTOs for booting a uConsole off an encrypted NVMe drive, yet none of them worked well on their own. Each left out one essential detail or another.
This is my mashup of those instructions. For testing, I wiped my NVMe drive and started over, following these steps exactly, and at the end booted into a working system.
I claim zero credit for any of these. Much of this is copied-and-pasted from the resources I list at the bottom. Those are the people who did the hard work of figuring this out. My goal was to put combine the working bits of each resource into a single document that includes the best of each.
We’re starting with a uConsole booted from its SD card. From inside that running system, we’ll partition the NVMe drive, encrypt most of it, copy the working system onto the new drive, and make the tweaks that the new setup requires to boot successfully.
We’ll use cryptsetup in the “parent” SD card-based OS.
$ sudo apt install cryptsetup
This is easiest with the desktop’s GParted command. If you’re using the terminal anyway, you can do this from the CLI.
$ sudo parted /dev/nvme0n1
mklabel gpt
yes
mkpart primary fat32 1M 513M
mkpart primary ext4 513M 100%
quit
Now we prepare the drive for holding data. We format partition 1 with the FAT32 filesystem that the bootloader wants. Then we use cryptsetup encrypt partition 2.
$ sudo cryptsetup luksFormat -c xchacha20,aes-adiantum-plain64 /dev/nvme0n1p2
$ sudo cryptsetup open /dev/nvme0n1p2 ssd # Creates /dev/mapper/ssd
$ sudo mkfs.vfat /dev/nvme0n1p1
$ sudo mkfs.ext4 /dev/mapper/ssd
$ sudo lsblk -o NAME,UUID,PARTUUID
In the lsblk command’s output, note:
PARTUUID for the NVMe /boot/firmware filesystemUUID for the new / filesystemWhen these steps are done, we’ll have a clone of our parent system in /mnt. See the -x flag to rsync? That says “stay in this one filesystem and don’t recurse into others”, so that we’re not cloning /proc and /sys, and so on.
$ sudo mount /dev/mapper/ssd /mnt
$ sudo rsync -aAXHvx / /mnt/
$ sudo mount /dev/nvme0n1p1 /mnt/boot/firmware
$ sudo rsync -aAXHvx /boot/firmware/ /mnt/boot/firmware/
From now on, the rest of these commands will run on the new, encrypted root volume.
$ for dir in sys dev proc ; do sudo mount --rbind /$dir /mnt/$dir && sudo mount --make-rslave /mnt/$dir ; done
$ sudo chroot /mnt
Also, I like using vi for quick-and-dirty system file edits. If that’s outside your comfort zone, replace vi with nano from now on. But really, if you’re going to be using Linux much, at least get the vi basics down. You’ll thank me later.
Of course, vi’s main purpose is to bootstrap Emacs, and then you can uninstall vi.
The parent OS has it’s idea of where / and /boot/firmware live. Now we configure the child OS with its new locations.
> vi /etc/fstab
============
# Find the line that mounts /boot/firmware and replace it with:
PARTUUID={{PARTUUID of the new /boot/firmware}} /boot/firmware vfat defaults 0 2
# Find the line that mounts / and replace it with:
/dev/mapper/ssd / ext4 defaults,noatime 0 1
============
> vi /etc/crypttab
============
# Append this line:
ssd UUID={{UUID of the new "raw" /}} none luks,discard
============
We’ll use these tools to make a new initramfs inside the child OS.
> apt install busybox cryptsetup cryptsetup-initramfs initramfs-tools
modules=dep to modules=mostThis may not be needed. This was the default on the OS image I used.
> vi /etc/initramfs-tools/initramfs.conf
Add these modules to the initramfs so it display the boot-time encrypted volume password prompt, and can unlock the encrypted root volume.
> vi /etc/initramfs-tools/modules
============
# --- Crypto modules (AES-XTS + SHA256, ARM hardware-accelerated) ---
aes_arm64
aes_ce_blk
aes_ce_cipher
sha256_arm64
sha256_ce
dm-crypt
xts
# --- Display modules (needed so the password prompt shows on the uConsole screen) ---
drm
drm_kms_helper
drm_shmem_helper
drm_dma_helper
drm_ttm_helper
drm_display_helper
drm_panel_orientation_quirks
ttm
cec
backlight
ocp8178_bl
panel-cwu50
vc4
v3d
drm-rp1-dsi
============
This is the bit that turns on the screen in text mode so we know when to enter the drive encryption password.
> vi /etc/initramfs-tools/scripts/init-top/display
============
#!/bin/sh
PREREQ=""
prereqs() { echo "$PREREQ"; }
case $1 in prereqs) prereqs; exit 0;; esac
# Load display stack. Order matters.
modprobe drm
modprobe drm_kms_helper
modprobe backlight
modprobe ocp8178_bl # uConsole backlight controller
modprobe panel-cwu50 # uConsole LCD panel driver
modprobe vc4 # Broadcom VideoCore GPU
modprobe v3d # Broadcom V3D 3D engine
sleep 1 # Give the panel time to initialize
modprobe drm-rp1-dsi # RP1 DSI bridge (connects SoC to panel)
modprobe fbcon # Framebuffer console (renders text on screen)
============
> chmod a+x /etc/initramfs-tools/scripts/init-top/display
This is suppose to rebuild the initramfs when we upgrade to a new kernel. I haven’t tested it yet.
> vi /etc/kernel/postinst.d/initramfs-rebuild
============
#!/bin/sh -e
version="$1"
# Only rebuild for the currently running kernel
[ "$version" = "$(uname -r)" ] || exit 0
# Back up existing initramfs before overwriting
[ -e /boot/firmware/initramfs_2712 ] && \
cp /boot/firmware/initramfs_luks_nvme.img /boot/firmware/initramfs_luks_nvme.img.bak
update-initramfs -c -k "$version"
mkinitramfs -o /boot/firmware/initramfs_luks_nvme.img "$version"
============
> chmod a+x /etc/kernel/postinst.d/initramfs-rebuild
Now we manually do a stripped-down version of the above to create our first initramfs.
> update-initramfs -c -k "$(uname -r)"
> mkinitramfs -o /boot/firmware/initramfs_luks_nvme.img "$(uname -r)"
This tells the system how to enable the NVMe drive, and how to boot into it.
> vi /boot/firmware/config.txt
============
[pi4]
...
enable_uart=1
dtparam=pciex1=on
[all]
...
auto_initramfs=1
initramfs initramfs_luks_nvme.img followkernel
============
> vi /boot/firmware/cmdline.txt
============
console=serial0,115200 console=tty1 root=/dev/mapper/ssd cryptdevice=UUID={{Same UUID of / as in /etc/fstab}}:ssd rootfstype=ext4 fsck.repair=yes rootwait fbcon=rotate:1 psi=1 quiet loglevel=3 cfg80211.ieee80211_regdom=US
============
In confess, I didn’t do exactly this. I kept some of the original cmdline.txt. Instead of rootwait fbcon=rotate:, I have rootwait splash plymouth.ignore-serial-consoles fbcon=rotate:1. Now I have a splash screen but don’t see the prompt to enter the drive encryption password. I just have to know when to enter it, and then the little computer does the rest. Yes, that’s a little risky: what if something breaks and I can’t see the error message? On the other hand, good luck to a casual thief even knowing where to begin with the thing.
Leave the chroot and shut down the uConsole.
> exit
$ sudo shutdown -h now
Now eject the SD card from uConsole and turn it back on. With any luck, it’ll prompt you for the passphrase to unlock your encrypted NVMe root partition and then boot into a working system!
I configured my uConsole to have 4x as much swap as RAM. That works out to 32GB, or about 3% of my NVMe. In exchange, I’m unlikely to ever run out of memory again. NVMe swap is decently quick, unlike sticking it on a spinning rust hard drive.
$ cd /etc/rpi
$ sudo mkdir swap.conf.d
$ sudo -e swap.conf.d/
============
[Main]
Mechanism=swapfile
[File]
RamMultiplier=4
MaxSizeMiB=65536
============
Belt Fed Potato Cannon Spits Spuds | Hackaday
I appreciate few things more than taking an absurd idea to perfection.
I have a ClockworkPi uConsole and although I’m having great fun with it, it comes with just 32GB of SD card storage. Even if it were bigger, SD cards are dog slow compared to almost anything else. I bought a HackerGadgets NVMe adapter and Crucial P310 1TB NVMe SSD to speed things up.
In these tests, /dev/mmcblk0 is the SD card, and /dev/nvme0n1 is the NVMe adapter.
root@uconsole /h/me# time dd if=/dev/mmcblk0 of=/dev/null bs=1M count=8192
8192+0 records in
8192+0 records out
8589934592 bytes (8.6 GB, 8.0 GiB) copied, 198.193 s, 43.3 MB/s
________________________________________________________
Executed in 198.20 secs fish external
usr time 0.06 secs 0.03 millis 0.06 secs
sys time 23.06 secs 2.00 millis 23.06 secs
root@uconsole /h/me# time dd if=/dev/nvme0n1 of=/dev/null bs=1M count=8192
8192+0 records in
8192+0 records out
8589934592 bytes (8.6 GB, 8.0 GiB) copied, 21.366 s, 402 MB/s
________________________________________________________
Executed in 21.37 secs fish external
usr time 0.03 secs 1.59 millis 0.03 secs
sys time 10.38 secs 0.86 millis 10.38 secs
Summary: The NVMe drive was 9.3x faster than the SD card and took 55% less CPU.
I couldn’t write to the raw SD card because all of it is allocated in the partition map and it’s what I boot off of as of this writing. Instead, I formatted the NVMe drive with the same options as the root filesystem and mounted it at /tmp/nvme so that at least it’s an apples-to-apples comparison
root@uconsole /h/me# time dd if=/dev/zero of=/sdfile bs=1M count=8192
8192+0 records in
8192+0 records out
8589934592 bytes (8.6 GB, 8.0 GiB) copied, 331.464 s, 25.9 MB/s
________________________________________________________
Executed in 331.47 secs fish external
usr time 0.05 secs 0.25 millis 0.05 secs
sys time 25.98 secs 2.16 millis 25.98 secs
root@uconsole /h/me# time dd if=/dev/zero of=/tmp/nvme/sdfile bs=1M count=8192
8192+0 records in
8192+0 records out
8589934592 bytes (8.6 GB, 8.0 GiB) copied, 21.0683 s, 408 MB/s
________________________________________________________
Executed in 21.10 secs fish external
usr time 0.03 secs 2.16 millis 0.03 secs
sys time 18.92 secs 1.13 millis 18.92 secs
Summary: The NVMe drive was 15.7x faster than the SD card, and took 27% less CPU.
These use the fio benchmark. First, the SD card:
root@uconsole /v/tmp# fio --profile=tiobench
seqwrite: (groupid=0, jobs=1): err= 0: pid=3128: Mon Jul 6 19:40:57 2026
write: IOPS=1045, BW=4181KiB/s (4281kB/s)(30.5MiB/7482msec); 0 zone resets
randwrite: (groupid=1, jobs=1): err= 0: pid=3161: Mon Jul 6 19:40:57 2026
write: IOPS=692, BW=2771KiB/s (2838kB/s)(30.5MiB/11287msec); 0 zone resets
seqread: (groupid=2, jobs=1): err= 0: pid=3206: Mon Jul 6 19:40:57 2026
read: IOPS=2917, BW=11.4MiB/s (12.0MB/s)(30.5MiB/2680msec)
randread: (groupid=3, jobs=1): err= 0: pid=3255: Mon Jul 6 19:40:57 2026
read: IOPS=3075, BW=12.0MiB/s (12.6MB/s)(30.5MiB/2543msec)
Run status group 0 (all jobs):
WRITE: bw=4181KiB/s (4281kB/s), 4181KiB/s-4181KiB/s (4281kB/s-4281kB/s), io=30.5MiB (32.0MB), run=7482-7482msec
Run status group 1 (all jobs):
WRITE: bw=2771KiB/s (2838kB/s), 2771KiB/s-2771KiB/s (2838kB/s-2838kB/s), io=30.5MiB (32.0MB), run=11287-11287msec
Run status group 2 (all jobs):
READ: bw=11.4MiB/s (12.0MB/s), 11.4MiB/s-11.4MiB/s (12.0MB/s-12.0MB/s), io=30.5MiB (32.0MB), run=2680-2680msec
Run status group 3 (all jobs):
READ: bw=12.0MiB/s (12.6MB/s), 12.0MiB/s-12.0MiB/s (12.6MB/s-12.6MB/s), io=30.5MiB (32.0MB), run=2543-2543msec
Disk stats (read/write):
mmcblk0: ios=15548/15656, sectors=124384/125480, merge=0/27, ticks=4870/18365, in_queue=23235, util=93.05%
And then the NVMe drive:
root@wizzle /t/nvme# fio --profile=tiobench
seqwrite: (groupid=0, jobs=1): err= 0: pid=4865: Mon Jul 6 19:47:10 2026
write: IOPS=21.6k, BW=84.4MiB/s (88.5MB/s)(30.5MiB/362msec); 0 zone resets
randwrite: (groupid=1, jobs=1): err= 0: pid=4870: Mon Jul 6 19:47:10 2026
write: IOPS=21.2k, BW=82.8MiB/s (86.8MB/s)(30.5MiB/369msec); 0 zone resets
seqread: (groupid=2, jobs=1): err= 0: pid=4871: Mon Jul 6 19:47:10 2026
read: IOPS=13.3k, BW=51.9MiB/s (54.4MB/s)(30.5MiB/589msec)
randread: (groupid=3, jobs=1): err= 0: pid=4876: Mon Jul 6 19:47:10 2026
read: IOPS=13.1k, BW=51.3MiB/s (53.7MB/s)(30.5MiB/596msec)
Run status group 0 (all jobs):
WRITE: bw=84.4MiB/s (88.5MB/s), 84.4MiB/s-84.4MiB/s (88.5MB/s-88.5MB/s), io=30.5MiB (32.0MB), run=362-362msec
Run status group 1 (all jobs):
WRITE: bw=82.8MiB/s (86.8MB/s), 82.8MiB/s-82.8MiB/s (86.8MB/s-86.8MB/s), io=30.5MiB (32.0MB), run=369-369msec
Run status group 2 (all jobs):
READ: bw=51.9MiB/s (54.4MB/s), 51.9MiB/s-51.9MiB/s (54.4MB/s-54.4MB/s), io=30.5MiB (32.0MB), run=589-589msec
Run status group 3 (all jobs):
READ: bw=51.3MiB/s (53.7MB/s), 51.3MiB/s-51.3MiB/s (53.7MB/s-53.7MB/s), io=30.5MiB (32.0MB), run=596-596msec
Disk stats (read/write):
nvme0n1: ios=13873/15650, sectors=110984/125184, merge=0/4, ticks=866/486, in_queue=1354, util=49.13%
BW measurements are in MB/s.
| Operation | SD | NVMe | Ratio |
|---|---|---|---|
| seqwrite IOPS | 1045 | 21600 | 20.7x |
| seqwrite BW | 4.2 | 84.4 | 20.1x |
| randwrite IOPS | 692 | 21200 | 30.6x |
| randwrite BW | 2.8 | 82.8 | 29.6x |
| seqread IOPS | 2917 | 13300 | 4.6x |
| seqread BW | 12.0 | 51.9 | 4.3x |
| randread IOPS | 3075 | 13100 | 4.3x |
| randread BW | 12.6 | 51.3 | 4.1x |
In the words of the great Ferris Bueller, “It is so choice. If you have the means, I highly recommend picking one up.”