Ext2 partition lost upon frozen computer
I booted into Knoppix and had just mounted an ext2 partition on my second harddrive (a Maxtor ~200GB, the partition occupying the last 45 GB or so), when the system froze (did not respond to mouse/keyboard) and I had to reboot with the reset button. Nota bene that I hadn't changed read/write mode to writeable yet! When Knoppix had started once more, the swap partition occured on the desktop (which it doesn't do normally) and when trying to mount it I got this error:
Trying to mount it manually returns: Testdisk doesn't find anything (says structure is OK) and neither does Acronis Disc Director. I have lots of files that I was going to burn onto DVD next week, and I don't want to lose them. What should I do? I can't see that they have been overwritten as the partition was only mounted for a few seconds and then Knoppix froze, almost 100% because of my motherboard which freezes every once in a while when the CPU is in a specific temperature interval (a bug, to say the least). This thing has happened hundreds of times before, but I have never lost anything when running Linux from the harddrive, only when running Knoppix from LiveCD. Cheers, Stefanos |
Quote:
|
Yep, I'd be checking an "fdisk -l" *real* closely.
Try this to check if a particular partition has been formatted as swap Code:
dd if=/dev/hdb1 count=1 skip=7 | strings |
Quote:
|
No, I did not try to mount the swap. What bugged me was the fact that the swap partition suddenly appeared as a normal partition on the Knoppix desktop, ie as hdb2. But neither hdb1 (an ext2) or hdb2 was mountable. I'll check fdisk -l when I get home.
But the thing is, I can't see that the partition should disappear just because the partition table is corrupt. There must be some way to scan for "partition headers" or something if I know where the partition is supposed to start. 200 GB disk, swap partition last (~1 GB), before that an ext2 partition (~45 GB). That partition must begin somewhere in the interval 150-160 GB from the beginning of the disk (200-45-1=154). Hope you can come up with something |
Quote:
The partition table defines the partitions - the start and size. If you no longer have a pointer to the data, why wouldn't it disappear ???. Quote:
|
Quote:
Quote:
Quote:
Anyway, this is the output from fdisk -l regarding the harddisk in question: Is it possible to create a partition table manually from this data and place it on the harddisk? Note that my harddisk was divided like this: Thus, there was no hdb3, as fdisk states. |
thinks that partition table is saved on several places on HDD as backup
|
Missed the note about testdisk - that's a worry.
I am not aware of any backup partition table(s). You can always update the partition table with [c]fdisk. The problem is to get the start of the partition correct so the filesystem metadata can be found, and the partition mounted. With your guesstimate of your old layout I'd create say a 150 Gig dummy to cover most of the previously "empty" then give the rest to a "real" partition, and start recovery on that. Making it bigger (both ends) makes sure you get all the relevant data. Then try something like photorec or foremost. Will take days, weeks maybe, to sort out probably. Good luck. Note: I never said your data was erased, merely "disappeared" - if you can't see/find something, it has disappeared. Regardless of whether it is still there or not. Same as turning the light off at night - everything disappears. |
My friend recommended a program he had called Partition Table Doctor. I tried it and it worked. The whole partition was found. No more worries.
Thanks for concern anyway. |
All times are GMT -5. The time now is 06:33 PM. |