My Trip to Hard Disk Partition Recovery

plarq

Crazy forever
Joined
May 16, 2004
Messages
6,177
Location
None of the above
Recently I tried to install Windows 7 on an Linux only machine. I prepared a free space in the extended partition. Unluckily when I clicked to format this free space, the installer just format the rest of the extended partition saving a Linux swap partition.
To make matters worse, that logical partition is where I installed my current Linux system.

The original extended partition:

Free space/Linux ext3/Linux swap

The aftermath:

NTFS/Linux swap

I reboot with Live CD. After checking on google, I chose Testdisk to analyze and recover formatted partition.
---------------------------------------
Using its "analyze" function, I found my lost partition, etc.

a table like this:

Partition Start End
* HPFS-NTFS/Linux,etc. Sector No. etc
D ...
P
L

D for deleted, P for Primary, L for Logical, etc.

Select the misformatted NTFS and set it as deleted (Using Left/Right arrow keys)
Select the deleted ext3 and set it as Logical.

Reboot. Now GRUB displays Error 22, meaning no such partition.
Reboot again with Live CD. This time, rebuild GRUB on that Logical ext3 partition.
 
Back
Top Bottom