Go Back   Android Forums > Android Phones > HTC One S > One S - All Things Root
Gamers - Check out our new sister sites!
Nintendo Wii U!    |    OUYA - $99 Android System!

Like Tree1Likes
  • 1 Post By agentc13

test: Reply
 
LinkBack Thread Tools
Old September 4th, 2012, 04:38 PM   #1 (permalink)
New Member
Thread Author (OP)
 
Join Date: Sep 2012
Posts: 3
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default stock recovery partition/image backup

Hi Guys,

I'm in the process of rooting my One S and need to load a custom recovery image, before I do, I'd like to backup my stock recovery partition.

I've searched high and low and it appears it isn't possible, but I wanted to check with you guys first.

The only hope I've seen is this post: Can you back up a stock ROM without installing ClockworkMOD

Scary Alien refers to using "fastboot boot" with the CWM image. Something doesn't feel right, so has anyone tried this?

Thanks,



FlangeMonkey is offline  
Reply With Quote
Sponsors
Old September 4th, 2012, 06:25 PM   #2 (permalink)
Daleks Über Alles
 
agentc13's Avatar
 
Join Date: Aug 2011
Location: Skaro
Posts: 7,622
 
Device(s): HTC One S (CM10), Kindle Fire (CM10-SGT7)
Carrier: T-Mobile USA

Thanks: 3,844
Thanked 5,036 Times in 2,659 Posts
Default

Yeah, you can boot the recovery.img from your computer and I think you can back it up that way. The nandroid doesn't back up the recovery though (at least not usually) so it won't be any different than backing up after flashing the recovery.

I'd also recommend TWRP2 instead of ClockworkMod.
__________________

Site Rules & Guidelines / Staff List / Ask the Staff
See something against the rules? Use:
agentc13 is online now  
Reply With Quote
Old September 4th, 2012, 06:44 PM   #3 (permalink)
Daleks Über Alles
 
agentc13's Avatar
 
Join Date: Aug 2011
Location: Skaro
Posts: 7,622
 
Device(s): HTC One S (CM10), Kindle Fire (CM10-SGT7)
Carrier: T-Mobile USA

Thanks: 3,844
Thanked 5,036 Times in 2,659 Posts
Default

You need to unlock your bootloader (see this post:How to Unlock the Bootloader, install recovery, and Root your HTC One S), and follow most of the steps to flash the recovery, but instead of flashing the recovery.img after unlocking you would type in the following command:
Code:
fastboot boot recovery openrecovery-twrp-2.2.1-ville.img
with the last part being the name of the recovery.img you are using (I used the one from the guide).



agentc13 is online now  
Reply With Quote
Old September 4th, 2012, 07:40 PM   #4 (permalink)
New Member
Thread Author (OP)
 
Join Date: Sep 2012
Posts: 3
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by agentc13 View Post
You need to unlock your bootloader (see this post:How to Unlock the Bootloader, install recovery, and Root your HTC One S), and follow most of the steps to flash the recovery, but instead of flashing the recovery.img after unlocking you would type in the following command:
Code:
fastboot boot recovery openrecovery-twrp-2.2.1-ville.img
with the last part being the name of the recovery.img you are using (I used the one from the guide).



Thank you very much. So just to clarify (I should read you posted guide first) the boot syntax doesn't flash or modify anything and the backup option within the custom recovery image won't backup the recovery partition on the device? Once I'm root, I'll then be able to back this up and then flash a permanent custom recovery.

Secondly I'll use twrp as you've recommended it, however out of curiosity why would you recommend twrp over CWM?

Thanks again.
FlangeMonkey is offline  
Last edited by FlangeMonkey; September 4th, 2012 at 07:45 PM.
Reply With Quote
Old September 4th, 2012, 09:28 PM   #5 (permalink)
Daleks Über Alles
 
agentc13's Avatar
 
Join Date: Aug 2011
Location: Skaro
Posts: 7,622
 
Device(s): HTC One S (CM10), Kindle Fire (CM10-SGT7)
Carrier: T-Mobile USA

Thanks: 3,844
Thanked 5,036 Times in 2,659 Posts
Default

Quote:
Originally Posted by FlangeMonkey View Post
Thank you very much. So just to clarify (I should read you posted guide first) the boot syntax doesn't flash or modify anything and the backup option within the custom recovery image won't backup the recovery partition on the device? Once I'm root, I'll then be able to back this up and then flash a permanent custom recovery.

Secondly I'll use twrp as you've recommended it, however out of curiosity why would you recommend twrp over CWM?

Thanks again.
Using "fastboot boot recovery recovery.img" won't flash flash or modify the recovery image onto your device, it will just allow you to boot too the one on your computer using your device.

The nandroid backups made from the recovery usually do not include the recovery.img itself. No use in backing it up as it usually stays the same. I think you can enable that option within TWRP, but I have never messed with it personally. You would also have to make sure to check it off to restore it from the backup in the future.

I recommend TWRP over CWM because with TWRP (and hboot <1.13) you can flash boot.img (and flashable radios as well) through recovery instead of having to use fastboot every time. Also, it has more support from the developers.
FlangeMonkey likes this.
agentc13 is online now  
Reply With Quote
Old September 5th, 2012, 07:18 AM   #6 (permalink)
New Member
Thread Author (OP)
 
Join Date: Sep 2012
Posts: 3
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

Yay,

That worked a treat. I'm on the stock recovery and I'm root, so I can now back this up using flash_dump or dd. I use a mac and fastboot was giving me a BSOD on my virtual desktop using vmware so I reverted to the mac flavor of fastboot. I used the following:

./fastboot-mac boot image.img
keep holding down the VOL up or down while it boots

Interestingly it set the tampered flag as soon as I ran it. From the research I've done the RUU well revert this and it seems that the RUU will also load on the stock recovery image. I will be unrooting for testing, can someone confirm this assumption with RUU?

Thanks,
FlangeMonkey is offline  
Reply With Quote
Old September 5th, 2012, 08:26 AM   #7 (permalink)
Daleks Über Alles
 
agentc13's Avatar
 
Join Date: Aug 2011
Location: Skaro
Posts: 7,622
 
Device(s): HTC One S (CM10), Kindle Fire (CM10-SGT7)
Carrier: T-Mobile USA

Thanks: 3,844
Thanked 5,036 Times in 2,659 Posts
Default

Running a RUU will remove the "Tampered" and will change "Unlocked" to "Relocked". It will restore everything to stock, and possibly change the hboot version depending on what you currently have and what RUU you run.
agentc13 is online now  
Reply With Quote
Old November 8th, 2012, 11:16 PM   #8 (permalink)
New Member
 
Droid_4sure's Avatar
 
Join Date: Nov 2012
Posts: 10
 
Device(s):
Carrier: Not Provided

Thanks: 3
Thanked 6 Times in 2 Posts
Default

NV
Droid_4sure is offline  
Last edited by Droid_4sure; November 8th, 2012 at 11:19 PM. Reason: wrong thread
Reply With Quote
Reply


Go Back   Android Forums > Android Phones > HTC One S > One S - All Things Root
Thread Tools

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
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 10:06 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.