i have have been using cyan. 4.2.5 for several weeks and wanted to try the new 2.0 rom by eugene. so i completed a full backup by nandroid and before i falshed i used astro file manager to review my files just to be sure. then i used the new recovery file to wipe my data/davlik cache/etc...... i was stuck in boot loop with the new rom and when i tried to restore it gives me some sort of error..... nandroid-mobile.sh restore and then im lost. i need to recovery all my files someone please help me...................................
lilwill2806 said:
i have have been using cyan. 4.2.5 for several weeks and wanted to try the new 2.0 rom by eugene. so i completed a full backup by nandroid and before i falshed i used astro file manager to review my files just to be sure. then i used the new recovery file to wipe my data/davlik cache/etc...... i was stuck in boot loop with the new rom and when i tried to restore it gives me some sort of error..... nandroid-mobile.sh restore and then im lost. i need to recovery all my files someone please help me...................................
Click to expand...
Click to collapse
They may be deleted from the system partition. you need to get your nandroids from your SD card and flash them from fastboot
these are the ones you need to flash
boot.img
data.img
system.img
i think the commands are
fastboot flash system system.img
fastboot flash boot boot.img
fastboot flash userdata data.img
Related
I wouldn't think so, but I'm really clueless about what's going on...
I have Cyanogen 3.9.8
I want 4.0.2
When I use the CM Updater, I get the dreaded acore Force Close.
So I try the manual approach, putting the 4.0.2 zip file on my SD card's root, then I reboot into recovery, and I perform a Nandroid backup (I run Linux on my computer, and don't use ADB).
Then I do a wipe, before I install the 4.0.2 zip.
Finally, I do I Nandroid restore.
Rebooting takes a long time, which tells me something has been done in the ROM department.
But when I have it up and running, everything seems just as they were before the operation, and when I start CM Updater it says "Running version: CyanogenMod-3.9.8"
I tried again, this time I booted the phone before I did the Nandroid restore, was met with the "factory fresh" Google account login screen (so it looked wiped to me...), then did a reboot to recovery and a Nandroid restore, reboot, checked CM Updater: "Running version: CyanogenMod-3.9.8".
Maybe I need to tweak my ROM updating routines..?
I have 3 partion SD card, so apps2sd is running.
Any help is highly appreciated.
Thanks,
Christopher
I'm kinda confused here, it's Monday morning. Since your trying to upgrade why do you keep doing a nandroid restore? You only want to restore nandroid if you want to go back to that previous point when you made the restore point. If you are just upgrading, just upgrade without restoring nandroid.
do exactly what you did without doing the nandroid restore at the end
Nandroid Restore is pretty simple.
Say you have ROM1 installed and there is an experimental ROM2beta out. So you want to try it.
Do a nandroid backup and it saves it to your sdcard.
The files that are saved are:
recovery.img
data.img
system.img
cache.img
misc.img
boot.img
This is almost every part of your phone except the spl and radio.
When you do a ROM upgrade MOST of the time it only updates the system and boot (some ROMs like Hero wipe/update the system, data, cache and boot.) But if your going from Cyan1 to Cyan2 then the only things being changed are system.img and boot.img. Unless you wipe, everything else should remain the same.
With all that said... you flash from ROM1 to ROM2beta and then do a restore from the ROM1 backup. So what does that mean for your phone? Is it possible to have ROM2beta ROM with the ROM1 system.img and boot.img? No. Since system.img is restoring the key elements for the ROM1 over your newly flashed ROM2beta. Bottom line. You'd be right back to where you started.
Binary100100 said:
With all that said... you flash from ROM1 to ROM2beta and then do a restore from the ROM1 backup. So what does that mean for your phone? Is it possible to have ROM2beta ROM with the ROM1 system.img and boot.img? No. Since system.img is restoring the key elements for the ROM1 over your newly flashed ROM2beta. Bottom line. You'd be right back to where you started.
Click to expand...
Click to collapse
Which explains what I am experiencing.
Thanks, 36!
That means I have misunderstood what Nandroid does.
I thought it would just take a backup of "user changed" files, like application data, configurations, call logs, that sort of things - like MyBackup Pro, more or less.
Guess I will get back to using MyBackup Pro before I upgrade my ROM.
Thanks, this really clarified things - I'm sorry I had to post such a n00b question, but I haven't found any other Nandroid postings telling me in such details what Nandroid backs up (and restores) - but then again I probably haven't looked hard enough! ;-)
~Christopher
Seems I had the same misconception and it seems that Nandroid is not nearly as useful as I had been led to believe by all the posts harping on about it. What I want is a backup of all my user data which I can restore to the updated ROM. Luckily I suspected Nandroid wasn't going to do this and used MyBackup Pro too
MikLSP said:
Seems I had the same misconception and it seems that Nandroid is not nearly as useful as I had been led to believe by all the posts harping on about it. What I want is a backup of all my user data which I can restore to the updated ROM. Luckily I suspected Nandroid wasn't going to do this and used MyBackup Pro too
Click to expand...
Click to collapse
nandroid can do this you just have to do a backup flash youre rom then push youre data.img
I understand you push the data.img but.....
how...
please
Perform a nandroid backup
Locate the backup on your sdcard under the foler "Nandroid"
Navigate to the last folder (this should be your latest)
Copy all or at least the folder that you want to push back (in this case just data.img to a directory say c:\nandroidbackup)
Open the cmd prompt and make sure that you have your fastboot.exe file in your pc's system32 directory.
If your phone is already on type "adb shell reboot recovery" in the cmd prompt to get to the bootloader and ready for FASTBOOT and then type "exit" to quit the adb shell.
If not then power on your phone while holding the camera button to get to the bootloader and then press the back button on your handset to get to FASTBOOT mode.
On your cmd prompt type "cd" along with the location of the data.img file (example cd c:\nandroidbackup) to move the command prompt to the backup location.
On the cmd prompt type fastboot flash userdata data.img and hit enter.
You should see "sending" followed by "writing" once complete type fastboot reboot and hit enter.
That should do it.
Now mind you that pushing your data across different builds may not work. If you are trying to restore your data on Hero that was previously saved from Cupcake then you're wasting your time. And vice versa. Always store a backup or two on your pc for quick and easy access in case something doesn't work.
In the event that it does not work simply wipe and follow the above directions to restore.
fastboot flash system system.img
fastboot flash userdata data.img
fastboot flash boot boot.img
Thanks great thanks mate!!
On the cmd prompt type fastboot flash userdata data.img and hit enter.
Click to expand...
Click to collapse
This step fails for me during the "verifying signature" phase. I believe this is todo with my spl.
Is it possible to use adb to do this? or will the spl still prevent it?
hi, I'm have a problem of "Nand restore".
My device can make Nand backup by RA Recovery 1.6.2 but have error in Nand recovery.
please let me know how to do.
Need reflash RA Recovery Image
Need reflash RA Recovery Image 1.6.2 ?
Try reflash recovery but if that does not work then do it through ADB
Copy the files from nandroid back up to PC in adb directory
Run the commands to flash them, The commands have gone from my mind at this point but im sure its fastboot flash blah blah blah lol
lolittle said:
Try reflash recovery but if that does not work then do it through ADB
Copy the files from nandroid back up to PC in adb directory
Run the commands to flash them, The commands have gone from my mind at this point but im sure its fastboot flash blah blah blah lol
Click to expand...
Click to collapse
Exactly
Copy the nandroid folder as-is off your sd card to your computer. From the backup you wish to restore:
Code:
fastboot flash boot boot.img
fastboot flash data data.img
fastboot flash system system.img
First I would try reflashing the amon-ra's recovery image for sanity's sake...
For these steps to work, ensure that your Milestone currently contains an unprotected recovery image (eg. Brazilian 2.0.1 SPF or the vulnerable recovery SPF for 2.1 Milestones).
Also ensure that you have installed the Android SDK so that you can access your phone with ADB.
These instructions are mostly based on user poseiden's guide at alldroid.org, before the site went down and was cleaned up.
How to make a Nandroid backup
Download the ADBRecovery files from here.
Unzip the archive onto the base of your SD card, so that you have a /recovery folder and an update.zip (NOTE: if you had an earlier update.zip, it will be overwritten with the ADBRecovery update.zip, so back up or rename the original update.zip.)
Reboot your phone into recovery menu:
Turn off phone
Press Camera button, then press Power. Hold them both till you see recovery screen.
Press Volume Up and Camera button at the same time till you see the recovery menu.
Run the update.zip.
Connect via ADB and execute:
If you want everything backed up:
Code:
nandroid-mobile.sh --backup
If you don't want your installed apps + data backed up:
Code:
nandroid-mobile.sh --backup --nodata --nocache --nomisc
How to do a Nandroid restore
Ensure the Nandroid backup content is found under your phone's /sdcard/nandroid/console=ttyS2,115200n8 folder.
Ensure the /recovery folder and ADBRecovery update.zip is at the base of your SD card.
Reboot your phone into recovery menu:
Turn off phone
Press Camera button, then press Power. Hold them both till you see recovery screen.
Press Volume Up and Camera button at the same time till you see the recovery menu.
Run the update.zip.
Connect via ADB and execute:
Code:
nandroid-mobile.sh --restore
Type the name of the backup you want to restore.
Telus 2.0.1 unrooted backup
Here's a clean Telus Milestone 2.0.1 Nandroid backup. I found this one on the web, and then I removed the "su" and "Superuser.apk" files so that it's no longer rooted. Sorry, the original source is uncredited as I forgot where I got it from.
As far as I know, there is no shipped SPF of the 2.0.1 Telus firmware, so this is your only option to go back to stock.
http://www.multiupload.com/TA8V2QPJEO
I used this to restore back to stock Telus Milestone ROM so that I could return the device. The only thing different from the original purchased state was the recovery SPF, but that would be really hard to tell or to find out (just a version number difference).
There's a step missing from the backup process. You need to 'flash' the update.zip from the recovery menu before you can connect over adb.
slightly said:
There's a step missing from the backup process. You need to 'flash' the update.zip from the recovery menu before you can connect over adb.
Click to expand...
Click to collapse
Oops! Fixed now. Thanks!
no need for a computer to do this anymore custome recovery does all that from the phone now .
DAGr8 said:
no need for a computer to do this anymore custome recovery does all that from the phone now .
Click to expand...
Click to collapse
Wicked, thanks for letting us know. Do you have instructions or a link to one?
EDIT: You mean this?
http://www.motorolafans.com/forums/...m-update-recovery-package-updated-v1-12d.html
I see it also does root!
dsixda said:
Here's a clean Telus Milestone 2.0.1 Nandroid backup. I found this one on the web, and then I removed the "su" and "Superuser.apk" files so that it's no longer rooted. Sorry, the original source is uncredited as I forgot where I got it from.
As far as I know, there is no shipped SPF of the 2.0.1 Telus firmware, so this is your only option to go back to stock.
http://www.multiupload.com/TA8V2QPJEO
I used this to restore back to stock Telus Milestone ROM so that I could return the device. The only thing different from the original purchased state was the recovery SPF, but that would be really hard to tell or to find out (just a version number difference).
Click to expand...
Click to collapse
You just saved my Milestone. Thank you x10!
(using xperia x10)
I've made a lot of modifications to my stock rom, and would like to share it.... so is system.img a valid way to share my *own* rom or mod ? (valid as in technically feasible? means ppl can d/l it n flash using recovery n use it?)
my main concerns are... will it boot on someone else's device? (i tried it myself... total wipe + clean stock instal, followed by flashing only my backed up system.img, *didn't flash data.img, only system* it took an eternity to boot first time but it ran)
second concern... system.img doesn't have any personal data right? logs, msgs etc are in data partition i guess??
Sent from my X10i using XDA App
Sent from my X10i using XDA App
whenever i go into recovery mode i get an error on the bottom of the screem
BUILD : RA-dream-v1.7.0
E:Error in CACHE:recovery/log
(No Space left on device)
i cant nand backup or anything
rickyiswhite said:
whenever i go into recovery mode i get an error on the bottom of the screem
BUILD : RA-dream-v1.7.0
E:Error in CACHE:recovery/log
(No Space left on device)
i cant nand backup or anything
Click to expand...
Click to collapse
There are two possibilities:
1) The log is occupiing really the whole space on cache. In that case try to remove the log file from cache directory
2) Did you mess up with custom partion tables? To me this happened some time ago when I forgot to flash fr_boot_xxx.zip onto a boot.img while having installed custom partitions. In that case you have to clean everything. Eventually you need also to flash recovery again. If you have a recent backup, you can try to do a
fastboot erase system -w
then boot into recovery and see, if everything works for you again. If not you need to flash a new recovery:
fastboot flash recovery recovery.img
After that everything should work again, i.e. you can install your backup or you can install a new ROM.
AndDiSa said:
There are two possibilities:
1) The log is occupiing really the whole space on cache. In that case try to remove the log file from cache directory
2) Did you mess up with custom partion tables? To me this happened some time ago when I forgot to flash fr_boot_xxx.zip onto a boot.img while having installed custom partitions. In that case you have to clean everything. Eventually you need also to flash recovery again. If you have a recent backup, you can try to do a
fastboot erase system -w
then boot into recovery and see, if everything works for you again. If not you need to flash a new recovery:
fastboot flash recovery recovery.img
After that everything should work again, i.e. you can install your backup or you can install a new ROM.
Click to expand...
Click to collapse
hmm ok ill try that... thanks... and sometimes it says cant open cache or something
I made an ADB backup via TWRP of each partition (boot, system, data, cache) individually direct to my PC prior to flashing a new ROM. After flashing the new ROM, I realized I forgot to backup texts and wifi netwroks via Titanium Backup. I tried to restore each partition so I could go back and copy the texts and wifi networks but it didn't work. TWRP reported no OS installed and it didn't boot either. I did update the bootloader after I created the backup and am not sure if that's why it's failing.
Is there a way to extract the texts and wifi networks from the backed up file(s)? Do I need to flash a previous bootloader to get the backup to work?
Thanks
pongolo said:
I made an ADB backup via TWRP of each partition (boot, system, data, cache) individually direct to my PC prior to flashing a new ROM. After flashing the new ROM, I realized I forgot to backup texts and wifi netwroks via Titanium Backup. I tried to restore each partition so I could go back and copy the texts and wifi networks but it didn't work. TWRP reported no OS installed and it didn't boot either. I did update the bootloader after I created the backup and am not sure if that's why it's failing.
Is there a way to extract the texts and wifi networks from the backed up file(s)? Do I need to flash a previous bootloader to get the backup to work?
Thanks
Click to expand...
Click to collapse
I would say no but I'm drunk at the moment:laugh:. WiFi and text should be a part of data part of the backup. I see that you backup data so it should be there but I don't think you can do it the way you tried. Let's see what smarter people have to say.
pongolo said:
I made an ADB backup via TWRP of each partition (boot, system, data, cache) individually direct to my PC prior to flashing a new ROM. After flashing the new ROM, I realized I forgot to backup texts and wifi netwroks via Titanium Backup. I tried to restore each partition so I could go back and copy the texts and wifi networks but it didn't work. TWRP reported no OS installed and it didn't boot either. I did update the bootloader after I created the backup and am not sure if that's why it's failing.
Is there a way to extract the texts and wifi networks from the backed up file(s)? Do I need to flash a previous bootloader to get the backup to work?
Thanks
Click to expand...
Click to collapse
Nope, I've never heard of a way to extract anything from a TWRP backup file without restoring it. I've never had to flash a different bootloader to get a TWRP restore to work, even after the bootloader was upgraded by the new ROM I installed. I assume that the bootloader is restored when restoring the TWRP backup. How did you restore the backup? Did you restore the entire backup (all of the partitions) at the same time or try to do them one at a time? I've only had luck with restoring the entire backup at the same time.
alryder said:
Nope, I've never heard of a way to extract anything from a TWRP backup file without restoring it. I've never had to flash a different bootloader to get a TWRP restore to work, even after the bootloader was upgraded by the new ROM I installed. I assume that the bootloader is restored when restoring the TWRP backup. How did you restore the backup? Did you restore the entire backup (all of the partitions) at the same time or try to do them one at a time? I've only had luck with restoring the entire backup at the same time.
Click to expand...
Click to collapse
The first backup I made which had all the partitions in one file didn't seem to work properly as it did not copy the file locally to the PC. I tried it again but created a separate file for each partition which seemed to work so I have 4 files in total. I restored the files in this order: boot, system, data, cache. When it finished I got a message when exiting TWRP that there was no OS installed. I rebooted anyway and it failed.
Is there any way of restoring it to an emulator running on the PC?
pongolo said:
The first backup I made which had all the partitions in one file didn't seem to work properly as it did not copy the file locally to the PC. I tried it again but created a separate file for each partition which seemed to work so I have 4 files in total. I restored the files in this order: boot, system, data, cache. When it finished I got a message when exiting TWRP that there was no OS installed. I rebooted anyway and it failed.
Is there any way of restoring it to an emulator running on the PC?
Click to expand...
Click to collapse
It's likely too late for this now but I've backed up to and restored from a single file on my PC by following this guide quite a few times in the past without any issue. My thoughts are if the files won't restore to your phone they probably won't restore to an emulator either but I honestly have no experience with emulators.
Hi, I recently made an adb backup through twrp and now want to open the file with droid explorer. It asks for a password, when entering the one I had on the phone it doesn't open, I even tried restoring it through twrp -> didn't work, with booted phone it asked too for a password -> also didn't work. Do you guys know if twrp has a password which it sets automatically?
alryder said:
It's likely too late for this now but I've backed up to and restored from a single file on my PC by following this guide quite a few times in the past without any issue. My thoughts are if the files won't restore to your phone they probably won't restore to an emulator either but I honestly have no experience with emulators.
Click to expand...
Click to collapse
In the recovery terminal with the restored backup, delete "/data/system/locksettings.db". That should allow you to boot to system without a password. There is a benefit to removing PIN/pattern locks before making backups.