Just a NANDROID question - G1 Q&A, Help & Troubleshooting

Can a nandroid backup only be done from recovery or is there an adb / adbshell command to do it from your computer?
Not to restore but to actually backup your phone.

If you have the JF 1.41 or 1.43 recovery images on the phone then yeah you can do it right from the recovery screen Alt-B, it's built right in otherwise you have to use ADB.
http://forum.xda-developers.com/showthread.php?t=459830
fleshdeep said:
Can a nandroid backup only be done from recovery or is there an adb / adbshell command to do it from your computer?
Not to restore but to actually backup your phone.
Click to expand...
Click to collapse

Related

Will a Nandroid restore undo my ROM upgrade?

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?

Nand restore

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...

Switchrom on RA-nexus-v1.7.0

Does anyone know how to access the switchrom.sh script on the new 1.7.0 recovery?
i believe it was removed from the recovery image itself. you can always use switchrom the old way and push the .sh file.
check out this thread for the actual file and instructions on how to use it.
http://forum.xda-developers.com/showthread.php?t=541183
No the OP still lists switchrom as a feature. Go to console in the recovery and type "switchrom".
I honestly didn't see an option to get into the console from recovery.. where is that located on the newest recovery?
FaJu said:
No the OP still lists switchrom as a feature. Go to console in the recovery and type "switchrom".
Click to expand...
Click to collapse
I honestly didn't see an option to get into the console from recovery.. where is that located on the newest recovery?
Click to expand...
Click to collapse
There is not a console option on the nexus one recovery image. This is one thing i sorely miss about the G1. One day I needed to flash to a switchrom backup i had done and with no option for console, I was left having to flash the ROM fresh.
In order to access switchrom on recovery 1.6.2 you will need a pc and a know how of ADB. with the phone connected to the computer and in recovery mode do the following -
Code:
adb remount
adb shell
# switchrom
this will bring up the switchrom options... the same process goes for BART. instead of switchrom though, type bart
Thanks everyone!

full-backup partition tool - script for terminal

I made a script to backup any partition in our A7:
YOU HAVE TO BE ROOT, TO USE IT.
To run it simply push to the sdcard fire up adb shell to launch the script.
from the computer while connected to the A7 with usb debugging turned on
Code:
adb push PATH_to_the_script/full-backup.sh /sdcard
and
Code:
adb shell
su
cd /sdcard/
sh full-backup.sh
you will see a menu to choose which partition to backup.
As in the attachment.
enjoy, and please hit the thanks button.
the script v1.00
and a terminal screenshot.
Could you use terminal emulator to run this from on the phone thus cutting out the need for a pc?
ultramag69 said:
Could you use terminal emulator to run this from on the phone thus cutting out the need for a pc?
Click to expand...
Click to collapse
yes you could run it directly form the device:
fire up a terminal emulator app:
RUN IT AS ROOT
Code:
su
sh /sdcard/full-backup.sh
thank you. we can backup unmodified firmware via this tool right?
RealSchule said:
thank you. we can backup unmodified firmware via this tool right?
Click to expand...
Click to collapse
So you need to be root to use this script, so not really..
RealSchule said:
thank you. we can backup unmodified firmware via this tool right?
Click to expand...
Click to collapse
The root modifed just the boot partition so you could backup every stock partition but the stock boot... but you could get the stock boot from other places...
manu7irl said:
The root modifed just the boot partition so you could backup every stock partition but the stock boot... but you could get the stock boot from other places...
Click to expand...
Click to collapse
we can backup all images except boot.img with this tool but we can find boot.img from other topic. so we have full stock images right?
If you have root you can backup every single partition. This is not full stock rom! This is for backup and restore easily.
manu7irl said:
If you have root you can backup every single partition. This is not full stock rom! This is for backup and restore easily.
Click to expand...
Click to collapse
So what is the process to restore these images? Is it as simple as flashing in twrp?
Go in TWRP, fire up adb shell on your PC, then do:
Code:
dd if=/sdcard/[backup_folder]/[partition].img of=/dev/block/bootdevice/by-name/[partition_name]
example:
Code:
dd if=/sdcard/backup-part/[date-folder]/system.img of=/dev/block/bootdevice/by-name/system
I will also make a restore part in this little script. If you are intersting in one to do so.
Sure that would be great. Thanks.
manu7irl said:
Go in TWRP, fire up adb shell on your PC, then do:
Code:
dd if=/sdcard/[backup_folder]/[partition].img of=/dev/block/bootdevice/by-name/[partition_name]
example:
Code:
dd if=/sdcard/backup-part/[date-folder]/system.img of=/dev/block/bootdevice/by-name/system
I will also make a restore part in this little script. If you are intersting in one to do so.
Click to expand...
Click to collapse
Been waiting for just that.

TWRP Help

Is there a way to select files from my PC to flash during twrp? I am low on storage and I have a twrp backup that I want to move to my PC to allow me more storage. In case of bootloop, will there be a way to select the twrp backup from my PC while in recovery?
The latest twrp does this.
SpencerA99 said:
Is there a way to select files from my PC to flash during twrp? I am low on storage and I have a twrp backup that I want to move to my PC to allow me more storage. In case of bootloop, will there be a way to select the twrp backup from my PC while in recovery?
Click to expand...
Click to collapse
You'll have to use adb commands in order to pull it to your pc.. So long as you have minimal adb and Fastboot installed you should be able to do this.. If you don't know the adb commands that I suggested then use Google to learn more about the types of commands you can use like adb pull .. It's not that hard. Just make sure you have debugging turned on and oem unlock on also on the phone and then you'll be able to do it.

Categories

Resources