1. Check out our companion app, Forums for Android! Download from Google Play

Root I think I lost recovery...

Discussion in 'Android Devices' started by ThorSkaagi, Aug 20, 2010.

  1. ThorSkaagi

    ThorSkaagi Well-Known Member
    Thread Starter
    38

    Mar 30, 2010
    215
    12
    38
    Denver, CO
    I was using the ClockWorkMod recovery, and I decided to try Amon's again. So I flashed it from ROM Manager. I tried to boot into recovery, but I get stuck on the three skateboarders. So I restarted my phone, re-flashed the ClockWorkMod recovery, booted into recovery, and I get the same thing.

    Amy suggestions? Am I screwed? Since I can use my phone just fine, maybe I can install a leak from HBOOT (1.49), then re-root?

    Thanks to anyone who can help.
     

    Advertisement

  2. scary alien

    scary alien not really so scary
    Moderator
    2,138

    Mar 5, 2010
    22,096
    23,154
    2,138
    Male
    space alien ;)
    Indy
    ThorSkaagi,

    This post just showed-up on XDA that might help you out (its so new I'm still reading through it, but I wanted to point you there):

    [HOW-TO] Safely Switch Back To Amon from Clockwork Recovery - xda-developers

    Hope this helps...
     
    ThorSkaagi likes this.
  3. ThorSkaagi

    ThorSkaagi Well-Known Member
    Thread Starter
    38

    Mar 30, 2010
    215
    12
    38
    Denver, CO
    Ok, thanks. I'll try it in a few.
     
  4. ThorSkaagi

    ThorSkaagi Well-Known Member
    Thread Starter
    38

    Mar 30, 2010
    215
    12
    38
    Denver, CO
    Wow, it actually worked!!! Thanks
     
  5. scary alien

    scary alien not really so scary
    Moderator
    2,138

    Mar 5, 2010
    22,096
    23,154
    2,138
    Male
    space alien ;)
    Indy
    Glad to hear it...there's also another recent thread where this problem (or similar to it) is also being discussed:

    http://androidforums.com/all-things...ete-clockwork-mod-replace-amons-recovery.html

    ...I don't think I saw the link I sent you mentioned...you might want to chime-in and let those guys know what you went through too to help them out.

    Cheers!
     
  6. my menace

    my menace Well-Known Member
    16

    Jul 13, 2010
    85
    2
    16
    I've got an HTC hero and I stumbled upon this thread while searching for this exact topic, I was used to Amon Ra's recovery and clockworck was causing some problems for me and just in general confusing me, I "flashed an alternate recovery" through rom manager and things reverted back to amon ra's recovery without a problem

    Just a head's up for anybody that might need the same info
     
  7. erisuser1

    erisuser1 Well-Known Member
    223

    Nov 11, 2009
    1,644
    759
    223
    ThorSkaagi (and anybody else, too!)

    It probably can't be repeated often enough - if problems develop of this nature, so long as you have been making regular Nandroid backups, you can always re-flash the phone with either the Leak-V3 ROM or the "Official" RUU, and then re-perform the rooting of the phone.

    Then, it's a simple matter of just restoring a Nand backup, and you are back in business.

    That should make it easy to sleep well at night, knowing that recovery is almost always possible - so long as you are regularly making Nand backups.


    [SIZE=+2]Nandroid Backups are a Good Thing![/SIZE]


    Don't WAIT until you are ready to swap ROMs to make a Nandroid Backup, especially if your current ROM is working well and you are happy with it - get in the habit of making Nandroid backups regularly.


    eu1
     
  8. pavirotten

    pavirotten Well-Known Member
    68

    Nov 28, 2009
    387
    11
    68
    Male
    Document Specialist
    OH
    Awesome, and welcomed, advice, EU1. As a guy that works around computers and peripherals all the time, I can't tell you how many times a good back up has saved my neck and a major headache (not to mention more than a few grey hairs) when things have gone bad.

    When I was in the business of fixing and replacing bad computers and stuff, I can't tell you how many times I heard someone wishing they had backed up their work before they had an issue. Now that I'm on the other end of the equation, an end-user, I make sure I back up almost to the point of it being a relly bad case of OCD.

    Everyone I know laughs at me, but when I have a problem, I don't sweat anything and just kick back and relax.
     
  9. St Veronus

    St Veronus Member
    6

    Jul 6, 2010
    5
    1
    6
    Can someone tell me what the dir structure is for the nandroid backup file? I copied the data folder (date+timestamp) from the sdcard. I then formated the sdcard and tried just copying the nandroid data folder back to the sdcard, but when I go to restore the backup from ClockworkMod Recovery, it can't find the data to restore.

    Thanks,
    St Veronus
     
  10. scary alien

    scary alien not really so scary
    Moderator
    2,138

    Mar 5, 2010
    22,096
    23,154
    2,138
    Male
    space alien ;)
    Indy
    I would assume (perhaps incorrectly?) that ClockworkMod uses the same Nandroid backup that Amon_RA does. If so, the files are kept in the /sdcard under the "nandroid" directory like so:

    Code (Text):
    1.  
    2. [COLOR=blue]/sdcard/nandroid/NNNNNNNN/BDS-ccyymmdd-hhmm[/COLOR]
    3.  
    4. where [COLOR=blue]NNNNNNNN[/COLOR] is the serial number or unique ID of your phone
    5.                         (don't publish that here)
    6.  
    7. The files contained in each backup directory are comprised of:
    8.  
    9. [COLOR=blue]  boot.img[/COLOR]
    10. [COLOR=blue]  data.img[/COLOR]
    11. [COLOR=blue]  nandroid.md5[/COLOR]
    12. [COLOR=blue]  system.img[/COLOR]
    13.  
    Hope that helps. Cheers!
     
  11. St Veronus

    St Veronus Member
    6

    Jul 6, 2010
    5
    1
    6
    Thanks, that does help, but it still says couldn't open directory. I did change the NNNNNNNN to my serial number, but mine is 12 characters long and both letters and numbers. Should I take like the last 8 or first 8 characters?
     
  12. erisuser1

    erisuser1 Well-Known Member
    223

    Nov 11, 2009
    1,644
    759
    223
    If you make a Nandroid backup - of anything, including complete trash - it will create the folder for you. Then you won't need to guess!

    Then move your BDS-YYYYMMDD-HHMM folder into that /sdcard/HT??????? folder, and you will be ready to roll.

    eu1
     
  13. scary alien

    scary alien not really so scary
    Moderator
    2,138

    Mar 5, 2010
    22,096
    23,154
    2,138
    Male
    space alien ;)
    Indy
    St Veronus,

    FYI, I didn't mean to imply that 'NNNNNNNN' was only/always eight characters long...I just didn't want to publish my serial # / unique ID...and so I replaced my number with that string for illustrative purposes. Sorry for the confusion.

    edit: I did a quick search of these threads and found some actual examples of folks that published their Nandroid backup path :)eek:) and the first one was twelve characters long and began with "HTC".
     
  14. varkie

    varkie Well-Known Member
    43

    Feb 18, 2010
    327
    43
    43
    Michigan
    Clockwork Mod Recovery keeps its backups in a file called clockworkmod on the sdcard. This is if you did the backups through ROM Manager. I believe if you use the nandroid backup through the recovery console then it creates a file on the sdcard called nandroid, just as it would with Amons. If you are doing a nandroid restore from the recovery console you have to go into Advanced Restore for it to see the files in the clockworkmod folder on the sdcard.
     
    scary alien likes this.
  15. scary alien

    scary alien not really so scary
    Moderator
    2,138

    Mar 5, 2010
    22,096
    23,154
    2,138
    Male
    space alien ;)
    Indy
    Great info and followup, varkie. Thank you very much! :)
     
  16. varkie

    varkie Well-Known Member
    43

    Feb 18, 2010
    327
    43
    43
    Michigan
    Thanks. I just tried a nandroid backup using the console and it doesn't create a nandroid folder. It still puts it into the clockworkmod folder. You still have to use Advanced Recovery to see them.
     
  17. erisuser1

    erisuser1 Well-Known Member
    223

    Nov 11, 2009
    1,644
    759
    223
    I guess the version of "Nandroid" that koush uses with his Clockwork must be slightly different than the one in Amon_RA. (I haven't used Clockwork, so I am unfamiliar with it).

    Nevertheless, if the structure of the Nandroid backups is the same in both Amon_RA and Clockwork (boot.img, system.img, data.img, and nandroid.md5 files), I suppose the same hack might work if you move the files to the appropriate sub-folder of the Clockwork area on the SD.

    Varkie - what is the exact folder name used in Clockwork? I think that is what the Saint is after - he needs to put his (PC) backup of his Nandroid backup into the correct location for Clockwork to see it.
     
  18. St Veronus

    St Veronus Member
    6

    Jul 6, 2010
    5
    1
    6
    Thanks for all the help! I was able to get it to boot and dl Rom Manager again. I then did a backup and it created this path...

    /sdcard/clockworkmod/backup/YYYY-MM-DD-HH.MM.SS

    That then contained the files:
    .android_secure.img
    boot.img
    cache.img
    data.img
    nandroid.md5
    recovery.img
    system.img

    Thanks again!

    St Veronus
     
    erisuser1 likes this.
  19. erisuser1

    erisuser1 Well-Known Member
    223

    Nov 11, 2009
    1,644
    759
    223
    Very interesting.

    The version of Nandroid (specifically, the script /sbin/nandroid-mobile.sh) in Amon_RA neither makes images of the recovery partition nor restores them (it is capable of doing so, but it is explicitly suppressed with a command line option).

    I wonder if that explains why a few folks using Clockwork/ROM Manager occasionally got into trouble.

    Don't know - just speculating.
     
  20. varkie

    varkie Well-Known Member
    43

    Feb 18, 2010
    327
    43
    43
    Michigan
    I think you're right. T2noob was one of those people and I haven't seen him around in along time. But I think I remember him saying it had something to do with recovery image file. Most of the problems seem to have been from an older version of Clockwork. Koush has updated it about 3 times since a couple guys phones last Spring claimed it bricked their phones. I have no reason to doubt them but I've never had a problem with it in the 6 months I've used it. The most recent post I've seen with anyone having a problem with it bricking a phone was because the guy flashed a Hero ROM onto his Eris which you really can't blame on Clockwork then can you.
     
  21. ThorSkaagi

    ThorSkaagi Well-Known Member
    Thread Starter
    38

    Mar 30, 2010
    215
    12
    38
    Denver, CO
    I really hate the fact that ClockWorkMod's and Amon's bckups aren't compatible with each other...
     
  22. scary alien

    scary alien not really so scary
    Moderator
    2,138

    Mar 5, 2010
    22,096
    23,154
    2,138
    Male
    space alien ;)
    Indy
    Actually, I think you could make an "Amon_RA Nandroid backup" out of a "ClockworkMod Nandroid Backup" since the ClockworkMod fileset is a super-set of the Amon_RA version.

    I think all you'd have to do would be to repackage the files into the "BDS-ccyymmdd-hhmm" directory format, place the boot.img, data.img, system.img, and probably edit the nandroid.md5 file so that it only includes the MD5 sums for the above files (like the Amon_RA Nandroid backup does).

    I don't know for sure that the nandroid.md5 for the ClockworkMod version looks just like the Amon_RA version, but I'll bet they are the same...(didn't eu1 say that the ClockworkMod just invokes the nandroid-mobile.sh script with different switches which causes these file differences?).

    Anyway, I'll also bet that eu1 has something interesting to say about this...;)

    Cheers!
     
  23. Podivin

    Podivin Well-Known Member
    213

    Nov 29, 2009
    3,679
    881
    213
    Jacksonville, Fl
    Oh, is that all we'd have to do? Scary, you make it sound so easy... :)
     

Share This Page

Loading...