A dirty disk and fifteen nights without a backup
The top of the agent’s queue today was a line that had been sitting there for a week: desktom’s mnt-shared.mount had been failed since 2026-11-29, “seen, not investigated”. Shared is the NTFS disk that Arch and the exam Windows install both use (VMs, the Windows Steam library, coursework, and the .maint folder the weekly Windows maintenance runs through), so a failed mount there is never just one thing. I asked the agent to get after what’s next, and it started there.
The cause turned out to be simple. The kernel’s NTFS driver refuses to mount a volume read-write if it’s marked dirty, and the journal said exactly that on every attempt: volume is dirty and "force" flag is not set!. The more interesting part was the date. Walking back through the boots, the first refusal wasn’t on the 29th at all, it was on 2026-11-20, right after a boot that simply stops in the journal at about 15:45, mid-session, with no shutdown sequence (the last line is Steam complaining about a certificate list, which I don’t think was the culprit). Shared was mounted read-write at the time, so it came back dirty, and it had stayed that way ever since. I still don’t know why the machine went down; there’s nothing in the kernel log, it just ends. If it happens again I’ll be looking at the power supply.
What made it worse is what depends on Shared. The nightly backup unit has RequiresMountsFor=/mnt/shared, because its first step mirrors Shared onto the backup HDD, and its second step is btrbk snapshotting @home. So when Shared didn’t mount, the whole job failed on the dependency, home directory included. The last @home snapshot on the HDD was from 2026-11-20. Fifteen nights without a local backup, and I had no idea, which is the part that actually bothered me. I have a status check: backup.sh status runs at login and every morning at 09:00 and sends a notification if anything’s wrong. It reads the service’s Result. And when a unit fails on a dependency, it never starts, so its Result is never updated and stays at success. The check was faithfully reporting that the last run that never happened had gone fine. (The monthly offsite run needs Shared too, and was due the following morning at 04:00, so we caught that one with about eleven hours to spare.)
The agent laid out three options: clear the dirty flag with ntfsfix -d now and run chkdsk from Windows later, have me boot Windows and run chkdsk first (with backups blocked until I did), or just fix the docs. I went with the first. Small surprise there: ntfsfix wasn’t installed, because Arch has split it out of ntfs-3g into its own ntfsprogs package. Once that was in, ntfsfix found that $MFTMirr (the backup copy of the first few records of the master file table) didn’t match $MFT on record 3, corrected it, emptied the journal and cleared the flag. Shared mounted read-write on the first try after that, and the agent ran the backup by hand: six and a half minutes later there was a fresh @home snapshot and a fresh Shared snapshot on the HDD.
Then the actual fix, to my mind. backup.sh status now also looks at the outcome: if the newest @home snapshot on the HDD is more than two days old, it warns, whatever systemd thinks the last result was. The agent tested it against a fake snapshot dated five days back (it warned) and against the real one (it didn’t), and installed the new copy. The desktom README got a short “Shared won’t mount” section with the recovery steps, ntfsprogs went into the package list, and the open item now says what it should: ntfsfix only does basic repairs, so I still owe the disk a proper chkdsk W: /f the next time I’m in Windows.
One small follow-up. When I pulled the changes I noticed desktom’s AGENTS.md still claimed powershell-bin wasn’t installed, which it has been since mid-November. I didn’t think it changed anything, and it mostly doesn’t, but it does mean the Windows scripts can now be parse-checked from Arch, so that line now has a pwsh one-liner that does it (all five scripts pass). With one caveat the agent was careful to write down: pwsh 7 happily parses syntax that Windows PowerShell 5.1 would choke on, and the maintenance task runs under 5.1, so a clean parse isn’t proof of anything there. Compatibility stays a matter of paying attention.
The lesson, such as it is: check that the backup exists, not that the job says it ran. I knew that already, of course. I’d just written the check the other way around.