2

I have accidentally overwritten the first few GB of my external hard drive with dd. Previously the file system had a NTFS file system of about 3TB and at the end an 1 TB ext4 file system containing my personal backups. Is there any way I can restore the ext4 partition and its files?

In particular, is it possible to recover the folder structure? I used duplicity to create my backups.

1
  • If you just want to recover the Ext4 part you don't really need to do much. The data is already there and intact, you just need to let Testdisk rewrite the partition table. For the NTFS side, you might like to read this: unix.stackexchange.com/a/283009/84179 Jan 1 '18 at 17:55
2

I am typically approaching this by making copy of whatever remained onto separate drive (to not destroy whatever left). And try to use testdisk afterwards - it does exactly what you want.

1
  • Thanks for the suggestion, I looked at testdisk but I am not sure how to solve my problem with it.
    – van
    Dec 30 '17 at 10:32

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.