I installed Ubuntu on my old pc. I thought only C drive would be formatted, but the entire harddrive got formatted and partioned into one.
1 Answers
Welcome to AskUbuntu, MrKarma4ya.
Recovering files from a formatted drive will be quite difficult and possibly quite expensive. This really depends on how the ext4 format modified the drive. If all it did was write the superblock and the installation files, there's a possibility that some of your data is still there. The problem is that there is no method (that I know of) to change partitions back to a previous format. You will need to get creative.
Option 1:
- make a
ddimage of your disk and save it to a safe place. This will likely require a second disk of equal or greater size. - format the disk as NTFS
- compare the disks at the block level using
cmp cmpwill tell when the two begin to change- take that offset value and have
dduse your image as a source and skip ahead by X — where X is the offsetcmpgave you — and start writing back your data to the freshly formatted NTFS disk
Mind you, this will only work if the bulk of the Ubuntu installation did not overwrite the files that existed on the device previously and if all the details are done perfectly. It's not a simple process at all.
Option 2 (the expensive one):
- send your disk to a data recovery centre
- be prepared for the sticker price
I really hope your most important files have been backed up recently somewhere.