is this possible ? I want to extract data from my data.img
Ok, so my rom got corrupted and didn't have any backup of the data so I made a nandroid backup and flashed a new rom.
Now I have the nandroid backup in hand and I need to extract the apps and data from there. I used app extractor and it was able to extract and restore apps stored on internal memory (sd-ext since I use amarrullz script).
Here are some issues that I am still facing:
1. Appextractor wasn't able to restore my old sms. Any idea where they might be located? and guide/app to restore?
2. My apps which were located on the external sd card arn't there yet. I guess it has something to do with android_secure? I have most(or all?) of the apps which were installed in the external card in ".asec" format and I have no idea what to do with them. Can anyone guide me where the apps and thier data is located and how to restore them? I tried advanced restoring "data" from nandriod but that leads to bootloop.
Update : Sms issue was solved
The apps on sd end up in asec partition:
Data and lib files go in mnt/asec/[app name directory]
Dalvik cache goes to internal on data/dalvik-cache
Data goes on internal data/data
You can extract the contents of the nandroid backup to your pc and then use adb to push the files where they belong.
Good luck.
dxppxd said:
The apps on sd end up in asec partition:
Data and lib files go in mnt/asec/[app name directory]
Dalvik cache goes to internal on data/dalvik-cache
Data goes on internal data/data
You can extract the contents of the nandroid backup to your pc and then use adb to push the files where they belong.
Good luck.
Click to expand...
Click to collapse
1. I only have asec files which i have placed in mnt/secure/asec
2. Is dalvik-cache necessary?
3. data is copied
4. the libs and data of mnt/asec are not present in nandroid backup (atlest i couldn't find).
Logcat Attached.
Managed, due to clumsyness, to overwrite pictures on my local disk AND delete them on the sdcard0 storage. Never ever click Yes to merging folders
Is there any way, without root and with the .253 stock fw, that I can make a full image dump of the sdcard partition to be able to tinker with data restoration tools?
Do I need to downgrade the ROM and root before proceeding?
Can I in some way push down dd and make an image?
sidenote: Why in the name of all reasonable things did Google choose MTP as preferred and making it impossible to mount the internal SD as storage???
Any suggestions welcome!
Does sony pc companion makes a nandroid backup?
You can just select what files/folders to backup from Internal Storage and/or SD Card.
It creates a .DBK file, which seems to be a ZIP file after inspecting.
The file contains a custom-made structure consisting of XML data and file hashes to organize the backup.
I haven't found any Nandroid info in there, just the files I selected.
LouNGeRR said:
You can just select what files/folders to backup from Internal Storage and/or SD Card.
It creates a .DBK file, which seems to be a ZIP file after inspecting.
The file contains a custom-made structure consisting of XML data and file hashes to organize the backup.
I haven't found any Nandroid info in there, just the files I selected.
Click to expand...
Click to collapse
Do you happen to know where it is saved on Hard Disk?
Is it possible to mount data partition on PC or USB to recover data?
Edit: I meant userdata partition
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?
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.
Making Dump Files Out of Android Device Partitions
have u try this
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.
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.
SilverDove said:
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.
Click to expand...
Click to collapse
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
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.
SilverDove said:
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.
Click to expand...
Click to collapse
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
SilverDove said:
Is it possible to mount data partition on PC or USB to recover data?
Edit: I meant userdata partition
Click to expand...
Click to collapse
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.