How to recover a partition accidently deleted with fdisk (Linux)?
Solution 1
Depending how you managed to delete your partition, testdisk might be able to recover it. It's available on countless live-cd including:
Solution 2
Here are the steps I followed to recover partition.
Download and extract TestDisk linux version.
Run testdisk_static executable residing in linux folder.
Select Option [NO_LOG], After that I got drive selection. I select the drive I deleted.
Select [EFI_GPT] option, After that select [QUICK SEARCH] option
Select [WRITE] option, restart computer and I recovered my partition.
Related videos on Youtube
SunnyShah
I code in C,C++,JS and R. My core interests are algorithms, Machine learning and Math.
Updated on September 17, 2022Comments
-
SunnyShah over 1 year
I am using FC6 in VMware, I accidently deleted my partition by using
fdisk
, it told me that after the restart, the partition will be deleted. Now I lost all my important data in that drive. What are the ways to recover this partition?UPDATE
I installed
teskdisk
, after running it I did followingAfter disk selection I got that
/dev.hdd/
is the drive that I am looking for. So I select it.After that I go to the "Analyze" option.
After a quick search it found all files I am looking for.
Now can you please tell me how to recover this partition?
-
joe over 14 years
-
Vince V. over 14 years+1 for testdisk. That app has saved countless Gb of data for me.
-
SunnyShah over 14 yearsHi avelldiroll, I installed teskdisk, after running it I did following 1). After disk selection I got that /dev.hdd/ is the drive that I am looking for. So I select it. 2). After that I go in to Analyze option. 3). After quick search it found all files I am looking for. 4). Now can you please tell me how to recover this partition?
-
avelldiroll over 14 yearsTheir should be an option to save the recovered partition table. The testdisk website has a lot of documantation. This link should describe your use-case: cgsecurity.org/wiki/TestDisk_Step_By_Step