TestDisk doesn't detect partitions from Nexus5 mmcblk0

Using TestDisk to repair the filesystem
Post Reply
Message
Author
jazzl0ver
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
testdisk.png (26.39 KiB) Viewed 396 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?
Attachments
mmcpart.zip
(1.49 KiB) Downloaded 39 times

Sponsored links

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

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.

jazzl0ver
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
testdisk_2.png (7.05 KiB) Viewed 370 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
Attachments
testdisk.zip
(1.89 KiB) Downloaded 34 times

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests