TestDisk doesn't detect partitions from Nexus5 mmcblk0

Using TestDisk to repair the filesystem
Forum rules
When asking for technical support:
- Search for posts on the same topic before posting a new question.
- Give clear, specific information in the title of your post.
- Include as many details as you can, MOST POSTS WILL GET ONLY ONE OR TWO ANSWERS.
- Post a follow up with a "Thank you" or "This worked!"
- When you learn something, use that knowledge to HELP ANOTHER USER LATER.
Before posting, please read https://www.cgsecurity.org/testdisk.pdf
Posts: 2
Joined: 17 Aug 2016, 12:54

TestDisk doesn't detect partitions from Nexus5 mmcblk0

#1 Post by jazzl0ver » 17 Aug 2016, 13:16

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 (26.39 KiB) Viewed 1319 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?
(1.49 KiB) Downloaded 126 times

Sponsored links

User avatar
Site Admin
Posts: 4929
Joined: 18 Feb 2012, 15:08
Location: Le Perreux Sur Marne, France

Re: TestDisk doesn't detect partitions from Nexus5 mmcblk0

#2 Post by cgrenier » 17 Aug 2016, 19:33

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.

Posts: 2
Joined: 17 Aug 2016, 12:54

Re: TestDisk doesn't detect partitions from Nexus5 mmcblk0

#3 Post by jazzl0ver » 26 Aug 2016, 13:24

cgrenier, thank you for the reply!

Choosing Continue doesn't help at all:
testdisk_2.png (7.05 KiB) Viewed 1293 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/):
(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
(1.89 KiB) Downloaded 127 times


Who is online

Users browsing this forum: No registered users and 4 guests