File system repair and deleted partition

Using TestDisk to repair the filesystem
Post Reply
Message
Author
yann
Posts: 1
Joined: 08 Apr 2013, 10:37

File system repair and deleted partition

#1 Post by yann » 09 Apr 2013, 10:55

Hello,

I have (or had) a 160 GB hard drive configured as dual boot with Windows 7 and Ubuntu 10.04. On the first 12 GB, I had a windows recovery partition, the next 100 GB for Windows 7 and the last 48 GB with a Ubuntu 10.04 (+ Swap).
I don't exactly know how what my sister done but I was not any more able to boot Windows 7.

I decided to rescue the Win7 partition with testdisk. I then accidently destroyed the file system on Ubuntu and tesdisk now display the Ubuntu partition as an NTFS file system. A simple Analyze with testdisk looks like

Code: Select all

Disk /dev/sda - 160 GB / 149 GiB - CHS 19458 255 63
     Partition               Start        End    Size in sectors
* HPFS - NTFS              0  32 33  1529 232 47   24576000 [WinRE]
P HPFS - NTFS           1529 232 48 13566 164 38  193370112
P HPFS - NTFS          13566 164 39 19457  21 20   94629888
After a testdisk deeper search, I get the following.

Code: Select all

Disk /dev/sda - 160 GB / 149 GiB - CHS 19458 255 63
     Partition               Start        End    Size in sectors
* HPFS - NTFS              0  32 33  1529 232 47   24576000 [WinRE]
D HPFS - NTFS           1529 232 48 13566 164 38  193370112
D Linux                12636 136 45 13629 135 42   15952480
D Linux                12640   0  1 13632 253 61   15952480
D Linux                12806 152 19 13799 151 16   15952480
D Linux                12815 165 23 13808 164 20   15952480
D Linux                12844 214 43 13837 213 40   15952480
D Linux                12854 102 49 13847 101 46   15952480
D Linux                12862  45 48 13855  44 45   15952480
D Linux                12893  40 12 13886  39  9   15952480
D Linux                12897 190 30 13890 189 27   15952480
D HPFS - NTFS          13566 164 39 19457  21 20   94629888
Structure: Ok.  Use Up/Down Arrow keys to select partition.
Use Left/Right Arrow keys to CHANGE partition characteristics:
*=Primary bootable  P=Primary  L=Logical  E=Extended  D=Deleted
Keys A: add partition, L: load backup, T: change type, P: list files,
     Enter: to continue
NTFS, 12 GB / 11 GiB
So...how to recover the deleted partition and fix the broken file system?

Thanks for your help,
Yann

Sponsored links

Post Reply

Who is online

Users browsing this forum: Google Adsense [Bot] and 0 guests