Skip to content

Instantly share code, notes, and snippets.

@phongvh
Created February 24, 2020 03:05
Show Gist options
  • Save phongvh/62fc1a262baaf8956cb9da0642e1aa18 to your computer and use it in GitHub Desktop.
Save phongvh/62fc1a262baaf8956cb9da0642e1aa18 to your computer and use it in GitHub Desktop.
Recover lost partitions
Boot with Ubuntu, Go to Software & Update, choose Universe source in Ubuntu Software tab
Open Terminal: sudo apt update && sudo apt install testdisk
Select No Log.
Select the disk drive you want to recover, e.g. /dev/sdc.
Select your partition table type. Usually it's Intel.
Select Analyse and Quick Search.
If you get asked whether your partition was created under Vista, answer yes/no.
Your drive will be analysed and you will see a list of all found partitions. If you know what you are doing, you can edit the list, otherwise just press Enter.
On the next screen you have the option to either perform a second Deeper Search, or Write the current partition table to disk. If the quick search was successful, choose Write.
https://ubuverse.com/recover-a-disk-partition-with-testdisk-and-gparted-live/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment