Flashing Nandroid backups - HTC One X

Hi
Would it be possible for me to do the above without having to connect my phone to my laptop every time?
I know I have would have to load the boot.img first from a cmd window whenever i wanted to try a new rom, but was just wondering if I'd have to do that with it already on the internal sd card.
Any help would be appreciated.
Wiggo

Unless the backup you're restoring uses the same boot.img as the one you're using you will need to flash the one from your backup (using fastboot) when you restore it.
Recovery doesn't have permission to write to the boot partition; this means whether you're flashing a ROM or a backup from recovery the boot.img won't be written and you'll have to do it manually.

hopscotchjunkie said:
Unless the backup you're restoring uses the same boot.img as the one you're using you will need to flash the one from your backup (using fastboot) when you restore it.
Recovery doesn't have permission to write to the boot partition; this means whether you're flashing a ROM or a backup from recovery the boot.img won't be written and you'll have to do it manually.
Click to expand...
Click to collapse
That makes sense. Thanks very much for your help

Related

Cannot restoring backup through ClockWorkMod Recovery 3.0.2.6

Hi
I took and backup of my rom to try a new one but wanted to go back to the old one. When I try to restore the backup through ClockWorkMod Recovery, it restores the system but when restoring data and PDU, ClockWorkMod Recovery restarts.
When I get to my desktop, all my icons are there but the apps themselves are missing along with a lot of other stuff.
Any idea why this might be happening and what I can do to restore my backup??
Thanks
I could give you a solution, but whatever happens, its not my fault!! , because maybe CWM recovery did that for a reason.
But anyway...
Take the data.img file from your sdcard(in clockworkMod folder) and extract it (many programs out there that extract .img files, i use 'ext2explore')
Then make a flashable .zip file and flash it (make sure its signed, and has the right folder structure and updater-script code).
I've never dont this, but theoretically it should work.
Or, You could flash it via fastboot.
Place the same data.img in your SDK/tools folder, boot into fastboot & fire up your cmd window
Code:
fastboot flash data data.img
Again the same disclaimer applies, use at your own risk.
I'm having the same problem and I tried to flash data.img,
"fastboot flash userdata data.img" ,
But it said my back was too large.
I'm gonna try the ext2explorer and see if that works.
Sent from my Desire HD using XDA App
@Andyharney post: yea, you could do it that way!, i forgot all about that method
Thanks for your help.
You must be right. There must be something wrong with the backup and that's why it isn't restoring and dont wanna risk breaking anything more.
Again, thanks for helping.
ext2explorer says somthing about the masterblock not being found. Im not sure what to do, just gnna use the titanium backups frm a couple days back

[HELP] Can't install rom

Hi guys,
It seems I have no clue what I'm doing and am very desparate (almost threw phone out the window).
Right now I have CWM recovery but no zip on the card. The phone won't boot any further so I can't upload anything to the SD card. I used this guide as a tip from another forum member > http://forum.xda-developers.com/showthread.php?t=1975140&highlight=clockworkmod+recovery
But I do not understand the guide. It does not tell me how I should get a nandroid backup onto the phone, it merely tells me to put the backup on the sd card and use cwm to install it. It also constantly refers to .zip backup files while the nandroid comes in .rar and .tar. So I'm probably missing something, but i've been at it for hours and the more time I spend on this the more lost I get.
Can anybody tell me how I can install a rom through cwm without being able to boot into anything but cwm or flashboot? And if you would be so kind, please explain it to me step by step.. all the guides have thrown me into mazes I can't get out of...
Thanks alot!
Wisse
extreemwisse said:
Hi guys,
It seems I have no clue what I'm doing and am very desparate (almost threw phone out the window).
Right now I have CWM recovery but no zip on the card. The phone won't boot any further so I can't upload anything to the SD card. I used this guide as a tip from another forum member > http://forum.xda-developers.com/showthread.php?t=1975140&highlight=clockworkmod+recovery
But I do not understand the guide. It does not tell me how I should get a nandroid backup onto the phone, it merely tells me to put the backup on the sd card and use cwm to install it. It also constantly refers to .zip backup files while the nandroid comes in .rar and .tar. So I'm probably missing something, but i've been at it for hours and the more time I spend on this the more lost I get.
Can anybody tell me how I can install a rom through cwm without being able to boot into anything but cwm or flashboot? And if you would be so kind, please explain it to me step by step.. all the guides have thrown me into mazes I can't get out of...
Thanks alot!
Wisse
Click to expand...
Click to collapse
mate mount the sd card. there is an option in cwm to mount sd card.
then tranfer the rom.zip to the sd card
take boot.img from rom.zip and put it in fastboot folder.
now install the rom through cwm
boot into fastboot and flash the boot.img
erase cache
your phone should boot fine.
1. Download the latest official CWM recovery: http://forum.xda-developers.com/showthread.php?t=1594819 and extract it.
2. Connect your phone to your computer, hold the power+volume down button for 10 seconds. Go to fastboot. Open a cmd windows to the path where your recovery file is. Flash the recovery by typing "fastboot flash recovery <name of recovery file>"
3. Download the ROM you want to flash and extract the boot image from the RAR file. Also, place the ROM on the root of your SD card. Open up a cmd window where you extracted the boot image, and then flash it by typing "fastboot flash boot boot.img"
4. Hit hboot. And then hit recovery. You will now go to CWM.
5. Wipe data partition, wipe cache partition and go to advanced and wipe Dalvik cache.
6. Choose install zip from SD card, choose zip from SD card.
7. Choose the RAR file of the ROM.
8. When it flashes it, reboot system. And you're done
---------- Post added at 10:58 PM ---------- Previous post was at 10:51 PM ----------
I'm sorry bro, after you flash boot.img. Head to recovery > mounts and storage > mount USB > and then move the ROM to your SD card. And then flash the ROM.
Hi there,
Thanks alot!
Next issue; md5 mismatch.
Im following these steps to fix the issue:
type in teminal:
Code:
adb shell
# cd /sdcard/clockworkmod/backup/Name_of_the_nandbackup_folder
# rm nandroid.md5
# md5sum *img > nandroid.md5
But it doesnt work. The guidelines ( http://forum.xda-developers.com/showthread.php?t=1975140&highlight=clockworkmod+recovery ) state that I should remove nandroid.md5 but that doesn't exsist. When I do LS I see:
/sdcard/clockworkmod/backup/XDABackup # ls
Stock backup XDA HTC__E11 - Android 4.0.4 sense 4.1 - 2.17.401.2.rar
Stock backup XDA HTC__E11 - Android 4.0.4 sense 4.1 - 2.17.401.2.rar.checksum
I do see that rar checksum thingy, which I can't remove because there are spaces between the words in the filename. The shell tries to remove each individual word as if it were an individual file.
So is it me, or is the ''guide'' wrong? I'm desparate once again.. please help me
Thanks,
Wisse
faiz02 said:
mate mount the sd card. there is an option in cwm to mount sd card.
then tranfer the rom.zip to the sd card
take boot.img from rom.zip and put it in fastboot folder.
now install the rom through cwm
boot into fastboot and flash the boot.img
erase cache
your phone should boot fine.
Click to expand...
Click to collapse
Ok i'm alittle further,
When I remove the MD5 and create a new one, it keeps saying MD5 mismatch when I try to run the restore from cwm. Anyone have a clue why?
Thanks!
extreemwisse said:
Ok i'm alittle further,
When I remove the MD5 and create a new one, it keeps saying MD5 mismatch when I try to run the restore from cwm. Anyone have a clue why?
Thanks!
Click to expand...
Click to collapse
why are you restoring nandroid backup?
do you want to go back to stock?
why don't you just flash any ICS based rom or cm10/AOKP roms?
All you have to do is download the rom and flash..
and i am sorry i can't help with the nandroid error, I got no idea about it.. wait for some one else to answer.
Hi faiz02,
Thanks for your reply.
I need to revert to stock as it has another issue and requires warranty.
Thank you for your help, but I need to revert stock using nandroid
Cheers
faiz02 said:
why are you restoring nandroid backup?
do you want to go back to stock?
why don't you just flash any ICS based rom or cm10/AOKP roms?
All you have to do is download the rom and flash..
and i am sorry i can't help with the nandroid error, I got no idea about it.. wait for some one else to answer.
Click to expand...
Click to collapse
okay then try this link http://htcruu.com/?dir=Endeavor
search for your country specific ruu.
since you trying to restore the nandroid backup of 2.17.401.2
I see there is a ruu available with the same version. 2.17.401.2
download and run the ruu. It will automatically restore your phone to stock.
extreemwisse said:
Ok i'm alittle further,
When I remove the MD5 and create a new one, it keeps saying MD5 mismatch when I try to run the restore from cwm. Anyone have a clue why?
Thanks!
Click to expand...
Click to collapse
You've got spaces in the file name. Rename your backup to something sensible (i.e. without spaces) and it should work.

[Q] [Solved] Stuck at HTC One screen after flat battery

[Q] Stuck at HTC One screen after flat battery
Hey guys,
Today my phone went flat, so I put it on charge for a bit, now I can't get it past the htc one (o1/ne) screen.
I'm running the stock Jelly Bean rom, my Cid is HTC__044
I've unlocked bootloader and have the custom Clockwork mod recovery installed and the device is rooted.
I tried restoring from a backup, deleting cache, factory reset.
I think an appropriate RUU may help, but it's pretty much impossible to find one that is downloadable (the filefactory one wont let me due to too many downloads of that file, and one I found on a chinese forum (after signing up and having to reply to the thread) failed to download :/ )
when I run an old RUU it tells me that my version or whatever it is, is 3.14.707.24
I can get into recovery and fastboot easily.
Can someone please help?
I'm going on holiday on the 19th so I really hope I can fix this.
You can restore the matching nandroid backup from here
http://forum.xda-developers.com/showthread.php?t=1975140
You will have to do a full wipe ,but it will be working afterwards
Download the backup and put it in the clockworkmod folder of.the sdcard of the phone, copy the boot.img from the backup and flash it with fastboot commands, do a full wipe in recovery and restore the backup !
You can mount the sdcard in recovery as USB disk to copy the backup on to it !
MarcelHofs said:
You can restore the matching nandroid backup from here
http://forum.xda-developers.com/showthread.php?t=1975140
You will have to do a full wipe ,but it will be working afterwards
Download the backup and put it in the clockworkmod folder of.the sdcard of the phone, copy the boot.img from the backup and flash it with fastboot commands, do a full wipe in recovery and restore the backup !
You can mount the sdcard in recovery as USB disk to copy the backup on to it !
Click to expand...
Click to collapse
Thanks I adopted your methods and used it on my existing backup which finally got it to boot,
To recap:
flash boot.img from nandroid backup (fastboot)
restore backup from clockwork recovery
wipe data / factory reset
reboot.
Maybe Jelly Bean just isn't ready for my device? I'm a bit worried about it screwing up overseas, because I wont have a computer or much of an internet connection to solve the problem.
Thanks for your help!
No problem, good it's sorted !

Uh-oh ... brick HELP!

Hi guys,
Long time reader, and great help to be found I hope!
I just bought a Z1C, followed successfully the full DRM backup, full root process and bootloader unlocked, from the guide posted : http://forum.xda-developers.com/showthread.php?t=2642081
I took a full backup of DRM keys and Nandroid.
I then went to load the Resurrection Remix ROM. I booted in to PhilZ recovery and did a full wipe and factory reset - "Ready for ROM". This completed successfully.
I then realized I forgot to copy the Resurrection ROM files onto my external SD and cancelled/exit out of PhilZ Recovery.
Now when I power up, all I get is SONY logo. I assume this is because the phone has no operating system due to the ROM being wiped and nothing being installed in it's place.
I can confirm I can get into Fastboot mode (Blue LED, but connecting USB and holding UP volume button) but nothing else!!!
If anyone has any ideas, I would really really appreciate it!
thanks in advance!
... ok, so I found a quick fix, sorry for the alarm. I just used ADB to flashboot a version of CWM6 and made it boot into recovery, copied the Resurrection ROM onto my external SD with a card-reader (seperate) then installed the ROM ... hooray! Now I can sleep.
Thanks to anyone who started reading...
For future reference, just using fastboot to install a boot partition with a recovery on it is sufficient to fix these kinds of issues.
fastboot boot path/to/boot.img
or
fastboot flash boot path/to/boot.img
And for the record, with most recoveries you can mount your SDcard on your computer via USB, in CWM it is available in the mounts menu as "Mount USB storage"
Rekoil said:
For future reference, just using fastboot to install a boot partition with a recovery on it is sufficient to fix these kinds of issues.
fastboot boot path/to/boot.img
or
fastboot flash boot path/to/boot.img
And for the record, with most recoveries you can mount your SDcard on your computer via USB, in CWM it is available in the mounts menu as "Mount USB storage"
Click to expand...
Click to collapse
Thanks for the tips. I'm a bit new to this thing ... I assume your commands above will create a separate partition for booting, but how do I get to that recovery screen? ... and I assume boot.img is a recovery boot file? Renamed from CWM?
My issue above was I couldn't load up anything (Sony logo appears, and nothing else, couldn't proceed to recovery screen by pressing UP volume) ... I only could connect to my computer in flash mode for Flashtools to read, and had to start the whole "root my phone" process again.
I am playing around with the stock Sony UK ROM, but I am keen to flash Aura's AURom or maybe another one ... is there a way that I can basically create a "rollback point" so that if I don't like the new ROM I can re-instate what I am playing with now? I really don't want to have to go through the whole root process again if I semi-brick again! Just want to do an easy "undo" ...
Many thanks for putting up with the noob-ness.
boot.img is an image of the kernel. Note that this command is only for unlocked bootloader.
Seems you are using dualrecovery (which resides inside /system) and since you wiped /system you couldn't get into recovery anymore. If you have unlocked bootloader you should use a custom kernel. You can use the one of [NUT] (same functionality as dualrecovery) or the one from Doomlord.
I really don't want to have to go through the whole root process again
Click to expand...
Click to collapse
You do realize that the root process with unlocked bootloader is as followed:
1. Flash custom kernel
2. Go to recovery and flash SuperSU zip
zxz0O0 said:
You do realize that the root process with unlocked bootloader is as followed:
1. Flash custom kernel
2. Go to recovery and flash SuperSU zip
Click to expand...
Click to collapse
Exactly, and if you have saved your TA partition already, then you can always unlock the bootloader, root, and then relock bootloader by flashing your TA partition back.
Awesome, thanks guys for all the help. I will give the AURom a go and hopefully succeed this time.
One last question, what is contained in the TA backup, and what is in a Nandroid backup? From reading, TA is just a set of keys and Nandroid is a Rom backup?
TA backup is a backup of the Trim Area partition, inside of this partition there are DRM keys. Nandroid backup is a backup of various partitions (/system, /data/, etc.) but not TA partition.
zxz0O0 said:
TA backup is a backup of the Trim Area partition, inside of this partition there are DRM keys. Nandroid backup is a backup of various partitions (/system, /data/, etc.) but not TA partition.
Click to expand...
Click to collapse
Super thanks guys, much appreciated

Magisk - Stock backup doesn't exist - Help!

When i try to restore stock image via Magisk Uninstall button i get error :
Stock backup doesn't exist.
I can't remember what i did so this happened.
But, now i have vanilla boot.img. Is there any easy way to maybe copy-paste the file and restore image using the same way i described here. Thanks
underdoq said:
When i try to restore stock image via Magisk Uninstall button i get error :
Stock backup doesn't exist.
I can't remember what i did so this happened.
But, now i have vanilla boot.img. Is there any easy way to maybe copy-paste the file and restore image using the same way i described here. Thanks
Click to expand...
Click to collapse
Stock boot backup lives in /data but I don't know how to put a file there Magisk manager will use.
You can manually write the .img to the current boot partition using dd while the phone is running (literally the same thing Magisk manager does) or you can use fastboot to write it. That's probably a little more easy/safe if you aren't familiar with dd.
The start of this guide uses the fastboot process.
https://forum.xda-developers.com/mi-a2-lite/how-to/10-0-4-0-to-10-0-7-0-ota-keeping-magisk-t3916863/
I did it using fastboot, though i don't like the possibility of everything getting erased when used without holding vol-down button thing...
Thank you

Categories

Resources