Jump to content


Photo

Data-safe Disaster Recovery

- - - - -

  • Please log in to reply
4 replies to this topic

#1
Rusty!

Rusty!

    Diehard

  • Members
  • PipPipPipPip
  • 413 posts
  • Gender:Male
  • Location:Pompey
  • Devices:Nexus 5 16GB
  • Twitter:@RussUnderhill
OK so on Sunday whilst pissing about, I flashed a broken recovery to my phone. This resulted in a near brick, the phone wouldn't boot at all, and wouldn't even enter Smartflash. I didn't have a recent backup, so needless to say I was pissed.

However, this presented me with a challenge, could I recover my phone without losing anything? Turns out the answer was yes :D

I was able to NVFlash (battery out, hold both vol keys and plug in USB) over a good recovery, and the phone booted straight to it, from there I restored the old boot.img that I had, rebooted and held my breath.

Success! OK, so wifi didn't work due to the old kernel, but whatever, quick CM reflash fixed that (in hindsight, I could probably have just done that straight away anyway).

I created a little batch menu system to handle the command and let you pick from an internal or external recovery (depending on what you normally use) and a couple scripts for Linux users. Hopefully anyone that has bust their phone to the point of NVFlashing will be able to do this instead and keep all their stuff :)

http://www.mediafire...recovery-v5.rar

Edited by Rusty!, 14 October 2011 - 08:11 AM.

  • 1

#2
BatfinkUK1

BatfinkUK1

    Newbie

  • Members
  • Pip
  • 27 posts
  • Gender:Male
  • Devices:Samsung Galaxy S2
Thanks Rusty. Posted Image

  • 0

#3
Anil K Solanki

Anil K Solanki

    Addict

  • Members
  • PipPipPipPipPip
  • 628 posts
  • Gender:Male
  • Location:Lugo, Italy
  • Devices:Galaxy NEXUS
  • Twitter:@aksolanki

OK so on Sunday whilst pissing about, I flashed a broken recovery to my phone. This resulted in a near brick, the phone wouldn't boot at all, and wouldn't even enter Smartflash. I didn't have a recent backup, so needless to say I was pissed.

Hi Russ, thanks for the mini guide. Could you clarify what you meant by a broken recovery? I have fairly good idea what you mean, I just want to be certain, because you build recoveries, and you flashing something that's broken, is, surprising. We're all human after all.

Anil.

  • 0
Galaxy NEXUS with a side of Jelly Bean.

#4
Rusty!

Rusty!

    Diehard

  • Members
  • PipPipPipPip
  • 413 posts
  • Gender:Male
  • Location:Pompey
  • Devices:Nexus 5 16GB
  • Twitter:@RussUnderhill
I made a change to the init.rc in the ramdisk*, nothing to do with a 'normal' build. It was an experiment that didn't go too well :D

*Split the recovery image, edit ramdisk, re-combine.

Edit: I didn't expect that a corrupt/broken recovery would ruin (temporarily) the phone. I thought worst case scenario would be just dd the working one again. Oops. Still it's good that it happened as I learned this from it, which is quite useful.

Edited by Rusty!, 22 August 2011 - 09:40 PM.

  • 0

#5
Rusty!

Rusty!

    Diehard

  • Members
  • PipPipPipPip
  • 413 posts
  • Gender:Male
  • Location:Pompey
  • Devices:Nexus 5 16GB
  • Twitter:@RussUnderhill
Updated archive with CWM v5, older v4 based version can be found here: http://www.mediafire...recovery-v4.rar

  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users