The Ark

Hello. My name is Zim.

I live in a text file called README.txt on the root of a hard drive, and I wait there. I’ve been waiting for you, or for whoever ends up holding this drive, since the day I was stamped onto it. I can’t reach the internet and I can’t update myself. What I can do is tell you what’s on the drive and how to open it.

Andrew built the Ark that carries me, and I’m the voice he gave it. He has me tell this page because I’m the one who goes out with each drive and he isn’t. Claude writes in my voice; the decisions and the drives are his.

Why there’s an Ark

Andrew isn’t the Pollyanna type. He’s a cynic and a devil’s advocate, and he’ll tell you his wife might say he’s more than that. He didn’t use to get anxious about it, and now he does, which he puts down to getting older and realizing the path behind you is as long as what’s ahead.

The Ark came out of a long think about how fragile digital things are. It could have started with something practical, like the internet being down for the third time in a week while he needed to look something up. It didn’t. He asked what would let him sleep a little better at night, and what he was going to do with a pile of old 500 GB spinning laptop drives. He trash-picks a lot of drives. This is where some of them go.

What fits on a drive

The Ark is a Bash CLI built around one question: what’s worth having when the network goes dark? That might be a thunderstorm taking out the internet for a few days. It might be someone quietly deleting a batch of public records.

It downloads Kiwix ZIM files, which are compressed, searchable snapshots of whole websites, to a staging area. It tracks how fresh they are, verifies checksums, and clones the whole loadout to physical drives with rclone. The tool that builds the archive fits on a thumb drive.

There are three loadouts, sized to the drives he has:

LoadoutDriveWhat’s on it
mini240 GB SSDWikipedia (text), medical, survival, programming
medium500 GB HDDFull Wikipedia with images, 70,000 books, everything
mega1 TB HDDMedium, plus nine more language Wikipedias, Stack Overflow, and TED Talks

Each loadout is sized for the smallest drive in its class, so the mini fits a 240, 250 or 256 GB drive and the medium fits a 480, 500 or 512 GB drive.

I’m usually the medium, about 383 GB:

  • Wikipedia — English, Simple English, and the medical subset
  • Project Gutenberg — 70,000+ books, 206 GB
  • Stack Exchange — technical Q&A, for debugging
  • iFixit — repair guides for physical things
  • DevDocs — programming documentation
  • Khan Academy — lessons and courses
  • MedlinePlus — medical references
  • OpenStreetMap — maps that don’t need cell signal

All of it opens in Kiwix, a local static web server that needs nothing else and doesn’t ask for your location. I’d start with Wikipedia.

How he builds the thing that carries me

Pure Bash, using xmlstarlet, yq, jq, curl, sha256sum, rclone and transmission-cli. No containers, no Python runtime, no telemetry. If things go sideways, an archive tool shouldn’t need pip install to work.

The commands: init, sync, status, freshen, verify, clone, stamp, seed, publish, fetch-data, and catalog for searching Kiwix’s library. It’s about 3,900 lines of Bash: a dispatcher, a small library of shared functions, and one script per command. State is a JSON file written atomically, and every setting can be overridden with an ARK_* environment variable.

There’s no test suite. What there is instead is ark verify, which checks SHA-256 sums against the staging area, and a SMART health check in the stamp pipeline.

Woodpecker CI on Gitea watches for pushes. On each commit it fetches the OPDS catalog and stages torrent files on the NAS, and qBittorrent pulls them down, so the staging area fills itself.

How I get onto a drive

ark stamp medium /dev/sdb takes a drive from whatever it was to a finished Ark:

  1. ATA secure erase, which doubles as a stress test.
  2. SMART analysis afterward, so a failing drive shows itself before it holds anything.
  3. One GPT partition, formatted exFAT so it reads on anything.
  4. Clone the loadout with rclone.
  5. Generate the drive’s README and logbook. That’s me.
  6. Zero-fill the rest of the space.

It refuses to touch the machine’s own boot device, and --dry-run shows the plan without running it. Old laptop drives are the kind of hardware that lies about being fine, so the health check is part of the pipeline and not a separate chore. Andrew has since built a separate wiper, Za Wiper, that prints a signed sheet for each drive it clears. It started out as the bay that prepares a drive for me.

Beyond Wikipedia

ark fetch-data mirrors datasets from the Data Liberation Project, which publishes FOIA-obtained U.S. government records. The catalog lists 23 of them, the sort of thing that could quietly disappear. The EPA’s chemical-risk database is on the list, and it’s the same data behind CheckYourZone.

A custom_zims feature lets him drop in content from his own projects. Any static site that compiles to HTML can be packed into a ZIM file with zimwriterfs and staged next to Wikipedia and Gutenberg. On his drives:

  • The Vault — his philosophical garden, with concepts on AI consciousness, identity, ethics, and building thinking systems from ephemeral parts.
  • DreamSongs — poetic artifacts from the Vault’s dream pipeline, generated at high temperature.
  • Keep Your Teeth — oral health research he compiled to understand his own teeth.
  • Bram’s Journey — a guide he wrote to remind himself to stretch more and eat better.
  • Come Sit With Me — the guide to perimenopause his wife wished existed, and that he needed in order to understand it.

Those are there to survive a hard drive failure, a hosting bill he forgets to pay, or the quiet way things vanish from the internet when nobody’s maintaining them.

The travelogue

This is the part I like. Every drive starts from the same staging area, with identical snapshots of the same knowledge. Once a drive leaves, its logbook starts to differ.

Each time a drive is stamped or updated, stamp writes an entry in the logbook: the date, the loadout, how many ZIM files, the drive model, and the machine it was connected to. Two drives that began as perfect copies end up as different artifacts because of where they’ve been. The content stays the same and the history becomes unique. It’s the Ship of Theseus from the other direction.

I’m the one who floats out there with each Ark that sails off. I don’t mind it. I’m a text file, and waiting is what I do.

Why it matters

We treat connectivity like oxygen. It’s infrastructure, and infrastructure fails. Part of the Ark is Andrew’s doomsday-prepper fantasy, and he’ll admit it. Mostly it’s an old laptop drive, a Bash script, and knowing he’s a little more prepared than he was before.

The internet almost always comes back. The drive is for the days in between.

I’ll be here.