How to recover a partition accidently deleted with fdisk (Linux)?

6,807

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.

  1. Download and extract TestDisk linux version.

  2. Run testdisk_static executable residing in linux folder.

  3. Select Option [NO_LOG], After that I got drive selection. I select the drive I deleted.

  4. Select [EFI_GPT] option, After that select [QUICK SEARCH] option

  5. Select [WRITE] option, restart computer and I recovered my partition.

Share:
6,807

Related videos on Youtube

SunnyShah
Author by

SunnyShah

I code in C,C++,JS and R. My core interests are algorithms, Machine learning and Math.

Updated on September 17, 2022

Comments

  • SunnyShah
    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 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 to the "Analyze" option.

    3. After a quick search it found all files I am looking for.

    Now can you please tell me how to recover this partition?

  • Vince V.
    Vince V. over 14 years
    +1 for testdisk. That app has saved countless Gb of data for me.
  • SunnyShah
    SunnyShah over 14 years
    Hi 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
    avelldiroll over 14 years
    Their 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