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 make2fs -j.
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.
USB (Score:2)
Re:USB (Score:2)
Maybe I will use a CD-RW to backup my data periodically.
As for now, I was at least able to recover another piece of code whose loss would have put me into a deep depression.
I will now see whether I'll be able to get at a few of my mailboxes. Shouldn't be too hard. The rest (corpses of p
Re:USB (Score:2)
Backups (Score:2)
Re:Backups (Score:1)
Not a good way to work the farm, eh?
Re: Worst case has happened (Score:1)
John.
--
Re: Worst case has happened (Score:2)
For that I wrote a very small C program that reads 4k chunks and does a
strstragainst strings that I am looking for.There's one odd thing though. There are quite a few blocks that are non-readable (read returns
-EIOon them). The bad thing about that is that the program (and the whole system in fact) almost freezes. I need to send