nandroid back up problem - Hero CDMA General

i have three nandroid backups and have never had a problem what so ever with them....seems like eversince i renamed them to keep track of them i tried to use them and they give me and error saying run via adb...does anyone one have any insight?

im an iddiot mods delete this

aauussttiinn88 said:
i have three nandroid backups and have never had a problem what so ever with them....seems like eversince i renamed them to keep track of them i tried to use them and they give me and error saying run via adb...does anyone one have any insight?
Click to expand...
Click to collapse
Actually the last time I tried to restore I had the same issue. Not sure what the remedy is, but I had to just re-flash the Modaco ROM I was running prior to trying out the 2.1 Rom. Wish I knew what was going on.

just figured it out...let me ask you this did you rename your nandroid backups?

aauussttiinn88 said:
just figured it out...let me ask you this did you rename your nandroid backups?
Click to expand...
Click to collapse
No, I just have a ton of them in my nandroid folder but never changed any names.

It names the backup based on the source device serial number and the time the backup was made. This, I think, is how it knows which one is the latest. I had this problem once before and the trick was to create the following folder structure in the root directory of your sd card:
nandroid\[insert device serial number]\BCDMRS-20100205-2102\
Note the BCDMRS-20100205-2102 is just a folder name I took from my nandroid folder. If you created the nandroid folder as I describe and have just one backup you can use the same folder name I did and put your backup in it.
An alternative method would be to do a nandroid backup to recreate the paths on your sdcard and overwrite the contents of your equivalent of BCDMRS-20100205-2102 with your older backup.
I didn't get much sleep so sorry if this doesn't make sense.

aabbccddeeffgghh said:
It names the backup based on the source device serial number and the time the backup was made. This, I think, is how it knows which one is the latest. I had this problem once before and the trick was to create the following folder structure in the root directory of your sd card:
nandroid\[insert device serial number]\BCDMRS-20100205-2102\
Note the BCDMRS-20100205-2102 is just a folder name i took from my nandroid folder. If you created the nandroid folder as i describe and have just one backup you can use the same folder name I did and put your backup in it.
Click to expand...
Click to collapse
Cool i will try that and see if it works. Actually im not all that pressed to backup any of my nandroids, so if this doesn't work I am going to delete all of mine and make just one backup to what im running now and hopefully that one will work if I ever need to restore. But thanks for the info.

You posted as I was editing my post. The alternate method might work better.

yea i just renamed my nandroid backups to the date in which i created them ie. 20100303 and that worked...weird i think but it works like a charm

Related

Can you make more than one nandroid backup?

Sorry if this is a newb question...but it comes from a newb.
I have successfully rooted, and flashed a recovery image onto my Sprint Hero....and I have created a nandroid backup of the rooted phone. Just yesterday I went in and deleted all the sprint bloatware. Here's my question:
Can I create another nandroid backup of my phone as it is right now? or will it delete my old nandroid backup? I would like to have the option to reflash to both the first state, and now the newer state. I hope this question is not confusing.
Can anyone help? Can you have multiple nandroid backup images? or do they override the previous one?
Thanks in advance! God bless!
-alex
You can have as many nandroid backups as your storage card has room for. That being said, if you do a nandroid restore, it will restore only the most recent one so if you want to restore to an older one, just move all the newer one to a different folder or something.
I add a "_sprintgolden" at the end or what ever and leave all the numbers in place that way I know whats what and can delete the extra and it will restore that backup
Yep, you can have as many as you want (store'em on your pc),just copy them out of your storage card otherwise it'll get overwritten by the next backup.
right on Iz
thanks guys! you guys are awesome! This stuff is fun! Can't wait for some new, fast Sprint Hero roms to start flashing! I haven't flashed anything yet.
Thanks again for the help! God bless!
-alex
izanagi said:
Yep, you can have as many as you want (store'em on your pc),just copy them out of your storage card otherwise it'll get overwritten by the next backup.
Click to expand...
Click to collapse
No...it won't delete any of the backups. You can have as many backups as the card will hold (as an earlier post stated). The Nandroid Restore will only restore the most recent one.
If you want to keep all on your SD card, but restore from another backup, you'll have to drop to a shell on the phone to run Nandroid. That's accomplished by using ADB from the Google Android SDK. If you type nandroid -? on the command prompt, it will give you a list of parameters you can use to restore or backup Android.

Nandroid backup

Is it possible to rename a folder created by a nandroid backup and still have it to work?
I have 3 or 4 roms backed up and it's geting difficult to remember which is which
poddo said:
Is it possible to rename a folder created by a nandroid backup and still have it to work?
I have 3 or 4 roms backed up and it's geting difficult to remember which is which
Click to expand...
Click to collapse
Yes it is possible.
I do this and it works:
\SDCard\nandroid\HT9APNT01015\ *custom named folders with img files inside*
Did you get that?
that's what I tried to do, but it seems nandroid didn't like its backups anymore after renaming the folders
when i 'Nandroid' restore the phone, do i have to reroot my phone? Or is root access still available? (Again, i'm new to the custom ROM world and getting familiair with the basics)
doing a nandroid backup is like creating an image of the phone software.
once you restore, your phone revert back being exactly the same as when you did the backup (rom wise, which includes root)
poddo said:
doing a nandroid backup is like creating an image of the phone software.
once you restore, your phone revert back being exactly the same as when you did the backup (rom wise, which includes root)
Click to expand...
Click to collapse
Thanks, i back-upped the phone after root was enabled, so it won't harm my root access.
poddo said:
that's what I tried to do, but it seems nandroid didn't like its backups anymore after renaming the folders
Click to expand...
Click to collapse
Hmmm, that is weird. I wonder if it has to do with the type or version of recovery image you have. At the moment I have RA-hero-v1.6.2.
Just to be clear, if you don't rename the folders, it restores properly?
it does, just one time it happened the backup got corrupted and wouldn't let the phone boot after restore (I am using same recovery img as yours)
I'm going to try renaming the folders again later
I wish you luck! Could you please post back with the result? I am very curious.
In my ongoing travels on the internets I will keep an eye out for a possible solution.
looks like this time it worked.
for some reason nandroid it seems nandroid has an erratic behaviour from time to time.
first time I made a copy of my first (working) backup and I renamed it, nandroid won't let me load it (thus why I created this thread); yesterday, after working fine it created a corrupted backup and I had to reinstall cronos from scratch.
only difference between my first try renaming backup directories is that the first time I made the copy via windows, while the second time I did it through Astro.
I'm going to watch into this.
EDIT: k, sorted the renaming issue. nandroid simply won't handle folders with spaces in their name
still, a couple times nandroid produced corrupted backups and this is forcing me to backup 3 times in a row just to be sure. :/
poddo said:
looks like this time it worked.
for some reason nandroid it seems nandroid has an erratic behaviour from time to time.
first time I made a copy of my first (working) backup and I renamed it, nandroid won't let me load it (thus why I created this thread); yesterday, after working fine it created a corrupted backup and I had to reinstall cronos from scratch.
only difference between my first try renaming backup directories is that the first time I made the copy via windows, while the second time I did it through Astro.
I'm going to watch into this.
EDIT: k, sorted the renaming issue. nandroid simply won't handle folders with spaces in their name
still, a couple times nandroid produced corrupted backups and this is forcing me to backup 3 times in a row just to be sure. :/
Click to expand...
Click to collapse
Glad you've found the issue! That is really weird about Nandroid creating corrupted backups...
It is so strange that using Windows (or not) creates or solves problems. I've read of instances where creating a goldcard with Win7 failed but WinXP worked.
Guys,... You using AmonRa yeah?.... It might be worth mentioning all your finds to the man Amon Ra himself,... Post something in the AmonRa thread, maybe there is something he can sort for future updates.

Extract/Restore SMS/MMS, Contacts/Call Log, and Launcher Config. From Nandroid Backup

I was using Nexus S i9020T, CM7 nightly (a few weeks old) and for some reason I wake up this morning and couldn't get past the CM7 "blue circle" screen booting. I had about a month old backup but I didn't want to lose any recent data so I made a Nandroid backup.
Normally, to restore SMS or MMS from an old backup, one can just restore the nandroid backup, use a third party SMS backup program to backup the data to sdcard or gmail, restore or install new rom, then restore the SMS from the third party backup software.
However, in my case, I had a nandroid with data on it that I wanted to keep but that wouldn't boot.
So I did some searching and others have had this problem before but I figured I'd put it here for others that may have the same problem. I am not taking credit for this I just found various pieces of info around the web.
The solution is to use a utility called unyaffs. Unyaffs will need cygwin.dll. Yaffs is the file system that CWM recovery nandroid backups are stored in. Windows cannot read or mount this file system AFAIK.
Instead of compiling unyaffs for windows and installing all of cygwin, just use the attached pre-compiled unyaffs.exe and cygwin.dll.
Here's the process:
To restore SMS/MMS from a nandroid backup using MS Windows:
place unyaffs.exe + cygwin.dll + data.img in a folder
open command prompt in this directory (shift+right click -> open comand window here)
type: unyaffs data.img
the contents of the data.img will be extracted to this folder. wait for extraction to complete
browse to \data\com.android.providers.telephony\databases in the extracted folders
copy mmssms.db, mmssms.db-shm, mmssms.db-wal to sdcard
use root explorer to copy these three files to \data\data\com.android.providers.telephony\databases
To restore contacts/call log from a nandroid backup:
repeat above process for \data\com.android.providers.contacts\databases
To restore launcher configuration (only for stock Gingerbread launcher):
repeat above process for \data\com.android.launcher\databases
Note: Be aware that replacing the existing files with those extracted from the backup will remove the existing data so if you're not 100% sure what you're doing, change the names to mmssms_OLD.db or otherwise back them up before pasting the files from the backup.
Edit: Just thought I'd add, I also came across an app called AppExtractor but, despite the good reviews, the SMS/MMS restore didn't work for me.
if you have titanium backup, it makes it a lot easier to restore specific items from Nandroid Backup
AllGamer said:
if you have titanium backup, it makes it a lot easier to restore specific items from Nandroid Backup
Click to expand...
Click to collapse
Doesn't work for migrating from Gingerbread to Ice Cream Sandwich for some reason?
I am going to give this one a try.
To the OP your a dead set legend! thank you
PS: Where the bloody hell is the thanks button on this forum? I can't find it
I will give it a try. Thanks.
where do i find data.img?
I'm on an SGS I9000 and made an SMS/MMS backup using titanium backup when I was on Gingerbread.
Now I've installed the "Onecosmic's ICS Port Android 4.0.3 RC3.1" and restoring the backup file using titanium (only data) makes my message app FC.
Jarmezrocks were you successful when restoring your SMS/MMS on ICS?
Does anyone knows how to restore them? From titanium backup I only have an *.apk.gz and *.properties files.
Thanks for any help.
Cheers
Excellent.. saved me a lot.. thanks for the tool
Great post. I wonder if there is a file extrator in Android like unyaffs?
I found out that you can restore SMS just by using Root Explorer.
The location is the same, just that the files are these ones:
mmssms.db
nwk_info.db
telephony.db
I tried and it worked only using RootExplorer and I extracted the files from data.ext4.rar
Does this need to be done using ADB? I have set a nandroid backup from a GB ROM and flashed ICS on the phone; however when I extract the data.img using unyaffs and browse to the mentioned directory, there are no db files whatsoever.
Could the nandroid backup be corrupted for some reason?
I am looking at the data\com.android.providers.contacts folder and I only see a lib folder with nothing on it.
Hidden system files are set to show BTW
I did this yesterday using Titanium Backup for my SMS/MMS
You need to go into Preferences and check the *Migrate system data [Experimental] option
Then you go to More - Extract from nandroid backup
There it is listed as Dialer Storage
You can probably do the Phone log this way to but I did look for it.
I would recommend you do a current backup of [SMS/MMS/APN] Dialer Storage before you attempt this.
Does this restore the whole smsmms database like with the sms.db file on the iPhone? I hate it when MyBackupPro has to restore my texts and the dates are all messed up and i've lost all my MMS'. And it restores them one by one, instead of just putting it in there all at once. Took me like an hour to restore everything.
I have an app for you.
I'd much rather save myself from all this tedious long-winded work and just use apk extractor to restore everything.
HAKA said:
I have an app for you.
Click to expand...
Click to collapse
Thanks! Wish i've learned about this sooner. Would have saved me a lot of time.
This method doesn't work for me :/
I followed it exactly step by step but when I'm done and go to the Messages app, it's empty.
The same happens if I try it with appextractor or titanium backup.
I made the nandroid backup on CM7, and want to restore the messages to CM9+AOKP on ZTE Blade.
Thanks
THANK YOU !!!!
That was so helpful. I was migrating from GB to Nyx ICS RC5.0 yesterday and the application I used (super backup) failed to restore the Contacts.
Another app I used did that but missed allot of details (and also was damn slow).
I used your technique and it did the trick!!!
All data is there the same as I left it on CM7.2
You're the king
Thanks
[EDIT] just a correction Super Backup was able to restore the contacts but with missing details
It failed to restore the SMS
The other APP (forgot the name) restored the SMS (after ages) but contact associated with the SMS were completely messed up.
perfect
RichAP said:
I did this yesterday using Titanium Backup for my SMS/MMS
You need to go into Preferences and check the *Migrate system data [Experimental] option
Then you go to More - Extract from nandroid backup
There it is listed as Dialer Storage
You can probably do the Phone log this way to but I did look for it.
I would recommend you do a current backup of [SMS/MMS/APN] Dialer Storage before you attempt this.
Click to expand...
Click to collapse
This worked perfectly for me, got all my sms messages back from my nandroid backup.
Thanks!
thanks!
RichAP said:
I did this yesterday using Titanium Backup for my SMS/MMS
You need to go into Preferences and check the *Migrate system data [Experimental] option
Then you go to More - Extract from nandroid backup
There it is listed as Dialer Storage
You can probably do the Phone log this way to but I did look for it.
I would recommend you do a current backup of [SMS/MMS/APN] Dialer Storage before you attempt this.
Click to expand...
Click to collapse
I did this today when I had to reformat my phone because of a bootloop. I'm using an HTC Desire on MildWild. Worked perfectly for me and was able to restore my messages. Loads of thanks to you!
Thank you! This worked perfectly for me!

<SOLVED> TWRP not restoring backup!

Hi, i would greatly appreciate some help.
I wiped my data/cache/dalvik cache/system before attempting to restore a backup made with TWRP v2.2.2.0.
When i hit restore, it reads: "restore completed in 1 second", "Restore Complete. Successful"
However, nothing has been restored, any suggestions please?
Nbsss said:
Hi, i would greatly appreciate some help.
I wiped my data/cache/dalvik cache/system before attempting to restore a backup made with TWRP v2.2.2.0.
When i hit restore, it reads: "restore completed in 1 second", "Restore Complete. Successful"
However, nothing has been restored, any suggestions please?
Click to expand...
Click to collapse
Should i try flashing a different recovery? Or can i flash the nandroid backup through fastboot?
Nbsss said:
Should i try flashing a different recovery? Or can i flash the nandroid backup through fastboot?
Click to expand...
Click to collapse
Update: Was able to restore /data using titanium backup to extract from the twrp recovery file. Any ideas why twrp isn't working? Should i just get CWM?
Twrp works fine for me. I prefer it to CWM.
Not sure what your problem was, though.
Working fine for me I have restored my back ups with no problem. Same twrp 2.2.2.0 not sure what your issue was.
Thanks for the replies.
Just remembered, I renamed the folder name after creating the backup, would that have any effect on restoring?
Also the backup file was about 1.24gb, could it be the size was too large? Though it didn't even restore components individually...
I don't feel I can wipe confidently anymore without knowing the problem exactly, any thoughts?
I just tried it. Renaming the folder DOES have an effect on restoring.
My back up is also 1.2 GB.
I always name mine before I back up. It should work fine. Unless it was from when you renamed it somehow?
I name all my back ups but I do it before I actually back up the rom. Maybe that is the issue. Name it before the back up even starts and then you should be fine.
janedoesmith said:
I just tried it. Renaming the folder DOES have an effect on restoring.
Click to expand...
Click to collapse
Thanks for confirming! I really didn't want to get rid of twrp, much appreciated! I've learnt my lesson
Nbsss said:
Thanks for confirming! I really didn't want to get rid of twrp, much appreciated! I've learnt my lesson
Click to expand...
Click to collapse
I did this. Can I rename the folders back to thier originals, or do I need to use some other recovery to reflash my backups? I would need to know if there was way to determine the origial file names, of course. I have a data only backup renamed BEFORE savig, it works fine. Only the ones I renamed using my PC dont work. I did not make the connection till reading this post. Team Win may need to investigate this issue.
nethead72 said:
I did this. Can I rename the folders back to thier originals, or do I need to use some other recovery to reflash my backups? I would need to know if there was way to determine the origial file names, of course. I have a data only backup renamed BEFORE savig, it works fine. Only the ones I renamed using my PC dont work. I did not make the connection till reading this post. Team Win may need to investigate this issue.
Click to expand...
Click to collapse
You can rename it and it works. The folder names are as follows:
/sdcard/TWRP/BACKUPS/"your device serial number"/"date and time"/
For instance:
/sdcard/TWRP/BACKUPS/036f586ce7bee89/2012--09-14--17-45-24/
janedoesmith said:
You rename it and it works. The folder names are as follows:
/sdcard/TWRP/BACKUPS/"your device serial number"/"date and time"/
For instance:
/sdcard/TWRP/BACKUPS/036f586ce7bee89/2012--09-14--17-45-24/
Click to expand...
Click to collapse
Try what janedoesmith suggested, alternatively if u simply want to restore the data, this can be done through titanium backup.
You can confirm the "date and time" by checking the properties of the backup folder eg through root explorer
janedoesmith said:
You can rename it and it works. The folder names are as follows:
/sdcard/TWRP/BACKUPS/"your device serial number"/"date and time"/
For instance:
/sdcard/TWRP/BACKUPS/036f586ce7bee89/2012--09-14--17-45-24/
Click to expand...
Click to collapse
Used this format (confirmed through TWRP) but I believe this may be the ticket. Wont try it till this evening though. Time for work.
/sdcard/TWRP/BACKUPS/036f586ce7bee89/2012-09-14--17-45-24/
nethead72 said:
janedoesmith said:
You can rename it and it works. The folder names are as follows:
/sdcard/TWRP/BACKUPS/"your device serial number"/"date and time"/
For instance:
/sdcard/TWRP/BACKUPS/036f586ce7bee89/2012--09-14--17-45-24/
Click to expand...
Click to collapse
Used this format (confirmed through TWRP) but I believe this may be the ticket. Wont try it till this evening though. Time for work.
/sdcard/TWRP/BACKUPS/036f586ce7bee89/2012-09-14--17-45-24/
Click to expand...
Click to collapse
FYI: I just made up the serial number as an example. You have to name that folder with your real device serial number. Also, you can name the date and time folder with anything you want.
I know, I made sure my folders were named correctly. Fyi, any date/time will work, just need the right format. Procedure worked wonderfully, and to avoid this issue in the future, rename the file BEFORE you backup using twrp interface. I have not tested using twrp to rename AFTER backup, doesn't seem to be a need.
using latest ics rom from flapjaxxx
Sent from my SAMSUNG-SGH-I717 using xda app-developers app

[Q] Could I install a new ROM, then return to my old backed up ROM?

I have a rooted Nexus 7 running the ROM aokp_grouper_jb_build-5. If I backed up this ROM in Clockworkmod recovery, then installed a new ROM, would I be able to restore back to my AOKP ROM if I didn't like the new ROM I installed?
Yep
It's not a problem. You can back up your new ROM too. Be sure to put something in the name of your backups to let you know which ROM it is. I usually leave the date & then put the ROM name in, such as 2012-10-28-AOKP.
No problem at all
Sent From My Nexus 7- Corrupted by Trinity
strongergravity said:
It's not a problem. You can back up your new ROM too. Be sure to put something in the name of your backups to let you know which ROM it is. I usually leave the date & then put the ROM name in, such as 2012-10-28-AOKP.
Click to expand...
Click to collapse
When I back up my ROM it doesn't let me choose a name for the backup. How can I change the name of the backup?
I use TWRP and you have to set the name of the backup before you start the backup process
215alexdx said:
When I back up my ROM it doesn't let me choose a name for the backup. How can I change the name of the backup?
Click to expand...
Click to collapse
Just use your file explorer to find the file & rename it. If you are using Clockwork, there will be a folder on your sdcard called clockwork, and in that is a folder called backups. your backup file is in there, named something like 2012-10-28.12.10.3242, which is the date & time of the backup.

Categories

Resources