Hey guys, just a quick question about restoring from a nandroid backup. Let's assuming I'm using custom rom A and made a nandroid backup of it. Then later on, I change to custom rom B and made another nandroid backup of that.
Well, assuming the boot.img from both custom rom A and B are different, then say if I were to restore back to custom rom A, I would have to re-flash the boot.img for that rom correct? OR, will restoring custom rom A from the nandroid backup also flash the boot.img for me automatically?
I came from other phones where flashing a new rom or from a nandroid backup is simply a one-step process. HTC One X is the first phone I've used where I have to deal with flashing the boot.img as an additional step as well, so just wanna confirm if this is the case for a nandroid restore as well.
chaoscreater said:
Hey guys, just a quick question about restoring from a nandroid backup. Let's assuming I'm using custom rom A and made a nandroid backup of it. Then later on, I change to custom rom B and made another nandroid backup of that.
Well, assuming the boot.img from both custom rom A and B are different, then say if I were to restore back to custom rom A, I would have to re-flash the boot.img for that rom correct? OR, will restoring custom rom A from the nandroid backup also flash the boot.img for me automatically?
I came from other phones where flashing a new rom or from a nandroid backup is simply a one-step process. HTC One X is the first phone I've used where I have to deal with flashing the boot.img as an additional step as well, so just wanna confirm if this is the case for a nandroid restore as well.
Click to expand...
Click to collapse
You have to flash the boot.img for the ROM you're restoring through fastboot. Recovery cannot flash boot.img for you since you need S-OFF, which impossible to achieve (let's not go there).
tomascus said:
You have to flash the boot.img for the ROM you're restoring through fastboot. Recovery cannot flash boot.img for you since you need S-OFF, which impossible to achieve (let's not go there).
Click to expand...
Click to collapse
yup got it. Thanks!
Related
Hey,
If you do a nandroid backup, then wipe, flash a new rom and a new boot.img, will the boot.img from the previous rom be restored if you do restore it? Or do you have to fastboot flash it again? If so, is the boot.img which is found in the backup folder the one to use?
Thanks
yeah i am wondering the same question. Actually I have a nandroid backup of the stock rom, and i flashed other roms before too. I tried nandroid restore and everything did go back to stock, but I am concerned whether I need to flash any boot.img? if the stock kernel is untouched while flashing other roms, does that mean i dont need to reflash the boot.img?
When flashing other roms the stock kernel is not changed. Unless you have an s-off device. If you did not fastboot flash boot boot.img then when you restore your back up you will be fine. If you did flash a new kernel then you will need to flash the boot.img for your backup as the backup will only restore the kernel on s-off devices.
Sent from my HTC One X using Tapatalk 2
Hello,
I'm coming from a HTC Desire, and when reading the guides how to install roms on the HOX, the neccesity to flash a separate boot.img for every rom via fastboot was new to me.
Is this always the case? And lets say I have a stable 4.0.4 installation and want to mess around with CM10 - I get that have to flash the CM10 boot.img before installing the ROM, but would I then also have to re-flash my old boot.img before rstoring my old nandroid backup, or is the boot image included in the backup?
Thanks aheasd for an answer,
saxelfur
i guess yes.. you have to re-flash the boot.img of the rom that you are restoring...
faiz02 said:
i guess yes.. you have to re-flash the boot.img of the rom that you are restoring...
Click to expand...
Click to collapse
Okay, thanks - so I suppose right now there is now way to restore a backup from a different rom on the go. Oh well, I should be able to live without that
saxelfur said:
Okay, thanks - so I suppose right now there is now way to restore a backup from a different rom on the go. Oh well, I should be able to live without that
Click to expand...
Click to collapse
You do not have to flash the boot.img before restoring a nandroid backup...Y
ou restore everything, boot.img included.
panooos said:
You do not have to flash the boot.img before restoring a nandroid backup...Y
ou restore everything, boot.img included.
Click to expand...
Click to collapse
Great, even better!
panooos said:
You do not have to flash the boot.img before restoring a nandroid backup...Y
ou restore everything, boot.img included.
Click to expand...
Click to collapse
Not true; if you're restoring a backup which used a different boot.img than the one you already have installed, you need to manually flash the boot.img from your nandroid backup in fastboot.
The reason we have to use fastboot to flash the boot.img is that, thanks to HTC's security policies, it is not possible to write to the boot partition from recovery. Hence when you flash a ROM the boot.img isnt written, and has to be manually flashed. This also means that when you restore a backup in recovery it is still unable to write to the boot partition, so the boot.img from your backup is not written and must also be flashed manually.
hopscotchjunkie said:
Not true; if you're restoring a backup which used a different boot.img than the one you already have installed, you need to manually flash the boot.img from your nandroid backup in fastboot.
The reason we have to use fastboot to flash the boot.img is that, thanks to HTC's security policies, it is not possible to write to the boot partition from recovery. Hence when you flash a ROM the boot.img isnt written, and has to be manually flashed. This also means that when you restore a backup in recovery it is still unable to write to the boot partition, so the boot.img from your backup is not written and must also be flashed manually.
Click to expand...
Click to collapse
Really? I once flashed a kernel and could not pass the loading screen...everything got fixed as soon as i restored my backup...
Lucky for you. But these guys are correct. The only way to flash boot is through fastboot.
Recovery restore cannot restore a boot.img
Sent from my HTC One X using xda app-developers app
panooos said:
Really? I once flashed a kernel and could not pass the loading screen...everything got fixed as soon as i restored my backup...
Click to expand...
Click to collapse
Yep. Boot partition simply isn't writable from recovery (without s-off). There's no difference between recovery trying to write a boot.img from a zip on /sdcard and recovery trying to write a boot.img from a folder on /sdcard (if there was we would just need to modify recovery to treat new flashes as restores to get around the problem).
I'm not saying it won't work if you don't; if you're switching between Sense ROMs or restoring an earlier version of the ROM you're using then there's a good chance that the ROM will still boot and run fine, but you'll be running with the kernel & ramdisk you had before the restore.
Always learning sth new... Ty
Sent from my HTC One X using xda app-developers app
Well shoot. How do I get the boot.img from the stock rom that came with it. It wasn't exactly in standard .zip format for me to extract the .img......
If you did a nandroid backup it's there in plain sight.
Hi all,
I have stock ics nandroid, I am going to reflash this so, i can install the offical JB on my HOX CID__001. My question though, do i just flash the nandroid from the custom recovery or will i also have to copy the boot.img to my pc and flash this also, or is this not needed when just restoring nandroid. Currently running Maximus JB, but want the offical JB for nandroid.
You need to flash boot.img also. Fild it at sdcard /clockworkmod/backups/backupname/boot.img
can we download that boot.img from internet or it already in the sd card. is it different ?
nkenny94 said:
can we download that boot.img from internet or it already in the sd card. is it different ?
Click to expand...
Click to collapse
If you look into the nandroid backup folder you see the boot.img in there, it belongs to the nandroid backup. So of you want to restore the nandroid you also have to flash that particular boot.img !
Hello,
This is probably a silly question but I was just wondering if I had to reflash the correct kernel when I restore a ROM. Let me give a scenario as I don't think I can find a decent way to word it.
Lets say I flashed PACman last week and that runs on Hellboy CM10 kernel but then I fancied a change so I did a Nandroid backup in CWM, flashed a Sense kernel (Like Titanium Kiss) then flashed a Sense ROM such as SuPrimo. If I decided to switch back to PACman would I have to flash the boot.img (Hellboy CM10 in this case) before hand or is the boot.img stored in the Nandroid backup?
I'm just curious.
Thank you,
Curtis.
Hello Curtis,
The boot.img is backed up in the nandroid backup.if you open the backup using winrar,you will be able to see it.
you will need to flash the Hellboy kernel again or Pacman will not boot.
If our device was s-off,there would be no need to flash the kernel as it would automatically flash it.
It(boot.img) is stored in the backup,but you must flash it.
U must flash boot.IMG while restoring pacman... that's what while restoring ROM first u should flash boot.IMG
Sent from my One V using Tapatalk 2
I just want to confirm this and it might be a foolish question... But if I'm using AOKP and I have a CM10.1 backup, can I do a restore to that backup and it will restore to that ROM as well? Or do I need to re-flash CM10.1 before restoring the backup?
Thanks, still figuring all this out!
The backup contains everything of the rom. Apps/contacts...you name it. Make sure when you are coming from another rom back to the backup to flash the boot.img from the backup !
Mr Hofs said:
The backup contains everything of the rom. Apps/contacts...you name it. Make sure when you are coming from another rom back to the backup to flash the boot.img from the backup !
Click to expand...
Click to collapse
Thanks for the quick answer! It actually looks like CWM automatically does the boot.img as well! At least for AOKP back to CM10.1...
Thanks again!
A nandroid backup contains all ! ,the recovery at the time of backing up. Even the boot.img. restoring a nandroid backup wont restore the boot img. It needs to be flashed manually