I sometimes wonder what it exactly is that makes people think they can ignore warnings without consequences?... Anyway, not much use right now, but at least now you know why making backups to removable media is better.
Quote:
Originally Posted by IMNOboist
So now partition B is "empty." I know it didn't format it, but I need to get those files off of there.
|
Short: if after a disk formatting op you don't see any directory structures then yes, reformatting might be the cause.
Longer: a filesystem structure consists amongst others of things like superblocks, reserved inodes, and inodes for initially created directories like /lost+found. "Formatting" means overlaying a partition with a (new) filesystem structure. However formatting does not necessarily mean wiping the paritition area, it just overlays the structure. Therefore a group of blocks (aka a file) may still exist (where not overwritten) but they're no longer hooked into the filesystem structure, they are effectively unlinked and therefore invisible on mount. The problem with recovering files here is that not all blocks a file may occupy are directly linked. That's why OSS header/footer carvers like scalpel, foremost and photorec use file "magic" to recover "files" instead. BTW, this is unfortunately not an uncommon topic. Searching LQ for "recover files" or equivalent will yield threads you might want to read.
Quote:
Originally Posted by IMNOboist
I have created an image of partition B using ddrescue, but I don't know where to go from there.
|
Tools like 'photorec' will accept dd images as input.
Quote:
Originally Posted by IMNOboist
I tried using foremost, but it won't recover things like my virtual machines and completely nukes the original file structure I had.
|
Best forget your precious directory structure and be content if you can recover *any* files.
Quote:
Originally Posted by IMNOboist
And I've tried mounting it (using sudo mount -t ext3 -o loop /home/user/recovery.img /mnt), but that doesn't seem to work. The mount command completes successfully, but nothing shows up in the folder I mounted it to.
|
There's more than one thing wrong with doing that (mount point, write mode, journalling)...