[Q] restoreing backups from cm10.1 - AT&T HTC One (M7)

so i completely forgot that when installing CM10.1 its changing things to
data media 0
how can i get back to my backups in twrp to restore please

CheesyNutz said:
so i completely forgot that when installing CM10.1 its changing things to
data media 0
how can i get back to my backups in twrp to restore please
Click to expand...
Click to collapse
I hate that you can't browse for backups in /twrp
however
I THINK you can access adb and put your backups where they can be found in a shell.
I know it doesn't fix you up now, but I use an OTG cable and flash drive to store my nandroids and titanium backups
---------- Post added at 02:20 PM ---------- Previous post was at 02:18 PM ----------
from the good folks at twrp
Android 4.2 Updates, Multi-User, and TWRP
If you aren't already familiar with what a "data media" device is, then this is a good pre-requisite read.
With Android 4.2, Google introduced multiple users as a new feature. In order to accommodate multiple users, Google is now giving each user a their own folder for storage. If you upgraded to 4.2 from 4.1, then the 4.2 ROM will look for a certain file in /data to determine whether it needs to migrate all of your files to the new multi-user data structure. By default, 4.2 migrates all of /data/media to /data/media/0.
A problem arose though with custom recoveries. A custom recovery retains the /data/media folder during a factory reset. When you factory reset and then boot a 4.2 ROM again, the 4.2 ROM will migrate everything in /data/media again. It will migrate your files every time you factory reset. This multiple migration is what resulted in some people having their files moved to /sdcard/0 or even /sdcard/0/0 etc.
In TWRP 2.3.2.0 we have corrected this problem by ensuring that we do not delete the special file during a factory reset. However, if ended up having your files upgraded you will need to move or merge them back into /sdcard. Also, if you have moved your TWRP folder from /data/media/0 to /data/media so that you could restore backups while using prior TWRP versions, you may now need to move the TWRP folder back into /data/media/0.
As a special note, if you restore a backup to a prior version of Android, you may have to move your files out of /data/media/0 and into /data/media to be able to see them again. Also, downgrading to 4.1 or below then installing 4.2 again may trigger another "upgrade" of your file system. It is not recommended to flip flop between 4.1 and 4.2 ROMs.
In other words boot back to cm10.1 use a file manager and move your backups to where twrp expects to find them.

can't i just backup my important files pictures music backups and format the internal ? would the fix it

CheesyNutz said:
can't i just backup my important files pictures music backups and format the internal ? would the fix it
Click to expand...
Click to collapse
well yeah,
but I thought you wanted to restore a nandroid backup.
What I did, after playing with CM10 for a while is use root explorer to copy everything out of /0 back to my /sdcard root partition then I deleted /0.

Related

[Q] Internal data problem

My Nexus 7 device. Flashed PA 3.0 using TWRP. I used a backup to restore the previous rom. Made some Titanium backups. Reflashed PA 3.0 and Gapps.
THe data kept for user access under sdcard disappeared. Seems like it was erased and replaced with a fresh set of new folders and little bit of data that PA just made. Checked storage space and about the same amount of data/memory is still used up on sdcard. Checked around the directories below sdcard using file expert and couldnt find it. Used TWRP to look around the directories and found all my data in /data/media
Tried to move it to /sdcard but it fails.
Tried to move it in file expert but only a few files s moved. File expert doesnt seem to recognize any of the files in /data/media as having any data, ie there is 0 bytes on each file and all folders become a 0byte file and not a folder.
I can still see the old data i want but how do i retrieve it safely?

[Q] Flashed from stock to CM10.1, data gone...or is it?

Hi guys.
I just flashed my SGSIII from Stock 4.1.2 to the latest CM10.1 nightly using CWM.
These are the steps, in chronical order, i went through:
Root device
Install CWM
Titanium Backup my apps and app data
EFS Backup
several other manual backups such as sms backup, dcim folder, whatsapp images etc.
Nandroid Backup using the CWM
Transfer all backup files to my MAC, as i don't have an external SD, just in case
Flash CM10.1, Flash Gapps, Wipe Data/factory reset, wipe davlik cache
Everything works fine, therefore copy TB Backup form Mac to device and restore it.
First of all: I didn't expect "wipe data/factory reset" to delete my complete internal storage (in the past being reffered to as sdcard0) containing all my user data like photos etc. But in fact it did! Nowhere to be found right now, which doesn't really matter as i did backup the most important stuff. But anyway...
And here comes the strange thing:
My system tells me that i have 11,35gigs of storage overall but only 6gigs can be used? The internal storage is literally empty. I don't have any files on it except my TB Backup data which is about 450-500mb. Another stange thing is that these 4 or 5 gigs of data which cannot be found anywhere (except DiskUsage) just happen to be as much data as i had on my phone before the whole flashing process.
So, I gotta ask myself: Could this be my old data? If yes, where is it to be found?
Another hint: I used the DiskUsage app to scan my internal storage. It shows me "system data" with a size of a little over 4gigs. What is that? Is this my old - but unaccessible - data?
I wanted to post a screenshot here, but I am not alowed as a new user. So here is my link 0cn[DOT]de[SLASH]ug5c
I'd be very appreciative if you could help me somehow. And yes, I did perform a search before asking, but couldn't find anything. :good:
/sdcard used to mount to /data/media/ but now its /data/media/0 so android is looking here for your data.
Basically all your 11.35 GB is in /data anyway so it accounts for /data/app, data/data (where apks are and app data) but also /data/media (now /data/media/0)
So using a file manager, look for stuff in /data/media and /data/media/0.
In data/media you should only have:
0
obb
Legacy
Often you'll find a clockworkmod folder here due to a backup
Factory reset from stock recovery / android wipes /sdcard. But clockworkmod recovery (and others) do not
Sent from my GT-I9300 using Tapatalk 2
Thank you so much!
Indeed, a copy of my whole old data is in /data/media, so it's full with a bunch of folders, containing my old stuff including the CM.zip and the Gapps.zip etc.
According to your post, this is not right? Should I move the data somewhere?
Is there a good reason why they changed the filesystem and the folder structure in 4.2.x so massively?
And again, thanks!
domemvs said:
Thank you so much!
Indeed, a copy of my whole old data is in /data/media, so it's full with a bunch of folders, containing my old stuff including the CM.zip and the Gapps.zip etc.
According to your post, this is not right? Should I move the data somewhere?
Is there a good reason why they changed the filesystem and the folder structure in 4.2.x so massively?
And again, thanks!
Click to expand...
Click to collapse
first of all, it's not a copy, those are the original files. you can move it to /data/media/0 to be able to access it from the ROM.
the reason for the change is the multiple users feature. /0 is internal SD for the first user, /1 is for the second, and so on
Glebun said:
first of all, it's not a copy, those are the original files. you can move it to /data/media/0 to be able to access it from the ROM.
the reason for the change is the multiple users feature. /0 is internal SD for the first user, /1 is for the second, and so on
Click to expand...
Click to collapse
This makes a lot of sense! Thanks for clarification.
One last question
Strangely enough I found my whole old data here as well: /mnt/shell/emulated
Is there a reasonable explanation for this as well?

Downgrading from 4.2.2 to 4.12

I know there are a few other threads out there regarding this but I'm still not completely sure of the steps. (Doing this for my brother's phone, not mine thats why)
Could someone outline a detailed method of downgrading to 4.1.2 again, while retaining all user files? I know 4.2.2 introduced that /0/ folder bull**** together with the multi user support.
I know the usual wipe via CWM, and flash 4.1.2 but how would this be different since its 4.2.2 before? File structures are different as said before. Don't wanna mess up since it's not my phone haha. Trying to get him to use 4.1.2 with perseus kernel since it's way better than stock.
Read the "Flashed 4.2?" thread in General
You can't keep user data, unless you do a full wipe during flash you will end up with a bootloop. Copy files from the internal sd to your pc, wipe and flash, then copy them back.
Backup apps only via titanium, don't restore system settings or data.
Just move everything from /data/media/0 to data/media.
Best bet actually would be to copy everything from /data/media/0 to pc first, full wipe and format of internal sd then flash rom
Sent from my GT-I9300 using Tapatalk 4 Beta
boomboomer said:
You can't keep user data, unless you do a full wipe during flash you will end up with a bootloop. Copy files from the internal sd to your pc, wipe and flash, then copy them back.
Backup apps only via titanium, don't restore system settings or data.
Click to expand...
Click to collapse
You could also backup SMS, MMS, call log, clock alarm using Titanium\Mybackup Pro.
User data files, and application data files (what's up, waze, etc) will have to be done manually as mentioned, using external SD.
I also recommend full format of internal SD card before installing new ROM. It will make the "0" folder go away or being abled to be deleted.

[Q] Restore files from Nandroid backup

Hello,
I did a Nandroid backup (system, data, etc. using CWM) and a Titanium backup (user apps), wiped my phone, and installed a new ROM.
Q: Does a Nandroid backup include the /ProgramData/Language/ folder?
I'm trying to restore files I 'hid' using the Hide It Pro app. A developer blog post mentions that this folder is the 'vault location'. As a result, I'd like to find this folder and restore it if possible.
A Titanium Backup restore of the Hide It Pro app+data didn't of course work due to this. I'd like to avoid restoring everything from the Nandroid backup if possible and just restore the individual folder. I have of course tried looking through the folders and files to find it, to no avail.
Many thanks,
Chris
CM11 on Galaxy S3 i9300
I'd also like to know where (and if) the 'Download' folder is backed up to in a Nandroid backup.
Anyone with knowledge of the Android partitions structure and may know where to find these folders, your assistance would be much appreciated. I can't seem to find any of this on the net unfortunately.
ChrisLoz said:
I'd also like to know where (and if) the 'Download' folder is backed up to in a Nandroid backup.
Anyone with knowledge of the Android partitions structure and may know where to find these folders, your assistance would be much appreciated. I can't seem to find any of this on the net unfortunately.
Click to expand...
Click to collapse
I have been using "Audio Manager" aka "Hide it Pro" for many months (maybe 2 years)
(DON'T THINK OF WEIRD HIDDEN THINGS !!! I use only encryption feature to encrypt my script files. :laugh::highfive
Hide it Pro stores its main locker in /sdcard/ProgramData/Android/.Language/.fr
and fake locker in /sdcard/ProgramData/Android/.Language/.xx (escape pin locker)
After new ROM they are not deleted if you did not format SD Card.
Reinstall "Hide it Pro" (any version) and set password like first time. But all old hidden files will be there.
(During new ROM install, Hide it Pro files are not harmed if SD Card is not formatted, just follow above method to get files back)
They are not deleted unless you format SD Card. (internal or external whatever you have)
Unfortunately Nandroid backup does not backup /sdcard.
So you Hide it Pro hidden files (top secret!!! ) and Download folder is not backed up in Nandroid.
If you have any other question, ask me. I know thoroughly about that app.
Press Thanks if helped.
hnkotnis said:
I have been using "Audio Manager" aka "Hide it Pro" for many months (maybe 2 years)
(DON'T THINK OF WEIRD HIDDEN THINGS !!! I use only encryption feature to encrypt my script files. :laugh::highfive
Hide it Pro stores its main locker in /sdcard/ProgramData/Android/.Language/.fr
and fake locker in /sdcard/ProgramData/Android/.Language/.xx (escape pin locker)
After new ROM they are not deleted if you did not format SD Card.
Reinstall "Hide it Pro" (any version) and set password like first time. But all old hidden files will be there.
(During new ROM install, Hide it Pro files are not harmed if SD Card is not formatted, just follow above method to get files back)
They are not deleted unless you format SD Card. (internal or external whatever you have)
Unfortunately Nandroid backup does not backup /sdcard.
So you Hide it Pro hidden files (top secret!!! ) and Download folder is not backed up in Nandroid.
If you have any other question, ask me. I know thoroughly about that app.
Press Thanks if helped.
Click to expand...
Click to collapse
Hi, thanks for your reply.
It is to my understanding that /sdcard/ is the *internal* SD card, isn't it? ProgramData and Download are both folders on /sdcard/, which are currently empty due to the factory reset. I did not format my external SD card - the files on that still remain, but do not include either of these folders.
I have previously reinstalled Hide It Pro, the files did not reappear.
I would like to restore the two mentioned (internal) folders from my Nandroid backup.
ChrisLoz said:
Hi, thanks for your reply.
I have already reinstalled Hide It Pro, the files did not reappear.
It is to my understanding that /sdcard/ is the *internal* SD card, isn't it? ProgramData and Download are both folders on /sdcard/, which are currently empty due to the factory reset. I did not format my external SD card - the files on that still remain, but do not include either of these folders.
I would like to restore these two internal SD card folders from my Nandroid backup.
Click to expand...
Click to collapse
Depending on device's CWM (this varies with device) backed up folders change.
Copy CWM Backup to your PC and open that folder. You will see some/all following files. ext4 and rfs different based on ROM.
boot.img
data.rfs.tar
system.rfs.tar
.android_secure.tar
cache.rfs.tar
If there is sdcard.vfat.tar you are lucky. Internal SD Card is backed up. (unfortunately this is not for 99% CWM)
Otherwise I am afraid data is lost.
In case of data loss, try there to apps (require root) which can recover deleted photos. (I don't know about internal card, but I have tested them on external card.)
https://play.google.com/store/apps/details?id=fahrbot.apps.undelete
https://play.google.com/store/apps/details?id=com.defianttech.diskdigger
Press Thanks if helped.
hnkotnis said:
Depending on device's CWM (this varies with device) backed up folders change.
Copy CWM Backup to your PC and open that folder. You will see some/all following files. ext4 and rfs different based on ROM.
boot.img
data.rfs.tar
system.rfs.tar
.android_secure.tar
cache.rfs.tar
If there is sdcard.vfat.tar you are lucky. Internal SD Card is backed up. (unfortunately this is not for 99% CWM)
Otherwise I am afraid data is lost.
In case of data loss, try there to apps (require root) which can recover deleted photos. (I don't know about internal card, but I have tested them on external card.)
https://play.google.com/store/apps/details?id=fahrbot.apps.undelete
https://play.google.com/store/apps/details?id=com.defianttech.diskdigger
Press Thanks if helped.
Click to expand...
Click to collapse
Ah I see. Thank you.
I have already moved the backup to my PC, I'll check to see if that file is there tomorrow but I don't recall it being unfortunately. I had presumed Nandroid backed up everything, so it's quite an annoyance if I have lost everything from /sdcard/, but it's nothing too important thankfully.
Thank you for the link to the data loss recovery apps, I will give those a try if needed.
ChrisLoz said:
Ah I see. Thank you.
I have already moved the backup to my PC, I'll check to see if that file is there tomorrow but I don't recall it being unfortunately. I had presumed Nandroid backed up everything, so it's quite an annoyance if I have lost everything from /sdcard/, but it's nothing too important thankfully.
Thank you for the link to the data loss recovery apps, I will give those a try if needed.
Click to expand...
Click to collapse
Use these data recovery apps as soon as possible, because if the storage space where previous data was is overwritten, then data recovery is not possible.
Press Thanks if helped.
hnkotnis said:
Use these data recovery apps as soon as possible, because if the storage space where previous data was is overwritten, then data recovery is not possible.
Press Thanks if helped.
Click to expand...
Click to collapse
Neither worked unfortunately.
I'll give this method a go: http://forum.xda-developers.com/showthread.php?t=2143188
hnkotnis said:
Use these data recovery apps as soon as possible, because if the storage space where previous data was is overwritten, then data recovery is not possible.
Press Thanks if helped.
Click to expand...
Click to collapse
I'm trying to follow this guide to recover the 'sdcard' folder.
[GUIDE] Internal Memory Data Recovery - Yes We Can!
It's aimed at Galaxy Nexus, so I'm trying to change it for S3.
I've installed all the software and apps: BusyBox, Cygwin, Netcat, ADB (Android SDK + Java JDK), VHD Tool, Recuva, etc.
The internal 'sdcard' folder doesn't appear to be a partition, so when it comes to the first command main step:
5. Open a Cygwin terminal and enter (This assumes your BusyBox installation is at [/system/bin/busybox]. It may be at [/system/xbin/busybox]):
Code:
adb forward tcp:5555 tcp:5555
adb shell
/system/bin/busybox nc -l -p 5555 -e /system/bin/busybox dd if=/dev/block/mmcblk0p12
Click to expand...
Click to collapse
...I don't know what to enter.
Any assistance would be appreciated!
Edit: Continued in this thread - http://forum.xda-developers.com/galaxy-s3/help/recover-files-sdcard-t2704117/
Sometimes files could be lost after you hide them with Hide It Pro. You may see this guide: Recover data in Hide It Pro
Good Luck.

Help with Nandroid Backupping

Hey,
I have a Samsung S6, and want to install my first ever ROM (gonna be Cyanogen Mod 12 or 13). It's recommended that I backup my device, but need help with using TWRP.
I clicked 'Backup' in recovery, and it comes up with options to backup: Boot, System, Data, Cache, EFS and another thing I can't remember. I assume I need to backup Boot and System, because I am assuming that this is the Marshmallow OS and Boot. I also want to backup Data, because I do not want to lose my apps, pictures and music. However, to backup all of them at once is too large of a file.
Instead, I decided to backup them all separately, then move them over to my PC and delete them from my phone. My question is, if I want to restore my phone, is it possible to restore each backup separately, of do I need to join them up into one file. If so, how do I do it?
Cheers in advance )
P.S. DO I NEED TO BACKUP THE EFS, CACHE AND OTHER THING I CANNOT REMEMBER???
You can backup to a flash drive using USB OTG cable as well. You will want to backup boot, system, and data. EFS is not needed, but I find it a good practice to back it up and save it to a safe spot like your computer. The nandroid will back up each partition separately into a folder marked with the date. You can restore each individual part as needed. Just keep everything in the folder as it was set up for ease of use.
Also, your /data backup will not include music and pictures. It will back up data/data and data/app. The pictures and music are stored in data/media, or what the phone and recovery see as /sdcard though it is an emulated point and not a physical "sd card". When you perform a factory reset in recovery, it does not wipe /data/media, thus leaving everything on /sdcard intact. Though I do recommend making a copy of that to a safe space as well. It's just not what a nandroid backs up.
es0tericcha0s said:
You can backup to a flash drive using USB OTG cable as well. You will want to backup boot, system, and data. EFS is not needed, but I find it a good practice to back it up and save it to a safe spot like your computer. The nandroid will back up each partition separately into a folder marked with the date. You can restore each individual part as needed. Just keep everything in the folder as it was set up for ease of use.
Also, your /data backup will not include music and pictures. It will back up data/data and data/app. The pictures and music are stored in data/media, or what the phone and recovery see as /sdcard though it is an emulated point and not a physical "sd card". When you perform a factory reset in recovery, it does not wipe /data/media, thus leaving everything on /sdcard intact. Though I do recommend making a copy of that to a safe space as well. It's just not what a nandroid backs up.
Click to expand...
Click to collapse
Thank you for helping me, Ill back it up now )
No problem. Let me know if you have other questions. I've literally flashed roms 1000+ times on over 100 different kinds of phones.

Categories

Resources