Related
Hi Guys
Just wondering if anyone knew if there was a way to do a Nandroid.
People who have used custom recovery on a native android phone would be familiar.
Before people point me to the nand thread and say theres the NandAndroid.. This thread is for doing Nandroid Backups, Full image of the Nand to a file on your SDcard that can be restored back to nand if you dislike the new rom you flashed or
restore the nandroid after applying a patch/theme you made that failed to work..
I wonder if MAGLDR will support this in future? is there anyway we can do this from ADB or TTY?
any ideas appreciated
FrAsErTaG said:
Hi Guys
Just wondering if anyone knew if there was a way to do a Nandroid.
People who have used custom recovery on a native android phone would be familiar.
Before people point me to the nand thread and say theres the NandAndroid.. This thread is for doing Nandroid Backups, Full image of the Nand to a file on your SDcard that can be restored back to nand if you dislike the new rom you flashed or
restore the nandroid after applying a patch/theme you made that failed to work..
I wonder if MAGLDR will support this in future? is there anyway we can do this from ADB or TTY?
any ideas appreciated
Click to expand...
Click to collapse
It actually is located in the Android NAND Development section....
http://forum.xda-developers.com/showthread.php?t=898913
Holy Crap!!!
I totally missed that!!!
What progress the devs are making with this phone!!!!
Mod: You can close thread
Hi All,
I've been looking for an answer and have not found one yet.
I have an existing NAND build (MDJ cyanogen 7) of android that I flashed via magldr 1.11. I know I can update magldr to 1.13 safely without messing deleting the the nand rom i have already. But if I want to install Clockworkmod 1.3 onto the nand will I lose my existing rom need to reflash my rom again or does magldr know to flash clockworkmod onto another area of nand that wont overwrite my existing rom?
also with clockworkmod it says:
Download recovery with partition size for the type of rom you plan on using, see guide below if unsure.
it says to use the 150MB partition just wanted to see if anyone else using mdj's cyanogen 7 is using the same thing?
Your help is greatly appreciated
ascrackoo1 said:
Hi All,
I've been looking for an answer and have not found one yet.
I have an existing NAND build (MDJ cyanogen 7) of android that I flashed via magldr 1.11. I know I can update magldr to 1.13 safely without messing deleting the the nand rom i have already. But if I want to install Clockworkmod 1.3 onto the nand will I lose my existing rom need to reflash my rom again or does magldr know to flash clockworkmod onto another area of nand that wont overwrite my existing rom?
also with clockworkmod it says:
Download recovery with partition size for the type of rom you plan on using, see guide below if unsure.
it says to use the 150MB partition just wanted to see if anyone else using mdj's cyanogen 7 is using the same thing?
Your help is greatly appreciated
Click to expand...
Click to collapse
Yes you will lose your current rom, so do a cwm backup first. After flashing the partition for cwm, you will get a kernel error on first boot, so boot into AD Recovery and restore the boot, system and data backups and all is back to normal. As for the partition size, use the same size as you did for the sd version. The guide suggests a 400mb partition for an unsquashed desire hd build, but I used the 250mb partition on my current rom and all is perfect.
PS! Please don't post questions in the ROM Dev section, there's a reason why there is a Q&A section.
ClydeB1 said:
PS! Please don't post questions in the ROM Dev section, there's a reason why there is a Q&A section.
Click to expand...
Click to collapse
+1
Its so frustrating, why on earth would anybody post a question topic in here when we have dedicated Q&A forum??
It should be obvious to anybody that this is a "dev" forum for posting developments not for asking questions.
Since the rom was originally flashed via DAF, will CWM still allow me to do a backup?
Was hoping for a guide, it's so confusing.
No, from what I understand you don't have CWM installed yet, so you can't use it now. Use titanium backup (market), and then flash cwm so you can use it in the future.
ascrackoo1 said:
Since the rom was originally flashed via DAF, will CWM still allow me to do a backup?
Was hoping for a guide, it's so confusing.
Click to expand...
Click to collapse
It seems confusing at first but it is not really that difficult.
StephanV said:
No, from what I understand you don't have CWM installed yet, so you can't use it now. Use titanium backup (market), and then flash cwm so you can use it in the future.
Click to expand...
Click to collapse
Correct, on first flash of cwm it will erase all data/roms etc on NAND. You will not be able to backup the rom if it was initially flashed via daf. As StephanV says, use Titanium Backup or MyBackup Root to back up your data/apps etc and you can restore them after.
Once you have cwm installed and have flashed a new rom and set it all up, then you can do a cwm backup.
So if i use cwm then I can only flash zip based roms from that point on? I cant use the daf ones anymore then.
You can still use daf, but each time you run a daf file it will remove the cwm recovery partition and you will need to reflash it to use cwm again.
I'm finding that if i flash cwm ontop of a daf rom the rom becomes unbootable. and the only way to get it to work again is use a cwm version of the rom.
ascrackoo1 said:
So if i use cwm then I can only flash zip based roms from that point on? I cant use the daf ones anymore then.
Click to expand...
Click to collapse
i'm not sure about the rom you are using but i was able to back up a few different roms with cwm which i installed using daf. this is what i did:
1. create a folder on sdcard name "cwm" (you can name it whatever you want). i actually have a folder for each clockwork recovery version.
2. put the zImage and initrd.gz for cwm (version 1.0,1.1,or 1.2) in the folder you just created. (do not flash anything at this point)
3. boot into magldr and go to services, boot settings, ad sd dir and select the directory you just created
4. now in magldr menu boot ad sd, and you should hopefully boot into clockwork
5. go to backup and restore and backup your rom. if you try cwm 1.2 and it doesn't work try 1.0 to back it up, you can then update to 1.2 again and it will still restore just fine.
6. before restoring your rom, install cwm1.3 and choose a partition size bigger than the size of the system.img of the rom that you backed up. clockwork backs up your rom in your sdcard->clockworkmod->backup. it creates a folder with the timestamp.
7. now you can follow the steps from the clockworkmod thread to load cwm1.3 and restore from there.
ClydeB1 said:
You can still use daf, but each time you run a daf file it will remove the cwm recovery partition and you will need to reflash it to use cwm again.
Click to expand...
Click to collapse
ascrackoo1 said:
I'm finding that if i flash cwm ontop of a daf rom the rom becomes unbootable. and the only way to get it to work again is use a cwm version of the rom.
Click to expand...
Click to collapse
dont bother 'installing' clockwork, just put the two files on your sd card, then go into your MDJcyanogen rom folder on the PC, open (in notepad) flash.cfg and it will look something like
boot ya|boot|ro filesize+1M boot.img
misc ya 1M
recovery ya|ro 3M
cache ya 3M
system ya filesize system.img
userdata ya|asize|hr allsize
the partitions 'recovery' and 'misc' will allow cwm to work, they arent needed for this rom, they are only there for compatibility however if you plan on flashing to a different rom using sd card/cwm, (rather than simply using cwm to do backups of MDJcyanogen) you will want to edit the
system ya filesize system.img
and maybe set it to one of teh recommended cwm sizes, example
system ya 150M
this is because the original line
system ya filesize system.img
will set a system partition of the same size as the MDJcyanogen system.img, (about 130meg) but if your next rom has a bigger system.img, when you try load it from cwm it wont fit, so wont work. by setting it to 150 (or whatever you want) you are allowing for different size system.img in various roms.
Whenever you flash a nand rom, so long as you edit the flash.cfg and make sure those two partitions, misc and recovery (and maybe cache too, i do) are there, then cwm will work.
how do u get 1.13
sbgleeko said:
how do u get 1.13
Click to expand...
Click to collapse
Go to nand development and its in the thread called (quite cunningly) "magldr 1.13 released "
Yesterday, I rooted my wildfire and installed my first custom rom, CM7. Today, I noticed the gps bug so I followed the instructions here
But when I tried to restore the nandroid backup of my stock rom from yesterday, I got a md5 mismatch error and then I tried to restore the nandroid backup that I'd created only moments before (backup of CM7 rom) which also failed because of an md5 mismatch.
So both of my nandroid backups won't restore because of an md5 mismatch (I touched neither backup, both were in the clockworkmod folder where they were originally created) and now I've had to load a fresh copy of CM7.
Why is this and how can I restore them?
Have you renamed the folder name of nandroid backup folder (which will be in date and time normally). If yes, then again rename in such a way that there will be no spaces in the folder name. Either remove the spaces or fill them with some characters. It may solve the md5 sum error.
Sent from my HTC Wildfire using XDA App
The backups are stored like this:
E:\clockworkmod\backup\2011-07-11.14.07.01
no spaces anywhere
anything else that could be causing the error?
No idea. Sorry !
Sent from my HTC Wildfire using XDA App
Has anyone else had this problem before?
What I'm more worried about is that both the nandroid backups that I've done so far have this problem and I have a feeling that the 3rd and 4th... will have the same problem.
Should have really checked that the backup worked before installing a new rom, thought nandroid backups were bulletproof!
Solution is here:
http://forum.xda-developers.com/showthread.php?t=714114
Although I *Think* you can directly use Fastboot as well to flash the data.img, boot.img and system.img, without going through the Nandroid Restore Process (Inspite of the Md5 Mismatch error), it's something I have been vying to test personally but still havent been able to do so.
3xeno said:
Solution is here:
http://forum.xda-developers.com/showthread.php?t=714114
Although I *Think* you can directly use Fastboot as well to flash the data.img, boot.img and system.img, without going through the Nandroid Restore Process (Inspite of the Md5 Mismatch error), it's something I have been vying to test personally but still havent been able to do so.
Click to expand...
Click to collapse
Thanks I'll give that a try.
You seem to be very knowledgeable about this sort of stuff!
I've heard of adb and fastboot but how do I use them?
Also, would you know where I could get clockwork recovery v3.1.0.2? I've looked at your referance thread (which is amazing) but that just links to v4.0.0.5 (which is what I'm on now)
fireice7 said:
Thanks I'll give that a try.
You seem to be very knowledgeable about this sort of stuff!
I've heard of adb and fastboot but how do I use them?
Also, would you know where I could get clockwork recovery v3.1.0.2? I've looked at your referance thread (which is amazing) but that just links to v4.0.0.5 (which is what I'm on now)
Click to expand...
Click to collapse
Yes, arco originally had v3.1.0.2 on that thread, which he updated to v4.0.0.5, removing the previous one.
You can get 3.1.0.2 here:
http://www.multiupload.com/UQGXAGLCJ2
A short how-to for using Fastboot is posted here:
http://forum.xda-developers.com/showthread.php?p=14693680
Fastboot is an amazing thing to have, because you can push stuff like Recoveries, Nandroid Backups etc in just 1 step, using your PC, without any hassles. If you dont get what is stated in the thread, ask me, I'll help you out.
If I use fastboot (as in the how to guide) to flash v3.1.0.2, will it just overwrite my current v4.0.0.5 or do I need to remove v4.0.0.5 first. My phone was rooted using unrevoked if that matters.
Also can a nandroid backup of a sense rom be restored in clockwork recovery v3/v4?
Thanks for all your help, you've been great
- You haven't S-OFF'ed using AlphaRev X? In that case, all this stuff isn't applicable to your device, unfortunately. Because, Fastboot needs S-OFF using AlphaRev X.
- You can overwrite Recoveries. You need not remove your old one, it will still work fine. (Even if you use Unrevoked to flash Recoveries)
- As for Nandroid Restores, it doesn't matter if it is a Sense based ROM or not, you should be able to restore it, even on CWMv3/4
No, I didn't use alpharev x, still on hboot 0.80 so I rooted with unrevoked.
So should I run unrevoked again to flash a new recovery?
Yes, and select Custom Recovery from the "File" Menu, and select the New Recovery's .img file. Also, as far as possible, use an older version of Unrevoked to maximize compatibility, like 3.14
I know to use one of the earlier versions thanks to your help here
I really appriciate all your help, now I know how to root, flash new roms and radios and use adb (a little)
Just a follow up for anyone else with the same problem.
The solution in post 6 works and solves the problem. I don't know why nandroid creates separate md5 files and then wants all the md5's in one file when restoring.
You can actually manually do it, and maybe get that backup fixed. Go to the backup folder /sdcard/clockworkmod/backup/*rom name (date and time usually)/
See if there is a nandroid.md5 file in there. If so, delete it, you can back it up if you want but it is busted so no point.
Next step to open adb shell or terminal emulator and type:
Code:
su
cd /sdcard/clockworkmod/backup/*rom name (date and time usually)/
md5sum *img > nandroid.md5
reboot recovery
Give it a bit of time, before you reboot into recovery, if I remember it takes it a little while to perform it. Maybe it will sort your problem though
It really works
feeeeeeeeeeek
Hi, im trying to port Oxygen from U8800 to U8800-51, but before i flash the zip (with CWM for U8800pro) i have a question about the cust_backup
I have a backup of cust_backup/image/* , what that means, if my port doesnt work, can i copy all the files back to cust_backup/image/ and everything is gonna be like before the flash?
i've created a nandroid backup too with CWM (but i think it might not be usable due to the recovery (designed for U8800pro).
Hope someone can help me to clarify this question.
Thanks in advance and sorry for my english (im from Chile, and my born language is Spanish).
Best regards!
Unless the pro model have some difference from the normal, yes you can(if you can boot to bootloader pink mode)
But if you prepare to flash a custom rom, this means that you' ll replace system, and maybe boot.img. So probably you will not need to use the cust_backup image. If rom doesn' t boot you can go to recovery end restore the nanroid backup.
A backup of that folder is a good thing though.
This backup is b130 stock, once i get update to work i will post stock b140 and b150
The backup contians system,recovery and boot data is empty like a factory restore. I made a debloated backup with root in my other thread its also b130 https://forum.xda-developers.com/android/development/-t3546850
Here is the stock backup you will find guide below which will tell you how to restore it.. You need to download the backup first to proceed https://drive.google.com/file/d/0Bx88t3CJrNjoSkYwZUlHTmEzMW8/view?usp=sharing b1.30
if you do not want to mess with cust skip to step 5
how to backup and restore cust partition
1.load twrp recovery on you phone. then goto your adb folder and hold shift then right click, there will be an option says open command window here click on that, once you have the command window open type adb shell and press enter, then type su
once u have root or aka su, copy and paste this command unless u wanna type itdd if=/dev/block/mmcblk0p23 of=/sdcard/cust.img
2. once the first steps are done now u can pull the cust partition to ur phone by using command adb pull /sdcard/cust.img it will send the backup to ur adb directory.
3. you can verify that it pulled the backup image by going to adb directory where u launched command window from.
4.to restore a stock cust partition links and guide down below flashable in twrp.
5.after the file is downloaded and you have extracted files proceed to next step.
6. goto TWRP\BACKUPS\serial\ replace with your serial number then proceed.
7. once you have done that u can copy to sdcard use usb cord to copy the files over, or wireless what ever method u choose
8. if you are not in twrp recovery yet, boot to twrp now so u can flash the backup. if you did everything right when u goto restore the backup should be listed.
9. now you can restore the back
ps im not responsible if u mess things up or brick you phone do at your own risk.
be nice if someone fixes twrp and ads the ability to backup and restore cust and other partitions.
Im going to try port twrp 6 i think it is first time so may be awhile. if someone else releases a fixed version then were good to go
This is Complete stock cust none modified for b130, if you modified you cust partition by deleting files. k heres flashable twrp with mirror clsA https://www.androidfilehost.com/?fid=745425885120705728and heres a mirror if first link dont work
https://drive.google.com/open?id=0Bx88t3CJrNjoaFNqTE5rbEZuc1E
1. open twrp recovery make sure the flashable zip is on sdcard.
2. click install select the file you put on sdcard swipe let it finish and you are done
Please feel free to ask question if u need help also hit the thanks button if this guide was helpful thank you.
md5 A522D2F7274E4FF0FCCB6CACA8DD4827 use http://onlinemd5.com/ to check the stock.rar
another stock backup hopefully the super su folder is gone https://drive.google.com/open?id=0Bx88t3CJrNjoSVU4SkhlY0x1aVk
I'm sure this will help out some people, you are a good person!
dabadguycr said:
I'm sure this will help out some people, you are a good person!
Click to expand...
Click to collapse
ty
please reupload file, i need the backup
madvane20 said:
I was so happy when I saw you posted this, but the link is broken. Please repost I screwed up installing xposed and now my phone says I have no os installed
Click to expand...
Click to collapse
aedelman24 said:
madvane20 said:
I was so happy when I saw you posted this, but the link is broken. Please repost I screwed up installing xposed and now my phone says I have no os installed
Click to expand...
Click to collapse
k i will let me check google must of glitched my link but its fixed
Click to expand...
Click to collapse
madvane20 said:
aedelman24 said:
k i will let me check google must of glitched my link but its fixed
Click to expand...
Click to collapse
I restored my device using your backup, you made it come back to LIFE!!! Thank you so much, remember guys, DOUBLE CHECK YOUR BACKUP, it can be corrupt always check!
Click to expand...
Click to collapse
aedelman24 said:
madvane20 said:
I restored my device using your backup, you made it come back to LIFE!!! Thank you so much, remember guys, DOUBLE CHECK YOUR BACKUP, it can be corrupt always check!
Click to expand...
Click to collapse
you are welcome make sure to hit the thanks button ty
Click to expand...
Click to collapse
aedelman24 said:
madvane20 said:
I restored my device using your backup, you made it come back to LIFE!!! Thank you so much, remember guys, DOUBLE CHECK YOUR BACKUP, it can be corrupt always check!
Click to expand...
Click to collapse
well even they have corrupt ones my backup is here to save the day lol for those who like to donate if my posts help them i have the donate setup if you want too i dont expect anyone to its optional
Click to expand...
Click to collapse
also post if it works for ya and hit that thanks button
madvane20 said:
restore through twrp its complete stock boot, recovery,system
1 You need to rename a folder which is located here twrp\backups\serial here\ then put on sdcard or upload to phone.
2 restore backup all partitions for full stock or just everything but recovery. I used winrar to compress the back. stock backup https://drive.google.com/file/d/0Bx88t3CJrNjoSkYwZUlHTmEzMW8/view?usp=sharing
Click to expand...
Click to collapse
Great job, @madvane20! Just a suggestion to put the version number in the file name e.g. B130, B140, etc. to help keep it organized, as new versions are released.
Does this stock have all stock partitions including modem, etc?
---------- Post added at 04:42 AM ---------- Previous post was at 04:33 AM ----------
madvane20 said:
also post if it works for ya and hit that thanks button
Click to expand...
Click to collapse
FYI, the rar file has any error when opening it. Can you verify/test it for CRC/checksum and then repost? Thanks!
Does your stock recovery have Cust?
madvane20 said:
restore through twrp its complete stock boot, recovery,system
1 You need to rename a folder which is located here twrp\backups\serial here\ then put on sdcard or upload to phone.
2 restore backup all partitions for full stock or just everything but recovery. I used winrar to compress the back. stock backup https://drive.google.com/file/d/0Bx88t3CJrNjoSkYwZUlHTmEzMW8/view?usp=sharing b1.30
Click to expand...
Click to collapse
dabadguycr said:
Does your stock recovery have Cust?
Click to expand...
Click to collapse
should be all stock recovery and all was my original stock backup only thing different is the formated data partition but that just makes it stock as if u did a factory recovery. it has all stock bloat apps if thats what ur asking bout cust@jilebi if it has errors u might of got corrupt download. someone else posted it fixed their device. for those it worked for please post to let people know that it worked how long it might of took etc. and if u took any extra steps i didnt mention. might of misread or not understood what u were saying bout the crc . thought u were saying it had crc errors when extracting. i will see about get a crc value
If it's a TWRP recovery made using the one and only XT TWRP version we have, it doesn't have the cust partition backup because TWRP doesn't have the option to backup that partition .
dabadguycr said:
Does your stock recovery have Cust?
Click to expand...
Click to collapse
hmm well i dunno if i modded mine or not but i can dump the partiton as a img that can flashed with fastboot while i learn to compile the twrp for out phone or add support for that cust folder. we need someone who only has twrp and rooted to dump there cust partition in adb shell at least for now im not sure if i removed stuff from mine or not i thought it was restored with the system. does it not restore the files deleted in cust partition with my backup if not well yea til we can get someone to dump that partition or do a complete os dump with all partitions i guess it wont be 100% stock but as close as we can get. i didnt think of dumping all partitions til one person who asked for system etc cause i thought twrp was gonna get them all in the backup
madvane20,
How could a backup without the cust partition restore anything to that partition? It's just not possible .
divineBliss said:
madvane20,
How could a backup without the cust partition restore anything to that partition? It's just not possible .
Click to expand...
Click to collapse
if it was in system partition bout mounted virtually as a partition something to that aspect
Nope, cust is a real physical partition.
madvane20 said:
if it was in system partition bout mounted virtually as a partition something to that aspect
Click to expand...
Click to collapse
divineBliss said:
Nope, cust is a real physical partition.
Click to expand...
Click to collapse
i was stating in general im gonna see if i cant add the ability to allow backup of cust in twrp and have someone who hasnt modified it to dump it for us
madvane20 said:
i was stating in general im gonna see if i cant add the ability to allow backup of cust in twrp and have someone who hasnt modified it to dump it for us
Click to expand...
Click to collapse
Good idea, @madvane20! Do you have access to the source code of TWRP for Acend XT, for you to change it to take backup of cust and other partitions?
jilebi said:
Good idea, @madvane20! Do you have access to the source code of TWRP for Acend XT, for you to change it to take backup of cust and other partitions?
Click to expand...
Click to collapse
no however im gonna see if i cant compile twrp 6 if i can