Page 1 of 1

Recovering embedded ext4 filesystem -thousands of partitions

Posted: 04 Jun 2013, 23:34
by ext4collector
Hi!

I lost an ext4 partition in a dd image (stored in a file in my rootfs) in /foo/bar/my.img.
A crash corrupted the directory entry "bar" that stored the image, but the image itself should still be intact.
testdisk's disk restore identifies the ext4 when using deep search, but it also finds several thousand false positives (ext4 headers, I guess).

Is there an easy way to sort these unmountable filesystems from the output?

Can I try to run a for loop to mount the ext4 fs using offset= or similar?

I have a /log with the found partitions and offsets, but I can't get /sbin/mount -t ext4 -o offset= to work.

Any help would be greatly appreciated - thanks!