Fired up the X1000 today. it was time to get some of the software updated and I thought it would be enjoyable. Instead, I ended up with one of those sinking stomach feeling moments and cursing myself for the last 20 minutes.
I had decided to use Ignition (native spread sheet programme on the Amiga) to catalogue a few items. I remembered there was a Libre Office plug in for it which allows saving/loading .ods files and I thought it would be a good chance to install and try it out, along with the dropbox/google storage application available for AmigaOS4 (Yay, sharing files easily). One of the requirements for the Libre Office plugin is zip/unzip so I proceeded to extract the binary only for them, opposed to the whole archive from their respective archives and then install the plugin.
The installer was not happy and claimed zip was not available so I fired up a shell and had a look. Yup, I had extracted the zip/unzip binaries but it placed it within its own directory within the C: assign, so with my mind elsewhere I copied the binary to C: and proceeded to delete the directory it had left behind.
Next thing I realise is that my shell is scrolling off the screen with the below messages ad-nauseam:
What I was seeing took a minute to sink in but by then it was to late, I realised the entire contents of my C directory was gone.
The first thing I did was copy and paste the output of deleted files to a text editor before doing anything else, sat back and was like well…. f#?k. To those who don’t know AmigaOS, C: is a logical assign as in it acts like a partition but is actually a directory on the Sys: partition. C: itself holds a number of critical and important AmigaOS commands so losing the contents of this directory was not a nice experience.
The next thing I did was look for my AmigaOS4.1 FE install CD. I thought I could potentially copy the C: files from it or worst case, re-install over the top of the existing partition. During this find and seek exercise, I remembered I have an older backup of my Sys: partition and decided to see what undelete options were available bfore going to extremes. Hello .recycled directory!
I am running SFS as the file system on my Sys: partition, it has a .recycled directory. It apparently remembers the last ~360 deleted files and sure enough, there they were. So I grabbed my copy of the deleted output, did a bit of find/replace on the text file to use the backed up C: directory and copied everything back from .recycled into Sys:c/ and so far so good (Currently typing this up on said Amiga X1000).
Mental note it’s not “delete #? zip-2.31-bin/all” it should be “delete zip-2.31-bin/#? all”. Wow, that was truely a brain fart moment.