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

Root How to format /data if you have CWM recovery installed

Discussion in 'Android Devices' started by Neph81, Mar 10, 2012.

  1. Neph81

    Neph81 Android Expert
    Thread Starter
    Rank:
    None
    Points:
    213
    Posts:
    1,401
    Joined:
    Mar 3, 2012

    Mar 3, 2012
    1,401
    823
    213
    Male
    Wisconsin
    EDIT:

    This is now out of date. Please use the new Recovery based off of Koush's Official Nitro Release.


    http://androidforums.com/spectrum-all-things-root/513801-cwm-touch-recovery-lg-spectrum.html


    Ok, well, it seems that people read the part about our recovery not having a proper format command for /data, but not many read the part about there being a work around. Below is the original link and instructions specific to our phone.

    xda-developers - View Single Post - [ROM] DOMINATION HD | 2.3.5 | Quick & Amazing | NitroHD *NEW

    Now because our phone has different partition layouts, here is the corrected instructions.

    1. Use titanium back up to backup all the apps you have (hopefully you did this when you first rooted with the stock apps).

    2. boot into CWM

    3. Unmount /data in Mounts and Storage (if its mounted)

    4. Connect your phone to your computer (while still in CWM under mounts and storage)

    5. Run "adb shell" from the command line. (If you haven't done adb before, google it. You have to download all or part of the google sdk and set it up on your computer).

    6. Run the two commands below, one at a time. Wait for the first command to finish before running the second.

    /sbin/mke2fs -t ext4 -b 4096 /dev/block/mmcblk0p28

    /sbin/e2fsck -y /dev/block/mmcblk0p28



    7. In CWM, do a "wipe cache partition" and "advanced > wipe dalvik cache"

    8. Reboot your system in CWM. (It takes a little while).

    After you get back, you'll have to set everything up again. You can then use titanium backup to restore user apps.
     

    Advertisement

  2. brianmaedche

    brianmaedche Well-Known Member
    Rank:
    None
    Points:
    68
    Posts:
    230
    Joined:
    Jan 7, 2011

    Jan 7, 2011
    230
    119
    68
    Building Maintenanc
    Missoula, MT
    Okay so what exactly does this do to my phone or what does it allow it to do?
     
  3. Neph81

    Neph81 Android Expert
    Thread Starter
    Rank:
    None
    Points:
    213
    Posts:
    1,401
    Joined:
    Mar 3, 2012

    Mar 3, 2012
    1,401
    823
    213
    Male
    Wisconsin
    In order to flash a custom rom or to recover from a boot loop due to freezing the wrong program, you need to erase /data. Because the current port of CWM corrupts /data if you format it, you need the two commands in bold to perform the task.

    As of today thou, an official CWM recovery has been released for the Nitro. I'm working on getting it ported over as they have fixed the issue with format corrupting /data. I can get it to load, but nothing shows up on screen. Being as this new version is a touch recovery, that's sorta important.
     
  4. MrB206

    MrB206 Android Expert
    Rank:
    None
    Points:
    163
    Posts:
    1,879
    Joined:
    Mar 4, 2012

    It's a shame no one has a Nitro repo public... that phone is most like ours and would make deving cm7 A LOT easier.
     
  5. Neph81

    Neph81 Android Expert
    Thread Starter
    Rank:
    None
    Points:
    213
    Posts:
    1,401
    Joined:
    Mar 3, 2012

    Mar 3, 2012
    1,401
    823
    213
    Male
    Wisconsin
  6. MrB206

    MrB206 Android Expert
    Rank:
    None
    Points:
    163
    Posts:
    1,879
    Joined:
    Mar 4, 2012

    Yea, except he doesn't have any public repos. At least none I saw.
     
Tags:

Share This Page

Loading...