Restore a Data.img from nandroid backup? SOLVED - Nexus One General

Never done this before, but is it possible to restore just the data.img bit from a nandroid after flashing new ROM? Obviously boing a full nandroid restore will wipe the ROM just installed won't it.
everytime I upgrade the latest CM Rom, I get an error unless I do a full wipe which is a pain.
so can I flash the data bit from the nandroid I did just before installing the new ROM?
If so is this the right command
fastboot flash data data.img

To answer my own Question - YES. I only ever used nandroid to restore back to a full working ROM after a Fail.
So - in case it helps anyone else
Get the nandroid that you did before the wipe and ROM Update.
Put the data.img file into the tools folder of your SDKfolder
Boot into Fastboot and connect so you see Fastboot USB on the phone.
in command prompt type
fastboot devices (just to make sure it sees your phone)
fastboot flash userdata data.img
Then reboot the fone. Voila - you should have your homescreens etc all back to how they would be if you hadn't wiped
Dayz xx

Related

Magic aint working

Hey!
I tried flashing a Hero rom to my HTC Magic this evening, but after flashing the phone just froze at the HTC Magic screen, it didnt reboot, it just froze.
I then tried to boot in the recovery menu, and install a earlier version of cyanogen, that i know have worked on my phone before. But the same happens, the phone just freeze at the HTC Magic screen, and nothing happens.
I have a Magic 32A
Hope that anyone here can help me, dont know what i need to do to get it working again.
1.) wrong section
2.) do you have a nandroid backup ?
1) Sorry, maybe an moderator can move the thread to the proper forum
2) Yes i have a Nandroid backup on my computer. I have tried taking that nandroid and copying it to a spare SDcard i have, and then boot in recovery and then choose Nandroid Restore, but i keeps saying : Error performing restore! Try running 'nandroid-mobile.sh restore' from console.
Dont know what that means
So i guess i dont have a nandroid backup, or not a working nandroid
Any ideas?
Per
Bump
Dosnt any1 know what i can do?
Can i be the SPL that i have broken, and need to flash a new one?
perevers said:
1) Sorry, maybe an moderator can move the thread to the proper forum
2) Yes i have a Nandroid backup on my computer. I have tried taking that nandroid and copying it to a spare SDcard i have, and then boot in recovery and then choose Nandroid Restore, but i keeps saying : Error performing restore! Try running 'nandroid-mobile.sh restore' from console.
Dont know what that means
So i guess i dont have a nandroid backup, or not a working nandroid
Any ideas?
Per
Click to expand...
Click to collapse
Did you rename your Nandroid backup from the original name? If so then this can cause problems when you try to restore.
fastboot flash system system.img
fastboot flash userdata data.img
fastboot flash boot boot.img
boot to fastboot and put your nadroid system.img data.img boot.img files inside sdk tools folder
and open cmd and copy paste above
http://forum.xda-developers.com/showthread.php?t=512319
this might help also
sitimber said:
http://forum.xda-developers.com/showthread.php?t=512319
this might help also
Click to expand...
Click to collapse
Thanks alot, tried this link, and did what they told, and it worked. So thanks alot for the help, it is really appriaciated
perevers said:
1) Sorry, maybe an moderator can move the thread to the proper forum
2) Yes i have a Nandroid backup on my computer. I have tried taking that nandroid and copying it to a spare SDcard i have, and then boot in recovery and then choose Nandroid Restore, but i keeps saying : Error performing restore! Try running 'nandroid-mobile.sh restore' from console.
Dont know what that means
So i guess i dont have a nandroid backup, or not a working nandroid
Any ideas?
Per
Click to expand...
Click to collapse
I'll move it to General and close it.

Failed TWRP restore

So I decided to try and flash Ubuntu last night... I booted into recovery made a backup 15min and 2.5 GB later it was done... wiped flashed no go would not boot... so back to recovery I choose my restore file... system says it was successful but when restoring the data it fails... I'm on twrp 2.5 ...then I tried to just restore the system when booting up I get that static image you see on cm flash every 5 sec but never boot nor goes inyo the boot animation...is there anyway to use this restore file... I just need the data part.. I have messages that i need to show my lawyer and numbers that I need... TiB won't restore my messages either....
Sent from my XT907 using xda app-developers app
You will need TWRP 2.6.3 / PhilZ / or a newer CWM that supports adb in recovery (not sure is 2.5 does)
First off, all of your pictures and other stuff are stored at "/data/media" or "/data/media/0" and are not "wiped" unless picked. These are both accessible in recovery, and you could do an "adb pull ....." to get those files to a PC. At this point you should have your pictures.
Sounds like Ubuntu messed some things up, and when you restored "/system" only it won't boot because of missing data. I once had a problem like this bouncing back and forth between 4.3 and 4.2. Assuming you were on a custom ROM, maybe try wiping completely including "/data/media" DO NOT WIPE "/DATA/MEDIA" IF YOU HAVEN"T BEEN ABLE TO PULL THE FILES VIA ADB IN RECOVERY!!! YOUR PHOTOS WILL BE GONE!!! Sorry for the bold caps, I just didn't want you to miss it. Next install your custom ROM, boot, and do enough setup to get to the home screen. Now go back to recovery and your backup should restore. From here you could "adb push ..." your files back.
Updating TWRP is one way to solve this in the future, like JB already posted. However, to remedy on 2.5, do a clean wipe prior to restore, mounting system prior. Then, restore only the boot.img from the ROM you want and then restore the full ROM you want. This is how I was able resolve this same issue. Hopefully, it will work for you.
I was on stock deodexed debloated prior to all this... after a few tries at the restore I just flashed that same ROM and used TiB to restore what I had on last back up... tonight I'll try and restore that twrp backup ... but either way I guess I'll be updating my recovery... I'm not worried about all my pics n what not I keep all that on the external SD card now...
Sent from my XT907 using xda app-developers app

[Q] Stuck while flashing kitkat 4.4 on nexus 4

Hi,
so i followed the steps to flash android on my nexus using ClockworkMod recovery.
I did the following steps and now I am stuck. my phone wouldn't load and I cant do anything about it
1. Bootloader was unlocked and I installed the clockworkmod recovery.
2. backed up my phone
3. I copied the ROM zip file to storage of the phone. (I cant find it through recovery now)
4. rebooted into recovery mode
5. did the nAndroid backup (which is not working now and hence my phone is spoiled)
6. performed complete wipe of the device including factory reset, cache partition and dalvik cache.
the problem is that I cant restore the nAndroid backup which i created using the recovery any more. I also tried mounting the USB storage using recovery but it still doesn't work.
I am also not able to see the phone as a Storage device in my computer any more otherwise I could load the ROM file again and try.
Please suggest any ideas or solutions.
Regards
error while restore
Whenever I am trying to restore the backup it shows error "MD5 mismatch"
junaid1788 said:
Hi,
so i followed the steps to flash android on my nexus using ClockworkMod recovery.
I did the following steps and now I am stuck. my phone wouldn't load and I cant do anything about it
1. Bootloader was unlocked and I installed the clockworkmod recovery.
2. backed up my phone
3. I copied the ROM zip file to storage of the phone. (I cant find it through recovery now)
4. rebooted into recovery mode
5. did the nAndroid backup (which is not working now and hence my phone is spoiled)
6. performed complete wipe of the device including factory reset, cache partition and dalvik cache.
the problem is that I cant restore the nAndroid backup which i created using the recovery any more. I also tried mounting the USB storage using recovery but it still doesn't work.
I am also not able to see the phone as a Storage device in my computer any more otherwise I could load the ROM file again and try.
Please suggest any ideas or solutions.
Regards
Click to expand...
Click to collapse
Okay, first what rom are you flashing. And did you do a factory reset in the recovery before you flash it?
By flashing in custom recovery means you are flashing an unofficial version of KitKat, because normal you use fastboot method to flash the factory image from Google. Try using this stock rom from fireb33: http://forum.xda-developers.com/showthread.php?t=2010887
Secondly, did you flash the latest version of CWM recovery: http://forum.xda-developers.com/showthread.php?t=2198942
If you used latest recoveries and factory reset, and it still doesn't boot, then backup your nandroid and use the fastboot method to flash the factory stock image (link in my sig).
To backup your nandroid, you need to locate where it is and use "adb pull" command, try this: adb pull /data/media/clockworkmod/ C:\backup\
The MD5 mismatch means your file is not original or corrupt, it could be due to various reasons.
Nexus devices do not have microSD card so they cannot use the mount USB storage feature.
I am willing to bet most of your issues could be avoided by using TWRP recovery instead of CWM. Get it here: http://techerrata.com/browse/twrp2/mako, flash it in fastboot by "fastboot flash recovery twrp.img", it is not compatible with CWM nandroid.
If you neeed to send certain files to your phone, don't forget the sideload feature if you want to flash a zip file from your computer. Enable sideload in your recovery, and type: adb sideload *.zip
junaid1788 said:
Hi,
so i followed the steps to flash android on my nexus using ClockworkMod recovery.
I did the following steps and now I am stuck. my phone wouldn't load and I cant do anything about it
1. Bootloader was unlocked and I installed the clockworkmod recovery.
2. backed up my phone
3. I copied the ROM zip file to storage of the phone. (I cant find it through recovery now)
4. rebooted into recovery mode
5. did the nAndroid backup (which is not working now and hence my phone is spoiled)
6. performed complete wipe of the device including factory reset, cache partition and dalvik cache.
the problem is that I cant restore the nAndroid backup which i created using the recovery any more. I also tried mounting the USB storage using recovery but it still doesn't work.
I am also not able to see the phone as a Storage device in my computer any more otherwise I could load the ROM file again and try.
Please suggest any ideas or solutions.
Regards
Click to expand...
Click to collapse
the only optionyou have is to flash a factory image through fastboot..head over here --> Click Me
i downloaded the factory image from google extracted then did the same fastboot flash as the 4.3 but switched the names to the files in the krt16o zip. it worked perfectly for me. tried using wugs toolkit and everything went to crap. i say do the same method as 4.3 but rename all the files accordingly.
XDA FORUMS.. 3 words.. YOU GUYS ROCK !!!!!! :victory::victory::victory:
this post HERE saved my life

Can't get back to Stock ROM (what am I doing wrong?)

History of what I did:
I first installed the first small OTA Update to 4.5.1 then unlocked the Bootloader and flashed TWRP v46 from xdvs23. And made a full TWRP Backup and flashed Magisk afterwards.
Everything worked fine until I debloated the System and wanted to make the OTA Update to 4.5.2 (1,5 GB), which didn't work. After I flashed it, the phone didnt boot anymore. So I restored the TWRP Backup, which doesn't work either.
Current status:
TWRP v58 is flashed and works. I can flash ExcperienceOS from Jamal, which works fine, too. But flashing the OTA file doesn't work and restoring my backup wont work either -_-
I would really appreciate help to get back to an OTA updatable version of OxygenOS!
If you still have the TWRP installed I would download the full 4.5.2 zip (Listed elsewhere on these forums) and use adb sideload to install it, then proceed again from there.
djsubterrain said:
If you still have the TWRP installed I would download the full 4.5.2 zip (Listed elsewhere on these forums) and use adb sideload to install it, then proceed again from there.
Click to expand...
Click to collapse
I did that several times. It doesn't work sadly... I get into a bootloop
You didn't erase your userdata partition by mistake did you? You could try going into fastboot mode and use the command:
fastboot format userdata
Obviously this will wipe the userdata partition but the phone is acting like there's no userdata partition anyway
djsubterrain said:
You didn't erase your userdata partition by mistake did you? You could try going into fastboot mode and use the command:
fastboot format userdata
Obviously this will wipe the userdata partition but the phone is acting like there's no userdata partition anyway
Click to expand...
Click to collapse
I might have, I will try that, thanks
Or just wipe everything, flash stock recovery, and flash Full OxygenOS zip.
https://forum.xda-developers.com/showpost.php?p=72799046&postcount=2
I formated the userdata and flashed the .zip from the link, but I still get a bootloop...
I still don't understand what I am doing wrong...
How about trying to wipe everything from wipe menu except internal storage and then flash the oos zip followed by lazy flasher zip from here - bit.ly/lazyflasher
If this doesn't work then try changing to a different version of TWRP!
Casual_Max said:
I formated the userdata and flashed the .zip from the link, but I still get a bootloop...
I still don't understand what I am doing wrong...
Click to expand...
Click to collapse
You didn't do these steps wrong by any chance?
Steps To Disable Forced Encryption i.e, Decrypt Data
1. At first time when you open twrp, it will ask you to allow system modification.
2. Allow it and then flash the no-verity-opt-encrypt.zip file .
3. Then Go to Wipe-->Format Data.
4. Type Yes to confirm wiping of Internal Storage.
5. Now you have decrypted the data sucessfully.
Note: Dont try to restore the nanodroid backup which you have taken before. It may end in bootloop.
Click to expand...
Click to collapse
From here:
https://forum.xda-developers.com/on...der-intall-t3626122/post72777899#post72777899
ok, there I see what caused my first bootloop. Thanks
But why doesn't flashing the Stock ROM .ZIP work on an wiped (fastboot format userdata) phone? What else do I have to do?
EDIT:
*** solved ***
I failed hard. Luckily the OnePlus Support is excellent and was able to fix my issue with a remote session using their official tools. The Phone and I are both happy again.
Thanks for all the help, though. I learned quite a lot while dealing with this issue. It's a very kind and nice community here

Bootloop to recovery after update

I have stock Nougat and after an OTA update it rebooted to TWRP. TWRP works fine but it can't boot back to the system, just TWRP. I tried wiping cache and davilink, no success. I also tried re-flashing the elementalx kernel but it didn't fix.
I had some text messages and whatsapp messages I needed to reply to. Worst case scenario, can I still save the data? I have TI backup pro installed but find there's always things I forget to backup (for example even when backingup Whatsapp the pictures aren't backed up).
How can I get out of the bootloop to recovery?
twoplustwo said:
I have stock Nougat and after an OTA update it rebooted to TWRP. TWRP works fine but it can't boot back to the system, just TWRP. I tried wiping cache and davilink, no success. I also tried re-flashing the elementalx kernel but it didn't fix.
I had some text messages and whatsapp messages I needed to reply to. Worst case scenario, can I still save the data? I have TI backup pro installed but find there's always things I forget to backup (for example even when backingup Whatsapp the pictures aren't backed up).
How can I get out of the bootloop to recovery?
Click to expand...
Click to collapse
Temporary solution,
Boot into bootloader, start device from there, it will start from bootloader,
For further process, take backups of your important data and internal storage...
This solution works for sometimes,
Boot into bootloader and get adb/fastboot on PC.
Enter following commands,
- fastboot oem fb_mode_set
- fastboot oem fb_mode_clear
Try above commands 3-4 times (if doesn't work for first time.)
If still doesn't work,
You need to flash fastboot stock ROM, check guide section for it.

Categories

Resources