Recovering SD card that was used as internal memory for Android Phone

Using PhotoRec to recover lost data
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
Locked
Message
Author
Maximilian
Posts: 1
Joined: 26 Nov 2020, 21:03

Recovering SD card that was used as internal memory for Android Phone

#1 Post by Maximilian »

Hello everyone and thanks for having me!

I have an issue and I want to see if the community can assist me in order to use TestDisk & PhotoRec to solve it.

I have a micro SD SanDisk Ultra 32 GB.
This was formatted in an Android Phone in order to act as internal memory.
(So I suppose that this means that the card is encrypted so only that phone can access it)

Problem is that the card has been removed from the phone and the phone no longer exists.
When I insert the card in another android phone it asks to be formatted (which I haven't done it).
When I try to access it through the laptop's card reader it won't mount.

I have already tried running PhotoRec but I only get 5 files out of it that are unreadable.
And did one TestDisk attempt and this is the output.

Code: Select all

Thu Nov 26 12:34:39 2020
Command line: TestDisk

TestDisk 7.1, Data Recovery Utility, July 2019
Christophe GRENIER <grenier@cgsecurity.org>
https://www.cgsecurity.org
OS: Linux, kernel 5.4.0-53-generic (#59-Ubuntu SMP Wed Oct 21 09:38:44 UTC 2020) x86_64
Compiler: GCC 9.2
ext2fs lib: 1.45.5, ntfs lib: libntfs-3g, reiserfs lib: none, ewf lib: none, curses lib: ncurses 6.1
User is not root!
Hard disk list


TestDisk exited normally.
Using locale 'LC_CTYPE=en_US.UTF-8;LC_NUMERIC=el_GR.UTF-8;LC_TIME=en_US.UTF-8;LC_COLLATE=en_US.UTF-8;LC_MONETARY=el_GR.UTF-8;LC_MESSAGES=en_US.UTF-8;LC_PAPER=el_GR.UTF-8;LC_NAME=el_GR.UTF-8;LC_ADDRESS=el_GR.UTF-8;LC_TELEPHONE=el_GR.UTF-8;LC_MEASUREMENT=el_GR.UTF-8;LC_IDENTIFICATION=el_GR.UTF-8'.


Thu Nov 26 12:34:44 2020
Command line: TestDisk /debug

TestDisk 7.1, Data Recovery Utility, July 2019
Christophe GRENIER <grenier@cgsecurity.org>
https://www.cgsecurity.org
OS: Linux, kernel 5.4.0-53-generic (#59-Ubuntu SMP Wed Oct 21 09:38:44 UTC 2020) x86_64
Compiler: GCC 9.2
ext2fs lib: 1.45.5, ntfs lib: libntfs-3g, reiserfs lib: none, ewf lib: none, curses lib: ncurses 6.1
/dev/sda: LBA, LBA48, DCO support
/dev/sda: size       976773168 sectors
/dev/sda: user_max   976773168 sectors
/dev/sda: dco        976773168 sectors
Warning: can't get size for Disk /dev/mapper/control - 0 B - 0 sectors, sector size=512
Warning: can't get size for Disk /dev/loop0 - 0 B - 0 sectors, sector size=512
Warning: can't get size for Disk /dev/loop1 - 0 B - 0 sectors, sector size=512
Warning: can't get size for Disk /dev/loop2 - 0 B - 0 sectors, sector size=512
Warning: can't get size for Disk /dev/loop3 - 0 B - 0 sectors, sector size=512
Warning: can't get size for Disk /dev/loop4 - 0 B - 0 sectors, sector size=512
Warning: can't get size for Disk /dev/loop5 - 0 B - 0 sectors, sector size=512
Warning: can't get size for Disk /dev/loop6 - 0 B - 0 sectors, sector size=512
Warning: can't get size for Disk /dev/loop7 - 0 B - 0 sectors, sector size=512
Hard disk list
Disk /dev/mmcblk0 - 31 GB / 29 GiB - CHS 973968 4 16 (RO), sector size=512
Disk /dev/sda - 500 GB / 465 GiB - CHS 60801 255 63, sector size=512 - ST500LM021-1KJ152, S/N:W62ALF4C, FW:0002YXM1

Partition table type (auto): EFI GPT
Media is opened in read-only.
Disk /dev/mmcblk0 - 31 GB / 29 GiB (RO)
Partition table type: EFI GPT

Analyse Disk /dev/mmcblk0 - 31 GB / 29 GiB - CHS 973968 4 16 (RO)
hdr_size=92
hdr_lba_self=1
hdr_lba_alt=62333951 (expected 62333951)
hdr_lba_start=34
hdr_lba_end=62333918
hdr_lba_table=2
hdr_entries=128
hdr_entsz=128
19a710a2 b3ca 11e4 b0 26 10 60 4b 88 9d cf
193d1ea4 b3ca 11e4 b0 75 10 60 4b 88 9d cf
Current partition structure:
 1 P Unknown                     2048      34815      32768 [android_meta]
 2 P Unknown                    34816   62333918   62299103 [android_expand]
Backup partition structure
partition_save

search_part()
Disk /dev/mmcblk0 - 31 GB / 29 GiB - CHS 973968 4 16 (RO)

Results

interface_write()
 
No partition found or selected for recovery
simulate write!

TestDisk exited normally.
The general question is:

Can you recover the files of an SD card that was configured to act as an internal storage for an Android Phone if the phone has been lost or factory reset?
User avatar
cgrenier
Site Admin
Posts: 5441
Joined: 18 Feb 2012, 15:08
Location: Le Perreux Sur Marne, France
Contact:

Re: Recovering SD card that was used as internal memory for Android Phone

#2 Post by cgrenier »

AFAIK due to encryption, you cannot recover the lost files.
Locked