Post Reply

[Q] [Help!] An Accident

OP MySlimey

29th July 2014, 03:13 AM   |  #1  
OP Member
Flag Antipolo
Thanks Meter: 2
 
56 posts
Join Date:Joined: Oct 2011
More
I accidentally wiped my internal storage while flashing a new rom. Now I am in recovery and not having anything in. I can't even mount anything or flash anything :\ What can I do to fix it?
29th July 2014, 04:21 AM   |  #2  
Member
Singapore
Thanks Meter: 10
 
39 posts
Join Date:Joined: Mar 2013
Hi!
If you have previously copied a backup to your computer (You should always do this) you can restore it by using the push command in ADB to your device and then restoring the file the normal way in Recovery. (Mind the file path, it should be exact. If you have no backup download any ROM to your phone and push this in the same way. I recommend Android Revolution, but any ROM will do.

It might be easier to first install a ROM, then do a backup of it to find the exact path if you want to restore a previous backup.

I have only used it a few times, but a quick Google search should give you enough information to get you started with the push commands.
The Following User Says Thank You to KriBKriB For This Useful Post: [ View ]
29th July 2014, 04:45 AM   |  #3  
alray's Avatar
Senior Member
Flag Montreal
Thanks Meter: 1,169
 
3,037 posts
Join Date:Joined: May 2012
Donate to Me
More
Quote:
Originally Posted by MySlimey

I accidentally wiped my internal storage while flashing a new rom. Now I am in recovery and not having anything in. I can't even mount anything or flash anything :\ What can I do to fix it?

follow this guide to transfer your rom again to your phone, while booted in recovery:

HTC ONE M7_U/M7_UL - ADB PUSH & FLASH A ROM - DETAILED INSTRUCTIONS


Quote:

Prerequisites:

  • You need ADB and FASTBOOT on your computer, either by installing the Android SDK or Minimal ADB and FASTBOOT
  • You need to know how to start a fastboot/adb command prompt:
    To open a command window prompt, in Windows go to Start Menu --> ''Run'' then type cmd. Change the directory to the ADB folder on your machine:
    • If using the default install location for the SDK:
      Code:
      cd C:\android-sdk-windows\tools
    • If using the default install location of Minimal ADB and FASTBOOT:
      Code:
      cd C:\Program Files (x86)\Minimal ADB and Fastboot
    • Or hold left shift + right click a blank space inside the folder where adb and fastboot are located and select ''Open command window here'' from the contextual menu.
  • You need TWRP recovery (2.6.3.3 for all 4.4+ roms or 2.7.1.1 for newer CM roms) on your device.
    1. Unlock bootloader if not already unlocked:

      Thanks to Electroz for the video tutorial

    2. Flash TWRP Recovery:
      1. Make sure the recovery.img file is in the same folder where adb and fastboot are located
      2. reboot phone in bootloader mode
      3. Flash the recovery:
        Code:
        fastboot flash recovery name_of_recovery.img
        fastboot erase cache
        fastboot reboot-bootloader

  • You need your HTC drivers correctly installed on your PC:



    If not, follow this guide (thanks to nkk71):
    Quote:

    originally from @nkk71: [GUIDE] [02-MAR-2014] nkk71's SuperGUIDE to returning 100% back to stock

    follow the below instructions to fix

    Open "Device Manager" -> select the unknown "One" -> right-click -> "Update Driver Software ..." -> "Browse my computer" -> "Let me pick" -> "Android USB Devices" -> select "My HTC ..." -> install that

    just in case, HTC Drivers can be found here: [Drivers] HTC Drivers for Windows - Several Versions (credits to @mdmower)
    though you should already have them since you have been using your phone anyways


    for those who like a visual guide:

    okay so I did a fastboot boot command, and as you can see it didnt install correct driver



    Open "Device Manager"



    there's the culprit



    right click and Update Driver Software



    select Browse my computer for driver software



    select Let me pick from a list of device drivers on my computer



    select Android USB Devices



    select My HTC ... (if you have more than one version, choose the latest)



    warning, select Yes



    successful installation



    now it looks better


    and can confirm:
    Code:
    C:\ADB3>adb devices
    List of devices attached
    HTxxxxxxxxxx    recovery

Quote:

Procedure:

  1. Make sure the ROM you want to flash is in the same folder where ADB and FASTBOOT are.
  2. Connect your phone to computer using usb cable
  3. Reboot phone in recovery mode (TWRP):
    • If phone is booted in OS:
      Code:
      adb reboot recovery
    • if not booted or bootlooping, hold power button + volume down until phone boot in bootloader mode
      then select BOOTLOADER then RECOVERY using volume up/down to navigate and power button to select.
  4. Make sure your phone is booted in TWRP main menu:
  5. transfer the rom to your /sdcard folder:
    Code:
    adb push name_of_rom.zip /sdcard/

    Wait for the zip file to transfer, this can take several minutes and there is no progress bar. When the command prompt give you back the hand and display how much bytes transferred in X seconds, the transfer is completed:

  6. In TWRP main menu, select ''INSTALL''
  7. Browse the installation menu and select your rom zip file inside /sdcard folder:
  8. Swipe to confirm you want to flash the rom
  9. Reboot phone

Last edited by alray; 29th July 2014 at 04:47 AM.
The Following User Says Thank You to alray For This Useful Post: [ View ]
29th July 2014, 07:11 AM   |  #4  
OP Member
Flag Antipolo
Thanks Meter: 2
 
56 posts
Join Date:Joined: Oct 2011
More
Quote:
Originally Posted by alray

follow this guide to transfer your rom again to your phone, while booted in recovery:

HTC ONE M7_U/M7_UL - ADB PUSH & FLASH A ROM - DETAILED INSTRUCTIONS



Yeah, I have a problem though. I can't open a fastboot Terminal or and ADB terminal, it always closes really fast. I don't even know how it happens and what causes it :\
29th July 2014, 07:23 AM   |  #5  
alray's Avatar
Senior Member
Flag Montreal
Thanks Meter: 1,169
 
3,037 posts
Join Date:Joined: May 2012
Donate to Me
More
Quote:
Originally Posted by MySlimey

Yeah, I have a problem though. I can't open a fastboot Terminal or and ADB terminal, it always closes really fast. I don't even know how it happens and what causes it :\

I guess you are trying to execute adb or fastboot by double clicking the icon which is not possible. Open the folder where adb.exe and fastboot.exe are and hold left shift then right click a blank space in that folder. in the contextual menu, select "open a cmd window here" and then you'll be able to type fasboot/adb commands. Its all explained in the guide (2nd prerequisite, 3rd method):
Quote:

Or hold left shift + right click a blank space inside the folder where adb and fastboot are located and select ''Open command window here'' from the contextual menu.

Last edited by alray; 29th July 2014 at 07:28 AM.
The Following User Says Thank You to alray For This Useful Post: [ View ]
29th July 2014, 08:09 AM   |  #6  
OP Member
Flag Antipolo
Thanks Meter: 2
 
56 posts
Join Date:Joined: Oct 2011
More
It worked! Thanks man!
29th July 2014, 05:27 PM   |  #7  
Junior Member
Thanks Meter: 0
 
3 posts
Join Date:Joined: Dec 2013
*deleted*
Last edited by sanjay0912; 29th July 2014 at 05:50 PM.

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes