I have a 500GB drive. The first 100GB was an ext3 Ubuntu 9.04 installation, the last was formatted as a 400GB ext4 for storage. I had a lot of files on that 400GB partition - most weren't important, but there may have been some that were important and not backed up.
This is too bad because at 2AM last night I reformatted the first 300GB of the drive by dd cloning a 300GB drive to it. So the drive became 150GB ext3 Ubuntu 8.04, 150GB xfs, and 200GB unformatted (the last half of what was my 400GB ext4). The xfs partition that was copied was empty on the original disk, but since I used dd, I think that means all the sectors were overwritten (is that correct?). In which case I would literally only have data for the last half of the 400GB volume I'm trying to recover from.
- What are the chances I'll be able to recover any of the files off of the ext4 drive? If it's a wild goose chase I'll stop now.
- If it's worth a shot, what would be the best tool to do it with?
EDIT: The answer (placed here because it's sort of buried in the comments below) was using the PhotoRec utility from the SystemRescueCd live CD. It recovered quite a few files even though half the partition had been overwritten.