Page 1 of 1

TestDisk doesn't detect partitions from Nexus5 mmcblk0

Posted: 17 Aug 2016, 13:16
by jazzl0ver
Hi. I've made a backup of my Nexus5's flash memory (/dev/block/mmcblk0) using the following command:

Code: Select all

adb shell dd if=/dev/block/mmcblk0 > mmcblk0.raw
and now trying to recover file systems from it using TestDisk.

Here is what I get after Analyze command has finished:
testdisk.png
testdisk.png (26.39 KiB) Viewed 1751 times
So, TestDisk doesn't display the partition names which makes it hard to restore what I need. I believe the file contains GPT partitions, which I selected before "Analyze". Please, find attached the 1st 9 blocks of the source file, which show the partition names.

Is this a bug or did I do something wrong?

Re: TestDisk doesn't detect partitions from Nexus5 mmcblk0

Posted: 17 Aug 2016, 19:33
by cgrenier
If you choose Continue, there will be a list of partition. On each ext4 partition, you can use 'p' to list its content.
As you didn't explain why you are using testdisk and didn't provide the testdisk.log file content, it's hard to understand what you are trying to do.

Re: TestDisk doesn't detect partitions from Nexus5 mmcblk0

Posted: 26 Aug 2016, 13:24
by jazzl0ver
cgrenier, thank you for the reply!

Choosing Continue doesn't help at all:
testdisk_2.png
testdisk_2.png (7.05 KiB) Viewed 1725 times
(this is after I chose Continue and then pressed 'p' on the 1st partition)

Actually, I expected something like shown on this picture (taken from this article: https://www.dflund.se/~jokke/androidfilerecovery/):
Image
(notice the partition names; i've checked my .raw file - it does contain them)

I'm sorry if my explanation wasn't clear enough. Let me try again:
1. I'm trying to figure out a way to completely backup and restore my Nexus5 phone (saving internal MMC memory to a file seems to be pretty reliable backup option)
2. I used TestDisk to try to recover partitions from the raw file and then either recover certain files or flash them back to the phone (see the article I provided above)
3. This time I'm attaching the log file. HTH