[Q] Problems restoring data (corrupt Nandroid backup?) - Vibrant Q&A, Help & Troubleshooting

I wanna start by saying that I have been searching and I can't find a similar post...forgive me if I was simply unsuccessful :/
So here's what happened.
Me - "Hey! I've got a rooted phone, but no custom ROM? I think I'll download one!"
I performed a Nandroid backup.
Flashed Macnut 14.
"Awesome, it works. Now I'm gonna restore my data."
I tried doing an advanced Nandroid restore, but it hung at "dalvik-cache".
I then tried doing a full Nandroid retore, but it still hung at "dalvik-cahe".
I then flashed Stock JK6 and repeated steps 5 and 6 with the same results.
I then downloaded and compiled unyaffs in order to get files out of the Nandroid .img files.
I tried "adb install" for apps and "adb push" for both data and apps. I've been getting error messages for both approaches (not syntax errors, but things like "permission denied," "not enough space," etc.), both while the phone is booted and when it's in recovery.
I've also tried moving the files to my SD card and then using "adb shell" to move them to their appropriate folders, but that didn't work either.
Besides these errors, I also had a very hard time figuring out where to put certain things.
So that's what happened...you guys are my final hope. I'm trying to figure out a foolproof way to restore (in order of priority):
Application data (settings, high scores in games, etc.).
Applications themselves (.apk files, preferably not overwriting newer versions of things like GMail, Youtube, etc. included in Stock JK6).
Text messages.
Phone settings.
I've learned my lesson...next time, I should use Titanium Backup.
Thanks,
Gerard

Personally I would:
1. ODIN to JK6
2. Root and use the modified 3e recovery
3. Install ROM Manager from the market and flash CWM Recovery
4. Then attempt to Nandroid restore
If you're not comfortable with the above Step 2 you can:
1. ODIN to JFD and root
2. Install ROM Manager from the market and flash CWM Recovery
3. CWM Flash JK6
4. Attempt to Nandroid restore

You went from eclair to froyo and when you restored your backup, CWR does not restore the kernel.
Try flashing the stock 2.1 kernel and then restoring your backup.
And yes, titanium backup & SMS Backup+ are your friends.
hmm... re-read... it's odd that a restore started and didnt finish. Most people get hung at the vibrant screen when they do not restore the kernel.
Sounds like you nandroid is corrupt, and if that is the case I'm afraid that I do not know the answer you seek.

Yeah, I don't think that a Nandroid backup is gonna do the job...I just tried again after ODIN.
Any other ideas?
EDIT: I was finally able to push all my applications back...However, I'm having trouble pushing the contents of "data/data/" and "datadata/". I keep getting errors like:
failed to copy 'data/com.android.browser/app_appcache/ApplicationCache.db' to 'datadata/com.android.browser/app_appcache/ApplicationCache.db': No such file or directory
Click to expand...
Click to collapse
How can I evade this error? :/

You have to flash a kernel as well cause nandroid won't replace that
Sent from my GT-I9000 using XDA App

Are you trying to adb from linux or windows? If you are on linux try this:
1) sudo adb kill-server
2) sudo adb devices
3) now push your apps
Also I found out the hard way, do not restore apps or system data from nandroid backup, I always had a corrupted system with a lot of force closes. Always use Titanium Backup and SMS Backup.
Hope this helps

brnbock said:
Are you trying to adb from linux or windows? If you are on linux try this:
1) sudo adb kill-server
2) sudo adb devices
3) now push your apps
Also I found out the hard way, do not restore apps or system data from nandroid backup, I always had a corrupted system with a lot of force closes. Always use Titanium Backup and SMS Backup.
Hope this helps
Click to expand...
Click to collapse
I'm actually on a Mac. I tried your method but I still got the same results...is Mac close enough to Linux (since it's Unix), or do you think I should attempt it on Linux as well?
DEFINITIONOFREAL said:
You have to flash a kernel as well cause nandroid won't replace that
Sent from my GT-I9000 using XDA App
Click to expand...
Click to collapse
I don't mean to sound like a douche...but isn't that what s15274n was saying?

ya try it on linux, Mac is BSD based but I'm not sure how permissions are set. BSD is close to linux but there are some major diff and some commands are diff.

So far, for me Nandroid on the Vibrant has been completely useless. I don't even bother any more.
I use Titanium to back up my apps and my SMS messages, and it only takes a couple minutes to re-do the settings once I install a new ROM.
This is way different than my experience with the G1, where I could easily restore a Nandroid backup if I didn't like a new ROM install. On the Vibrant it's easier to just Odin back to a stock ROM and redo all my settings using TB.

brnbock said:
ya try it on linux, Mac is BSD based but I'm not sure how permissions are set. BSD is close to linux but there are some major diff and some commands are diff.
Click to expand...
Click to collapse
Yeah...tried this too after downloading and setting up everything on my Linux box (java, Android SDK, etc.). Same error as I got on my Mac
I think I'll take like one more suggestion from the community before I finally give up and start my phone from scratch...It's been like 3 days since I lost all my data, ugh.

Related

[Q] Nandroid backup/restore on rooted Streak...

I'm curious about this. Maybe someone can enlighten me.
Lets say that I'm on stock 2.2, rooted. I do a nandroid backup. Then I allow the upgrade for 2.2.2. Of course I lose root.
Will a nandroid restore, restore root, or will I have to root again?
A full nandroid restore will restore everything - the system and data - and you will be right back where you were, on 2.2 and rooted.
maltloaf said:
A full nandroid restore will restore everything - the system and data - and you will be right back where you were, on 2.2 and rooted.
Click to expand...
Click to collapse
Ahh, okay.
So to confirm that I understand you correctly...
...the 2.2.2 update won't hold after the nandroid restore? I'll be back to 2.2, as it was before the (2.2.2) update?
If you just wanna backup and restore your apps, use Titanium Backup (it's free on the Market).
Nandroid backs up your entire phone. When you restore a nandroid backup your phone will be exactly like it was when you made the backup. Restoring a nandroid backup is used to recover from a crash or to revert to a previous ROM.
After a ROM change I will set up my accounts, root if needed and do any other basic setup stuff and then, before installing any apps, do a nandroid backup. I can then go back to a "fresh install" if I want to. I also do a nandroid each weekly to capture the state of my phone.
Backing up apps and restoring them across different ROMs may or may not work for you. When I have tried this with Titanium Backup I had many force closes and ended up reinstalling everything from the market. Others have had success. I have read the MyBackup pro does better, but most suggest that you just backup and restore data not the app itself.
I have not tried backing up my apps to Google, which you can do in later versions of Android. Go to Privacy in the setting menu and then to Backup and restore. There are boxes for data backup and automatic restore you can check. maybe someone who has used this can comment on how well it works.
If your nandroid backups hang up at "backing up firstboot" get the latest version of StreakMod Recovery.
marvin02 said:
Backing up apps and restoring them across different ROMs may or may not work for you. When I have tried this with Titanium Backup I had many force closes and ended up reinstalling everything from the market. Others have had success. I have read the MyBackup pro does better, but most suggest that you just backup and restore data not the app itself.
Click to expand...
Click to collapse
After installing a fresh ROM and rooting my device, the first thing I do is install Busybox. Then, with Titanium Backup I do Restore Apps Only, then reboot my device. I never get any FC's with this restore process.
Thanks!
Thank you everyone. I appreciate the info.
I've used Titanium BU, and have busybox installed too.
It was just a matter of if after an update (OTA), and restore with Nandroid, would root still be in place.
I totally understand what you guys are saying now.
I've also been using MyBackup to see how it compares to Titanium. So far so good.
~X
I prefer mybackup root to titanium. It's far more user friendly and more automated (in the free version). As for nandroids, I always take a backup before doing any system changes (hacks or rom updates) so I can roll back to a known good system if needs be.
BTW - it is a good idea to copy your ROM backups to another device, just in case your SD card dies. I copy mine to one of my desktop computers and to a USB drive. I usually back up my entire SD card, except my music folders, every couple of weeks.
Where does Nandroid put the backups so I can rename them and save off phone?
mine (from Streakmod recovery) are in /sdcard/rom_backup
StreakMod recovery puts the backups on the SD Card in a folder named rom_backup.
Each backup is in a sub-folder of it's own and uses a date-time format for the folder name. I rename the folders with a meaningful name by just pre-pending to the name. So my last backup is named BB351-2011-06-18-02.41.04. The following files are created:
.android_secure.img
boot.img
cache.img
data.img
firstboot.img
recovery.img
system.img
nandroid.md5
the md5 file is a text file that contains the md5 sums for the other files. This file is used to verify the other files when they are restored.

Stuck on splash screen. Have a full backup

Hi
Tried to find a similar thread but failed so I ask here.
I have a 10.1 Wifii & 3G
Did a full backup with Rom manager before doing anything.
Upgraded to overcome ROM 2.
Realized that there was no Swedish language in the ROM, so I decided to go back to the backed up ROM instead.
When I choose Restore in the Rom manager menu, my restore is there and it looks like it is working. It reboots, it checks the files, applies all img and other files, BUT. When it's done it just sits there on the Overcome CwM Recover v5.1.2.6. It feels like it never gets done? I also tried to do a restore from inside the nandroid menu but same thing. I also tried to wipe several time, but same thing. If I try to reboot the 10.1, it gets stuck on the splash screen.
SO, my question.
I really want to keep my data on the sdcard...
Scared of doing the restock on teamovercome homepage because it says
-"IT WILL ALSO WIPE OUT YOUR INTERNAL STORAGE!"
Is there any tips anyone can give me. Is this because my old ROM had different(older) boot files or something?
Please help
Lasse
Try installing CWM 4.0.0.4 using Odin and restore the backup and see if it works.
A small advice: Don't use ROM Manager for creating backups and restoring. Always do from the CWM directly. ROM Manager usually messes up the things
ansonantonym said:
Try installing CWM 4.0.0.4 using Odin and restore the backup and see if it works.
A small advice: Don't use ROM Manager for creating backups and restoring. Always do from the CWM directly. ROM Manager usually messes up the things
Click to expand...
Click to collapse
I already had that version, but i tried to downgrade but same issue.
Can one extract data from the backup, example favorities and manually add them ? If so wich img file is that and how do i open them?
Lasse
lar282 said:
I already had that version, but i tried to downgrade but same issue.
Can one extract data from the backup, example favorities and manually add them ? If so wich img file is that and how do i open them?
Lasse
Click to expand...
Click to collapse
You can use the paid version of Titanium Backup.
It can restore individual apps+data from CWM backups

[Q] Recover Data From a Boot Loop Backup?

Hi guys,
Firstly I'll say that the boot loop isn't directly the issue. All I had to do was reset the user data and it fired straight up, but I don't want to lose my data so I'll explain what has happened and hopefully you can help me.
The boot loop was actually triggered by simply selecting a theme in MIUI, and because of this I had not backed up in CWM. I didn't think something I'd done so many times before would actually do this, and it caught me off guard.
After trying a few other things like clearing cache etc., it became clear that a user data reset was my only option. However, I decided to do a backup in CWM before performing this, on the possibility that I may be able to retrieve this data somehow afterwards.
So what I have now is a working phone and broken backup that when restored results in a boot loop. What I would like to know is if there is anything I can do with this backup to restore my settings, texts, app data etc. or if it's simply taking up space.
I have ADB installed and working, and out of interest I used shell to find out what was running whilst the system was caught in the boot loop. I forget the name now, but I recall there was a process that was using most of CPU. Killing it did nothing unfortunately and it fired straight up again. I must warn you that this is pretty much the extent of my knowledge with shell aside from navigating the file system.
With Titanium Backup Pro (paid version) you can restore your apps using an option in that to extract from CWM backup...
If you are back to the same version of the MIUI rom you can try restoring system apps too one by one monitoring the issue....
Wow, thanks for that; very useful to know! I do actually have the paid version of Titanium Backup so I'll give it a go.
Flash the rom same rom that the nandroid has and advanced restore nandroids data
Sent from my sgs2 running cm9
Makrilli said:
Flash the rom same rom that the nandroid has and advanced restore nandroids data
Sent from my sgs2 running cm9
Click to expand...
Click to collapse
I like the sound of that, unfortunately when I try "Advanced Restore" it tells me no files are found.
cds80 said:
I like the sound of that, unfortunately when I try "Advanced Restore" it tells me no files are found.
Click to expand...
Click to collapse
that means your CWM backup was unsuccessfull,
did you watch the process, it reach the end till creating MD5 checksum? and completed successfully?
ZACQ8 said:
that means your CWM backup was unsuccessfull,
did you watch the process, it reach the end till creating MD5 checksum? and completed successfully?
Click to expand...
Click to collapse
I did, yes. I also have many other backups in there that restore correctly but do not show up under "Advanced Restore" for some reason.
then try Titanium backup, you may sometimes need to copy the backup to externel SD clockworkmode folder to detect from TB...
goodluck

Can't restore NANDROID backup on Nexus 7

Hi, all.
I've been reading and searching, but haven't found any info related to my problem.
Prior to upgrading to 4.2.1, I made a NANDROID backup of my Nexus 7 (4.1.2) using mskip's toolkit. The restoration method copies the backup folder to the device (/sdcard/clockworkmod/backup/), then boots it into custom recovery. At first I was using TWRP 2, but I think I need to be using CWM, so I flashed CWM Touch. I actually went through the motions again of copying the backup over to the Nexus 7, but CWM Touch doesn't see the backup folder. It returns two messages when attempting to Restore:
1. Couldn't open directory
2. No files found
Same with Advanced Restore.
The folder containing the NANDROID backup and all parent folders are readable/writable/NOT Hidden, according to ES File Explorer, but I wonder about ownership.
I'm rooted with SuperSU 0.99.
Anyone have any suggestions about how to make CWM Touch, TWRP 2 or some manual method recognize and restore a NANDROID backup?
I know I could just flash stock 4.1.2 and start from scratch (I have apps + data backed up), and if it comes to it, I'll do that, but while I have some time, I thought I'd make this a learning experience.
Thanks.
ThurstonX said:
...
Click to expand...
Click to collapse
Same problem here, any solutions?
xXSturmiXx said:
Same problem here, any solutions?
Click to expand...
Click to collapse
I posted this a few minutes ago. It may be TL;DR, but it's got all the gory details.
I'm not sure exactly what's going on, but in essence, you can use adb to push the NANDROID backup folder to /data/media/clockworkmod/backup/, then boot into recovery and CWM will see it.
The weird thing is, after I restored the 4.1.2 factory ROM, rooted, flashed CWM Touch, and then ran a backup from within CWM to create /data/media/clockworkmod/backup/ ... /sdcard/clockworkmod/backup/ was also created. I guess it's a symlink...? Haven't explored that yet, but I seriously doubt the backup data is being duplicated.
Anyway, after pushing my original backup folder to /data/media/clockworkmod/backup/, it's also listed under /sdcard/clockworkmod/backup/ That's why I say symlink.
I was able to restore while still running 4.2.1, but /sdcard/0 still had all apps and data there, which is why I decided to just go back to stock 4.1.2 before restoring my 4.1.2 NANDROID backup. Maybe I did something wrong, but I don't think so.
So yeah, the new CWM Touch Recovery is backward compatible. My 4.1.2 backup did NOT use CWM, so no "blobs" and all that. Good news there.
I suppose if you're restoring a 4.2.x backup over a custom ROM based on 4.2.x, but CWM can't see the backup folder under /sdcard/clockworkmod/backup/ just push it to /data/media/clockworkmod/backup/ and you should be good to go.
Anyone know if a 4.1.2 NANDROID backup can/should be restored over a 4.2..x install? Is the /sdcard/0 problem really a problem. NANDROID doesn't back up /sdcard, correct? I'm guessing it does not.
Boot into recovery w/your tablet plugged into your computer
Code:
adb devices
adb remount
abd pull ./where/your/backup/is/located
adb push ./yourbackup /where/it/needs/tobe
or if you have a jacked rom and cant do anything, you can do what I did
Code:
adb devices
adb remount
adb push ./newrom /sdcard
adb reboot recovery
then wipe and flash your new rom

How to recover data from "adb backup --twrp" archive? Been through hell and back

How to recover data from "adb backup --twrp" archive? Been through hell and back
I have two backups I made using "adb backup --twrp" while my OnePlus one phone was in TWRP recovery 3.2.1-0 running LineageOS with a recent build (don't know exactly which one, but it was from Feb/March 2018). Each of the backups are about 6.0GB so they appear to be complete backups. I am trying to recover one app and its data (Signal/Textsecure) but the rest would be nice too. The backup files have .ab extensions. I am fairly android savvy and have been working on this for days, your help is VERY MUCH APPRECIATED! I have access to Windows and Linux.
I have tried the following:
-"adb restore filename.ab" while in TWRP recovery. It appears to restore (progress bar goes, it reports success, etc), but no apps are restored. I have tried this both with totally wiped partitions/system/data and with a fresh install of LineageOS. As far as I can tell, nothing happens. When doing a restore after a full wipe and trying to restart, TWRP warns that no OS is installed.
-Restoring using the restore menu in TWRP. Immediately upon clicking on the backup, the phone restarts and TWRP opens again. Not sure what's going on there.
-Opening the backups in Titanium Backup, Nandroid manager, and a few other apps. None of them worked. Titanium backup crashes instantly in recover from ADB, doesn't recognize the backups in nandroid recovery mode.
-Opening the .ab files in an archive manager, all of which report it isn't a valid tar archive. One time I was able to get a list of directories, and things looked pretty right, so I know at least some of the data should be there. Running variants of this command with different skip values, none of which produces a valid tar file dd if=file.ab bs=512 skip=1 of=test.tar
Questions:
- Is there a way to extract data from these backups in Linux or Windows outside of Android? From what I read, TWRP adds some stuff in the headers which makes them invalid tar files, and that doing "adb backup --twrp" is different from a regular TWRP backup.
- Why is TWRP crashing? Is there a log I can look at for this and how? Maybe i can find a way to diagnose it that way.
- Where does Signal store message data? I have a flat-file backup that may have this information depending on where it's stored.
- Can I somehow convert these backups to a different format that might be better-tolerated by TWRP or other apps?
- Any good utilities for reading a corrupted tar file? I think all this utility would need to do is skip through the junk at the start.

Categories

Resources