Deleted partition recovery

I deleted a partition by mistake. Is there a way to recover it? I’m new to Linux.

In theory yes, but in practice no. To recover a delted partition you need a few informations which you probably don’t have:

  1. At which Sector the partition exactly starts
  2. The exact size in number of sectors for the partition
  3. The type of the partition

These information are normally displayed inside the partitioning tool as long as the partition exists, but not afterwards.

If I had these informations, what should I do?

If you had this information, you would probably open a Terminal, then run

sudo gdisk /dev/sda

And use the appropriate sub-commands to recreate the partition with the original parameters. But please be aware that using the command above is dangerous if you make any mistake.

1 Like

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.