Yup, I made it! I managed to destroy my partition where I keep all the code I have written within the past two years plus my mails.
This morning when booting, Linux complained that it was unable to read from
/dev/hdb2. Slight panic creeped up in me and so I booted with my recovery disk and did a fsck. Lots of errors, but none that weren't recoverable as it seemed.
My recovery disk doesn't yet know about ext3, so it turned my ext3 partition into ext2 which wouldn't be a problem.
After finally booting successfully, it wasn't able to mount this partition so I wanted to add the ext3 journal to it again. Now, what I should have written was
tune2fs -j. What I had written was
So now I am feeverishly trying to recover some data with the help of a disk editor. So far I was able to recover one XS file that I was working on the past two days and so I have put the upcoming File-Locate-0.60 in its original state.
The disk editor, btw, is not much of a help. So I've written a small C program which reads from
/dev/hdb2 blocks of 4096 bytes and scans those blocks for patterns that I supply. If it finds one, it dumps the block number. Together with the disk editor, I can then dump those blocks (and adjoining ones that belong to the same file) to disk. It's tedious and slow, but it works.