I was trying to resize my EXT4 partition and something went wrong. I lost it. The space in once consumed is now being represented as Unallocated. How do I recover the partition?

1 Answer 1


Well provided you haven't overwritten it, it's possible.

sudo apt-get install testdisk
sudo testdisk

Here's a full thread showing how somebody restored their EXT4 partition (including some complications): http://ubuntuforums.org/showthread.php?t=1376383

  • Note to self: I personally had much more success with gdisk than testdisk. Sep 1, 2020 at 21:14
  • cool! You saved 2TB of data for me!
    – mixalbl4
    May 19, 2021 at 4:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.