1. Download our Official Android App: Forums for Android!

[International / GSM] Recovery/Restore question

Discussion in 'Android Devices' started by darkcyber, Jan 3, 2012.

  1. darkcyber

    darkcyber Android Expert
    Thread Starter
    Rank:
    None
    Points:
    163
    Posts:
    1,608
    Joined:
    Nov 12, 2009

    Nov 12, 2009
    1,608
    151
    163
    Male
    North Alabama
    Just curious before I start flashing everything as to what is the route back to a good install if things go bad? Let me explain my question. Like on the Droid X, we could always do an sbf back to complete stock if we needed to. Since ClockworkRecovery hasn't been sticking and if things go bad, then how are we getting back to stock or restoring a nandroid image if we can't get into CWR?
     

    Advertisement

  2. scary alien

    scary alien not really so scary
    Moderator
    Rank:
     #8
    Points:
    2,138
    Posts:
    22,296
    Joined:
    Mar 5, 2010

    Mar 5, 2010
    22,296
    23,683
    2,138
    Male
    space alien ;)
    Indy
    Yes, a Nandroid backup of a good, known setup is your best safety net. Just make sure you've also got it backed-up somewhere externally to your phone just in case. If you run into issues, you should just be able to reboot back into ClockworkMod and restore that known good backup.

    You've also got the ability to flash everything completely back to stock if necessary, too.

    As far as ClockworkMod not "sticking", have you seen the following in this post?:

    http://androidforums.com/verizon-galaxy-nexus-all-things-root/474570-how-all-things-root-samsung-galaxy-nexus.html#post3736600

    Flashed custom recovery won't "stick"?

    Do this:

    - remount /system in read/write mode (use something like the Root Explorer app or ES File Explorer; both have root modes (check the app's settings) for remounting /system as writable)

    - rename the /system/recovery-from-boot.p to /system/recovery-from-boot.p-bak

    (note: you could delete it, but renaming is much safer since its easily reversible)

    - you could also do this manually in an adb shell or on-phone Terminal session:

    + mv /system/recovery-from-boot.p /system/recovery-from-boot.p-bak

    Cheers!
     
    darkcyber likes this.
  3. triplejnj

    triplejnj Member
    Rank:
    None
    Points:
    16
    Posts:
    33
    Joined:
    Nov 18, 2011

    Nov 18, 2011
    33
    9
    16
    Jersey Shore
  4. darkcyber

    darkcyber Android Expert
    Thread Starter
    Rank:
    None
    Points:
    163
    Posts:
    1,608
    Joined:
    Nov 12, 2009

    Nov 12, 2009
    1,608
    151
    163
    Male
    North Alabama
    Thanks for the information. Yes, I had looked through that thread before. So, IF you were ever to loose CWR sticking (for whatever reason), there is no way to hook up your Nexus and restore like we did doing the sbf on the Droid X?
     
  5. scary alien

    scary alien not really so scary
    Moderator
    Rank:
     #8
    Points:
    2,138
    Posts:
    22,296
    Joined:
    Mar 5, 2010

    Mar 5, 2010
    22,296
    23,683
    2,138
    Male
    space alien ;)
    Indy
    Well, you can always easily re-flash ClockworkMod or softboot it via the fastboot command to invoke it...you're only a PC (fastboot) command away from invoking CWM if you can't get into Android proper.

    Re-flashing (via fastboot) the stock Android images is akin to SBF'ing like for the DX:

    How to un-root (return to stock)

    Cheers!
     
    darkcyber likes this.
  6. darkcyber

    darkcyber Android Expert
    Thread Starter
    Rank:
    None
    Points:
    163
    Posts:
    1,608
    Joined:
    Nov 12, 2009

    Nov 12, 2009
    1,608
    151
    163
    Male
    North Alabama
    Ahhh, Ok. So, you can access the Nexus if it gets goofed up via computer using fastboot...ok.
     
  7. riverboat2001

    riverboat2001 Well-Known Member
    Rank:
    None
    Points:
    38
    Posts:
    157
    Joined:
    Apr 29, 2010

    Apr 29, 2010
    157
    10
    38
    UK
    Okay, all rooted now, and happy to stick with standard rom to begin with.

    When i tried to reboot into recovery, nothing was there (i have run the clockwork recovery flash)

    So i assume i'm having problems with the flash recovery not sticking.

    I've read this:


    - remount /system in read/write mode (use something like the Root Explorer app or ES File Explorer; both have root modes (check the app's settings) for remounting /system as writable)

    - rename the /system/recovery-from-boot.p to /system/recovery-from-boot.p-bak

    (note: you could delete it, but renaming is much safer since its easily reversible)

    - you could also do this manually in an adb shell or on-phone Terminal session:

    + mv /system/recovery-from-boot.p /system/recovery-from-boot.p-bak


    But i don't understand where i run this mv command , do i need a command prompt with phone connected.
     
  8. scary alien

    scary alien not really so scary
    Moderator
    Rank:
     #8
    Points:
    2,138
    Posts:
    22,296
    Joined:
    Mar 5, 2010

    Mar 5, 2010
    22,296
    23,683
    2,138
    Male
    space alien ;)
    Indy
    If you use an app like Root Explorer (costs) or ES File Manager (free), you can re-mount your /system partition in read/write mode (you have to do this in order to be able to rename or delete a file from that partition). That's probably the easiest way to do this.

    The other "mv " (move) command was for those that are comfortable with an "adb shell" (yes, connected to your PC via the USB cable) or directly on your phone via an on-phone terminal emulator (like Android Terminal Emulator).

    You'd still have to have re-mounted /system in read/write mode beforehand before doing this manually, so that's why we usually tell folks to use a rooted file manager like those listed above.

    If you use ES File Explorer, I can dig-up some notes for doing it via that app (I don't have Root Explorer myself).

    Cheers!
     
    riverboat2001 likes this.
  9. riverboat2001

    riverboat2001 Well-Known Member
    Rank:
    None
    Points:
    38
    Posts:
    157
    Joined:
    Apr 29, 2010

    Apr 29, 2010
    157
    10
    38
    UK
    Well, i've downloaded ES file explorer, but can't find the path to the files i need to change.
    I also can't see any option within ES File explorer to "re-mount your /system partition in read/write mode"

    Having used pc's since green screen days, i'm happy using DOS commands, but would rather learn how to use the ES file explorer program as it looks pretty neat (especially for free!)

    Found it!
    Just watched a video that showed me how to get to the system file, once i'd enabled read/write mode.
    Guess i should change that now i've done what needed to be done.
     
    scary alien likes this.
  10. scary alien

    scary alien not really so scary
    Moderator
    Rank:
     #8
    Points:
    2,138
    Posts:
    22,296
    Joined:
    Mar 5, 2010

    Mar 5, 2010
    22,296
    23,683
    2,138
    Male
    space alien ;)
    Indy
    Give me a minute to dig-up my notes in another thread...sorry, I got caught-up in something else that kept me from replying promptly to you.

    BRB :)
     
  11. scary alien

    scary alien not really so scary
    Moderator
    Rank:
     #8
    Points:
    2,138
    Posts:
    22,296
    Joined:
    Mar 5, 2010

    Mar 5, 2010
    22,296
    23,683
    2,138
    Male
    space alien ;)
    Indy
    Okay, sorry for the delay...

    I'll give you a few links for reference, then I'll sum it up since the might make more sense (but you'll have the other links just in case):

    http://androidforums.com/verizon-galaxy-nexus-all-things-root/477813-clockwork-mod.html#post3759674

    references three posts in this thread:

    http://androidforums.com/verizon-galaxy-nexus-all-things-root/472557-cwm-recovery-problem.html#post3723336
    http://androidforums.com/verizon-galaxy-nexus-all-things-root/472557-cwm-recovery-problem.html#post3724245
    http://androidforums.com/verizon-galaxy-nexus-all-things-root/472557-cwm-recovery-problem.html#post3725898

    But here's what I did:

    - download / install / launch ES File Explorer

    - press the menu icon (bottom right)

    - select Settings

    - select Home Directory

    - change your Home Directory to "/" (without the quotes, of course)

    - return to the Settings screen

    - scroll down to the bottom of the screen

    - check the "Root Explorer" box in the Root Settings area (you'll get the Superuser whitelist app's pop-up asking for permission for this app)

    - when you want to mount / and /system as writeable, check the "Mount File System" box under the "Root Explorer" checkbox

    - hit the back button to return to the file navigation

    - press the "Up" directory icon in the toolbar at the top of the screen--that should take you to the / (root) filesystem

    - from there, you should be able to navigate to the /system filesystem and look for the recovery-from-boot.p file

    Let me know if you have questions.

    Cheers!
     
Tags:

Share This Page

Loading...