Is it possible to mount data partition on PC or USB to recover data

SilverDove

Member
Apr 26, 2012
16
1
0
I have tried backing up data partition using TWRP, but it prompted me that pictures and downloads will not be backed-up!
Isn't the data partition that holds my camera and download folder?
 

SilverDove

Member
Apr 26, 2012
16
1
0
I am looking for a tool or and app that can let me take a disk image of internal SD partition, or create a whole image of my phone; so that I can use data recovery in my PC.
 

SilverDove

Member
Apr 26, 2012
16
1
0
Thanks I have tried it but when I execute
Code:
noblelte:/ # dd if=/dev/block/sda17 of=/sda17.img
Gives me
Code:
dd: /sda17.img: Read-only file system
Just to be sure : I ran the adb code while the phone is on normally not in TWRP.
 
Last edited:

SilverDove

Member
Apr 26, 2012
16
1
0
I also ran the code in TWRP terminal, while connecting a USB and mounting it.
It created the image inside the USB , however it stopped at 4GB saying the file is too large.
 

ShinySide

Inactive Recognized Developer
Nov 30, 2013
3,965
4,818
253
IHB
I also ran the code in TWRP terminal, while connecting a USB and mounting it.
It created the image inside the USB , however it stopped at 4GB saying the file is too large.
Are you just wanting to back up pictures, download folder, etc etc? Backing up the data partition the way you are is pointless as you're just accomplishing what twrp already does. Data partition is apps, system configurations, texts, calls, etc. Not pictures you've taking, download folder, etc.

And is there a reason you want an img file? Seems pointless to me when you can just copy it all over by drag and drop or adb pull the internal storage lol
 
  • Like
Reactions: bogarty

SilverDove

Member
Apr 26, 2012
16
1
0
I want to make a userdata partition image because it holds the camera album I deleted by mistake. I want to take the image and try to recover the deleted files using PC recovery software.

I found out that my problem was the 4GB limit of FAT32, so I formatted my USB flash memory using both exFat and ext4 and recovered the partition using TWRP terminal with the code above.

However I am still unable to read the image through Linux Reader and I can't attach the image as VHD.

Is what I am doing is useless? Because it came to my mind that if the recovered userdata partition is encrypted I will not be able to opened it, however, TWRP can browse the files so I guess it is not encrypted.
 
Last edited:

ShinySide

Inactive Recognized Developer
Nov 30, 2013
3,965
4,818
253
IHB
I want to make a userdata partition image because it holds the camera album I deleted by mistake. I want to take the image and try to recover the deleted files using PC recovery software.

I found out that my problem was the 4GB limit of FAT32, so I formatted my USB flash memory using both exFat and ext4 and recovered the partition using TWRP terminal with the code above.

However I am still unable to read the image through Linux Reader and I can't attach the image as VHD.

Is what I am doing is useless? Because it came to my mind that if the recovered userdata partition is encrypted I will not be able to opened it, however, TWRP can browse the files so I guess it is not encrypted.
You may need to convert the file type of the img using simg2img, make_ext4fs, etc

You can see what the file system type of the img you have by running:

file blahblah.img


But still don't think you're going to recover them but possibly lol never tried as I sync everything to a cloud
 

bogarty

Senior Member
Mar 16, 2011
1,134
898
143
Is it possible to mount data partition on PC or USB to recover data?

Edit: I meant userdata partition
For backing up app data, I'm more of a Titanium Backup person myself and for backing up partitions I generally prefer TWRP, but there are also apps for backing up all the different partitions as well. This is just one. Never tried it, but Wanam is a much trusted developer in the XDA community for Samsung devices.
https://play.google.com/store/apps/details?id=ma.wanam.partitions

NOTE: You can always save these backups to a USB OTG device if you need to as well. That's what I do with my Titanium Backup app data files and the information is with me all the time hanging on my key chain.(More info about that under "No SD Card Slot" on this post HERE.) This information can of course always be copied to a PC too.
 
Last edited: