[Q] I wiped the wrong parition

Search This thread
May 11, 2014
5
0
Can anyone help?

I have TWRP and i was factory resetting on my HTC One and i accidentally selected all partitions now i have no operating system . I can still access TWRP. Can anyone help me get it working again?
 

BenPope

Senior Member
Dec 20, 2007
3,896
1,118
In TWRP, mount the partition, copy ROM, flash it.

If you can't mount the sd card, try adv push or adv sideload. A quick search should get you detailed instructions.
 

nkk71

Inactive Recognized Developer / Contributor
May 26, 2010
8,741
7,571
53
Beirut
Can you give me step by step please because i searched all of last night and couldnt find anything.

you searched all last night and couldn't find out that you have three options:
1- OTG
2- adb push
3- adb sideload

not to mention, it's in almost every other Q&A thread and there are soooo many how-to and guides around, it's really hard to miss!

and on top of that, by helping you here, i'm sort of encouraging you (and others) to search less :crying:


Here's an example of adb push

-> enter RECOVERY

Code:
C:\ADB3>[B][COLOR="Blue"]adb version[/COLOR][/B]
Android Debug Bridge version 1.0.31

C:\ADB3>[B][COLOR="Blue"]adb devices[/COLOR][/B]
List of devices attached
HT34xxxxxxxx    recovery [I][SIZE="1"]<- you are now in recovery[/SIZE][/I]


C:\ADB3>[B][COLOR="Blue"]adb push Android_Revolution_HD-One_52.0.zip /sdcard/[/COLOR][/B]
2990 KB/s (1172224138 bytes in 382.835s) [B][I]<- yes, it took over 5 mins,
                                            without showing any progress[/I][/B]

[I][U][SIZE="1"]Just to double-check the file is not corrupt[/SIZE][/U][/I]
C:\ADB3>[B][COLOR="Blue"]adb shell md5sum /sdcard/Android_Revolution_HD-One_52.0.zip[/COLOR][/B]
2eff0d37fec5789b946c43f7da2c13bf  /sdcard/Android_Revolution_HD-One_52.0.zip
[INDENT]from the OP:
Android Revolution HD 52.0 -- MD5 sum: 2EFF0D37FEC5789B946C43F7DA2C13BF --
==> so all is good :)[/INDENT]

C:\ADB3>
-> in recovery, select "install" and install the ROM
.
 
May 11, 2014
5
0
you searched all last night and couldn't find out that you have three options:
1- OTG
2- adb push
3- adb sideload

not to mention, it's in almost every other Q&A thread and there are soooo many how-to and guides around, it's really hard to miss!

and on top of that, by helping you here, i'm sort of encouraging you (and others) to search less :crying:


Here's an example of adb push

-> enter RECOVERY

Code:
C:\ADB3>[B][COLOR="Blue"]adb version[/COLOR][/B]
Android Debug Bridge version 1.0.31

C:\ADB3>[B][COLOR="Blue"]adb devices[/COLOR][/B]
List of devices attached
HT34xxxxxxxx    recovery [I][SIZE="1"]<- you are now in recovery[/SIZE][/I]


C:\ADB3>[B][COLOR="Blue"]adb push Android_Revolution_HD-One_52.0.zip /sdcard/[/COLOR][/B]
2990 KB/s (1172224138 bytes in 382.835s) [B][I]<- yes, it took over 5 mins,
                                            without showing any progress[/I][/B]

[I][U][SIZE="1"]Just to double-check the file is not corrupt[/SIZE][/U][/I]
C:\ADB3>[B][COLOR="Blue"]adb shell md5sum /sdcard/Android_Revolution_HD-One_52.0.zip[/COLOR][/B]
2eff0d37fec5789b946c43f7da2c13bf  /sdcard/Android_Revolution_HD-One_52.0.zip
[INDENT]from the OP:
Android Revolution HD 52.0 -- MD5 sum: 2EFF0D37FEC5789B946C43F7DA2C13BF --
==> so all is good :)[/INDENT]

C:\ADB3>
-> in recovery, select "install" and install the ROM
.

I side loaded viper onto it and wen through the installation but it failed at the very end of it.
 

nkk71

Inactive Recognized Developer / Contributor
May 26, 2010
8,741
7,571
53
Beirut
I am using TWRP 2.6.3.0 and all i know is its an M7

problem is the recovery, it's outdated and won't work 4.4 ROMs

Assuming your phone is an M7_U/UL version (ie not Sprint, Verizon, Dual-SIM)

get TWRP from:
2.6.3.3: http://techerrata.com/browse/twrp2/m7
or 2.6.3.4: http://techerrata.com/browse/twrp2/m7ul
(make sure MD5 is correct, that site does not play nice with download managers)

2.7.0.4b: http://xdaforums.com/showthread.php?t=2708134


in bootloader/FASTBOOT USB:
fastboot flash recovery openrecovery-twrp-2.6.3.3-m7.img
fastboot erase cache
fastboot reboot-bootloader



And when you get a chance, please take some time to do a little research.... "all i know is its an M7", is not a very encouraging statement when you want to flash things.

PS: once you're in bootloader screen one of the top lines should say M7_U or M7_UL etc. ... if it's not one of those, then do not flash the above mentioned recoveries
 
May 11, 2014
5
0
problem is the recovery, it's outdated and won't work 4.4 ROMs

Assuming your phone is an M7_U/UL version (ie not Sprint, Verizon, Dual-SIM)

get TWRP from:
2.6.3.3: http://techerrata.com/browse/twrp2/m7
or 2.6.3.4: http://techerrata.com/browse/twrp2/m7ul
(make sure MD5 is correct, that site does not play nice with download managers)

2.7.0.4b: http://xdaforums.com/showthread.php?t=2708134


in bootloader/FASTBOOT USB:
fastboot flash recovery openrecovery-twrp-2.6.3.3-m7.img
fastboot erase cache
fastboot reboot-bootloader



And when you get a chance, please take some time to do a little research.... "all i know is its an M7", is not a very encouraging statement when you want to flash things.

PS: once you're in bootloader screen one of the top lines should say M7_U or M7_UL etc. ... if it's not one of those, then do not flash the above mentioned recoveries

Its all working now. Thanks soo much, i will remember to do more research in furture