Mon, 07 Aug 2023
This is annoying, but I never have the only copy of things on the USB (never do that, even with a regular USB drive). I just have to ssh
in, run the ./newusb
script, and it will erase the broken virtual drive and create a new one.
Oh, and then I have to re-mount it on my PC, re-copy all the files over... like I said, annoying.
So I am trying out an alternative. Separate directories, so the machine and PC are never writing to the same thing. A watchdog script that watches the directory I'm working in, and if it sees some changes, it "unplugs" the machine's directory, copies them over, and "plugs in" the machine's directory again. There's still a chance for corruption, if the machine happened to be scribbling on its version when the watchdog yanked it, but that's not bad: there's an un-corrupted copy waiting to be copied over as soon as the corrupt version is wiped and re-created.
(Yes, getting a little nerdy here.)
Anyway, I have it set up that way right now. If it continues to work, I'll change the how-to and the pre-made downloadable image to match.
Comments are not available.
Join my Patreon for monthly rewards!
Was my site helpful? Buy me a Ko-Fi!