Go Back   xda-developers > HTC Dream: G1 > G1 General


Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 5th May 2009, 07:41 PM
nicksen782 nicksen782 is offline
Junior Member
 
Join Date: Jan 2009
Posts: 19
Thumbs up NANDROID Restore Script with GUI available

Nandroid Restore

UPDATE: XDA member Cyanogen has put together a new recovery image that has a Nandroid restore mode built right in. This allows Nandroid to be totally selfcontained on the device. My (and Markazah) program still is good for easy restores if you keep multiple backups because Cyanogen's only restores the latest backup (within the Recovery image GUI anyway.)
Here is a link to his "Pimped out recovery image with new features"
http://forum.xda-developers.com/showthread.php?t=523558
Awsome Cyanogen!



Nandroid, created through the efforts of Infernix and Brainaid, is a great tool for backing up your phone. The NANDROID backup process itself is easy to use; however, some folks are not so sure about how to restore these backups back to their phone.

Solution: Nandroid Restore and Nandroid Restore GUI

What it does:
Automates the FASTBOOT portion of the restore.
Nandroid Restore will use FASTBOOT to wipe and then restore the boot, system, userdata and recovery partitions from your phone.
When these tasks are completed, the script then reboots your phone.

What you should expect:
You should end up with a clean restore and all of your data just as you had it when you made your NANDROID backup. EASY!

Directions:
Get your phone into the Secondary Boot Loader (SPL):
Plug your phone into your computer with the USB cable
Take your NANDROID backup off of your SD card and place it in a directory on your PC with a copy of both fastboot.exe and AdbWinApi.dll.
Enter the Secondary Boot Loader (SPL) of your phone by powering down your phone and then powering it back up while holding both the <END> button and the <CAMERA> button.

Restore using NANDrest.bat from the command line:
On your PC, drop to a command prompt and navigate to the directory that you placed your NANDROID backup and fastboot.exe files.
Execute the program "nandrest.bat".
(It is also possible to simpily run this script from the folder without using the command prompt. We all have our preferences after all.)

Restore using Nandroid Restore GUI: (GUI written courtesy of XDA user Markazeh)
Make sure that the 4 Nandroid Restore GUI files are in the same folder as your NANDROID backups.
The GUI will make sure that all required files (the *.img files and Nandrest scripts.)

(See the included pictures)

Reference knowledge:
  • NANDROID is included with JesusFreke's testkeys modded recovery image. If you have a JF ROM then you probably already have this recovery image and NANDROID.
  • You must have the Engineering SPL or HardSPL to use FASTBOOT.
  • Fastboot.exe and AdbWinApi.dll are found in the "tools" folder of the SDK files.
  • FASTBOOT requires drivers to be loaded into your Windows Operating System. These drivers are in "usb_driver" folder of the SDK files.

Conclusion:
Sure, it's pretty simple and I use it to save time and automate the repair of my latest screw-up and now you can too!

Thank you to Infernix, Brainaid, JesusFreke, Haykuro, TheDudeOfLife, Google and all others that have given their skills and time to the Android community (and subsequently introduced the necessity for NANDROID. )

And thank you to XDA member Markazeh for providing the GUI for Nandrest.bat.

NANDROID post:
http://forum.xda-developers.com/showthread.php?t=459830

Secondary Boot Loader (SPL) post:
http://forum.xda-developers.com/showthread.php?t=455860
Attached Images
File Type: jpg nandrest.jpg (21.7 KB, 565 views)
File Type: jpg NANDROID_Recovery_GUI.JPG (25.6 KB, 617 views)
Attached Files
File Type: zip nandrest.zip (730 Bytes, 554 views)
File Type: zip NANDROID_Recovery_GUI.zip (223.4 KB, 1094 views)
__________________
Black G1
8 gig Class 6 SD

Last edited by nicksen782; 4th July 2009 at 06:10 AM..
Reply With Quote
Sponsored Links

  #2  
Old 5th May 2009, 07:54 PM
Nitro212 Nitro212 is offline
Member
 
Join Date: Feb 2009
Posts: 97
Default

will try this, thanks.
Reply With Quote

  #3  
Old 5th May 2009, 08:08 PM
borodin1's Avatar
borodin1 borodin1 is offline
Senior Member
 
Join Date: Jan 2009
Location: Minneapolis MN
Posts: 607
Default

Thank you for this.
__________________


Black HTC DREAM / Super-D 1.8
/ Thank you : JF, Stericson, Cyanogen
Reply With Quote

  #4  
Old 7th May 2009, 10:34 PM
sandshrimp sandshrimp is offline
Member
 
Join Date: Jan 2004
Posts: 55
Default

where is nandrest.bat?
__________________
T-Mobile G1
ROM: JF 1.51 US -Apps2SD via Lucid
Radio Version: 2.22.19.26I
Reply With Quote

  #5  
Old 8th May 2009, 03:23 PM
nicksen782 nicksen782 is offline
Junior Member
 
Join Date: Jan 2009
Posts: 19
Question

@Sandshrimp: The nandrest.bat file is inside of the nandrest.zip file. You must first unzip nandrest.zip before you will be able to access nandrest.bat.


How is this script working for the rest of you?
__________________
Black G1
8 gig Class 6 SD
Reply With Quote

  #6  
Old 8th May 2009, 07:48 PM
Markazeh's Avatar
Markazeh Markazeh is offline
Junior Member
 
Join Date: Apr 2009
Posts: 23
Default

Hey nicksen,
i was bored this evening, so i decided to write a little GUI for your Script...

How it works:
- First off, i deleted the ":AREYOUSURE" part in your script, cause a security check is
in the GUI.
- When you start the GUI, it checks if no file is missing and shows missing files
graphically.
- You can only press the "Flash" Button, when every file is in the folder...


I renamed the "nandrest.bat" to "nandrest", that no one can accindently flash the phone by clicking the nandrest.bat. When you click "Flash" the Programm renames the script to "nandrest.bat", that Windows can open it and after your Script has finished it renames it back to "nandrest".

Hope you like it!
Greetings
Markazeh

Last edited by Markazeh; 9th May 2009 at 01:21 PM..
Reply With Quote

  #7  
Old 8th May 2009, 08:42 PM
prash's Avatar
prash prash is offline
Senior Member
 
Join Date: Feb 2009
Posts: 525
Default

Quote:
Originally Posted by Markazeh View Post
Hey nicksen,
i was bored this evening, so i decided to write a little GUI for your Script...

How it works:
- First off, i deleted the ":AREYOUSURE" part, cause this security check is
handled in the GUI.
- When you start the GUI, it checks if no file is missing and shows missing files
graphically.
- You can only press the "Flash" Button, when every file is in the folder...


I renamed the "nandrest.bat" to "nandrest", that no one can accindently flash the phone by clicking the nandrest.bat, cause i deleted the security check in it... When you click "Flash" the Programm rename the script to "nandrest.bat", that Windows can open it. After your Script is finished it renames it to "nandrest".

Hope you like it!
Greetings
Markazeh
nicksen782: Thanks a bunch for the script!
Markazeh: Thanks even more for making a user friendly GUI for it!

This is amazing work, I love this community for this sort of collaborations.

I'll send people this way for easy restore.
__________________
Professional Graphic/Web Designer
My Themes: AlienAqua, SystemForce3, and more.
If you like my contributions..Donate?
Reply With Quote

  #8  
Old 9th May 2009, 02:16 AM
nicksen782 nicksen782 is offline
Junior Member
 
Join Date: Jan 2009
Posts: 19
Talking

@Markazeh -
Thanks! I like the GUI! This is technically my first contribution so I'm pretty tickled that it has been useful so soon. May I suggest that your GUI also check for the presence of AdbWinApi.dll and Fastboot.exe? Oh, and maybe throw my name on your GUI for the script portion? I can rewrite the first post of this thread to include the new GUI.

THANKS!
__________________
Black G1
8 gig Class 6 SD

Last edited by nicksen782; 9th May 2009 at 02:21 AM..
Reply With Quote

  #9  
Old 9th May 2009, 12:19 PM
Markazeh's Avatar
Markazeh Markazeh is offline
Junior Member
 
Join Date: Apr 2009
Posts: 23
Default

Yeh, I'm gonna put your name also on the GUI.

I CAN check for the other files, but some people have these files in the win dir....
I have to think about that....

I'll upload the GUI with your name in it in a few hours

May you can give a suggestion on how to handle the problem with the files....

Greets

Last edited by Markazeh; 10th May 2009 at 10:51 PM..
Reply With Quote

  #10  
Old 9th May 2009, 02:39 PM
ei8htohms's Avatar
ei8htohms ei8htohms is offline
Senior Member
 
Join Date: Feb 2009
Location: NJ/NYC
Posts: 239
Default

This works great, thanks guys! Nice job!
__________________
Vz DROID

Reply With Quote

Reply

Tags
nandroid, restore

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 01:03 AM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.