how can I format sdcard from recovery or fastboot? - Nexus S Q&A, Help & Troubleshooting

my i9020T is frozen on google logo but I want to format the Sdcard before sending it for repair. how can I do that?
I tried formatting it using CWM recovery but everything comes back when "Edit: I reboot the phone into recovery again."
I also tired mounting the usb storage and formatting it through my pc but didn't work!
please help
I have both adb and fastboot working. Are there any commands that I can run to format it from these two? or is there any other way at all?

You could always "fastboot oem lock" I know it formats /sdcard, /data and /cache plus if your sending it back its a good idea to relock it anyway

adamgibbo said:
You could always "fastboot oem lock" I know it formats /sdcard, /data and /cache plus if your sending it back its a good idea to relock it anyway
Click to expand...
Click to collapse
The sdcard doesn't get formatted when I re-lock the bootloader

Unmount SD card first than:
adb shell
mkfs.vfat /dev/block//vold/179:1

farisallil said:
my i9020T is frozen on google logo but I want to format the Sdcard before sending it for repair. how can I do that?
I tried formatting it using CWM recovery but everything comes back when I restart the phone.
I also tired mounting the usb storage and formatting it through my pc but didn't work!
please help
I have both adb and fastboot working. Are there any commands that I can run to format it from these two? or is there any other way at all?
Click to expand...
Click to collapse
you said that the phone is frozen at google logo. how come you are able to verify ...that everything comes back when you restart? details please.
If you are able to mount the usb, try just deleting the files manually instead of formating.
A second option would be to:
fastboot oem unlock
actually fastboot oem lock doesnt wipe your phone and card; only the fastboot oem unlock function does. so you could try locking and unlocking again.

deeren said:
you said that the phone is frozen at google logo. how come you are able to verify ...that everything comes back when you restart? details please.
If you are able to mount the usb, try just deleting the files manually instead of formating.
A second option would be to:
fastboot oem unlock
actually fastboot oem lock doesnt wipe your phone and card; only the fastboot oem unlock function does. so you could try locking and unlocking again.
Click to expand...
Click to collapse
The phone does not boot up correctly and it stays frozen on the logo after rebooting. By mounting the usb storage again after rebooting, I see everything come back. You are right, I should have explained that in details, sorry.
I tried deleting files manually but didn't work.
I feel there is kind of protection on the sdcard! because even when I push files to the sd using adb or fastboot, they stay there as long as I don't reboot the phone. Once I reboot the phone into recovery again, bang, they are gone and only old files are there.

charlieb620 said:
Unmount SD card first than:
adb shell
mkfs.vfat /dev/block//vold/179:1
Click to expand...
Click to collapse
when I try that,
Code:
C:\>adb shell
~ # mkfs.vfat /dev/block//vold/179:1
mkfs.vfat /dev/block//vold/179:1
/sbin/sh: mkfs.vfat: not found
any idea?

bump........

Related

[Solved]SD card not mounted

I've spent the last day and a half fighting with my device to get the espresso dump to boot on my Radio 6.35 32A phone. I finally fixed all the crashes to find that the SD card isn't mounting properly because it keeps telling me that my sd card is missing. I know that my SD works fine because it mounts properly in recovery and every other rom. If anyone can point me to the files that are used to mount the SD card that would be a great help
*Update* i can manually mount /dev/block/mmcblk0p1 to /sdcard and adb into it but it still is not read by the rest of the rom
Phil_McRevis said:
*Update* i can manually mount /dev/block/mmcblk0p1 to /sdcard and adb into it but it still is not read by the rest of the rom
Click to expand...
Click to collapse
Have you partitioned your sd? Becouse I solved that problem on Cursorsense removing partitions on my sd card. Bye.
Try this from command line, boot into fastboot and type:
Code:
fastboot oem enableqxdm 0
Thanks for your responses guys... i'm trying the fastboot method now and no my sd card was not partitioned.
ok so the fastboot oem command didn't work but just curious what did it do?
edited vold.conf.. works now
Phil_McRevis said:
ok so the fastboot oem command didn't work but just curious what did it do?
Click to expand...
Click to collapse
It's the QXDM logging feature which automatically disables the SD card outside of fastboot.

[Q] Help! TWRP Won't Mount /sdcard for flashing!

I ran a recovery in TWRP to get my phone back to the phones original rom after being on AOKP JB Build 4 on my AT&T One X, but now it stays on the HTC boot screen with the red legal warning on it and TWRP can't mount /sdcard to flash back to another rom. I really hope that this isn't a brick but can someone shine some light on this issue and a possible fix? Help would be greatly appreciated!
Update: Was able to get AOKP flashed back by mounting /data as /sdcard, phone boots into it and I can use it, but the internal storage (/sdcard) is nonexistent and won't mount.
format sdcard in your computers os. make sure not to factory reset or clear storage in bootloader or it will corrupt sdcard.
DvineLord said:
format sdcard in your computers os. make sure not to factory reset or clear storage in bootloader or it will corrupt sdcard.
Click to expand...
Click to collapse
I can't get the phone to mount as a removable drive because of the problem with /sdcard, so I can't format it from my computer.
c_h0use said:
I can't get the phone to mount as a removable drive because of the problem with /sdcard, so I can't format it from my computer.
Click to expand...
Click to collapse
Don't worry about the red text. We all have that. And it is not bricked.
Can you turn the phone on with the stock ROM you flashed? If so, can you mount the SD card while it is on, booted up in phone mode? If, mount it there, then move your new rom to your phone.
Hello,
I have a similar issue, i can get into TWRP recovery, but i am not able to mount sdcard. My mistake was that i did fastboot flash boot boot.img but i neglected to actually flash the room and i didn't put the rom in the sdcard, so now i need to mount the sdcard to load the rom to flash it, but that is where i am stuck, is there a way to copy files into the sdcard via adb or any other way?
Any help will be greatly appreciated it.
Thank you.
XRACER said:
Hello,
I have a similar issue, i can get into TWRP recovery, but i am not able to mount sdcard. My mistake was that i did fastboot flash boot boot.img but i neglected to actually flash the room and i didn't put the rom in the sdcard, so now i need to mount the sdcard to load the rom to flash it, but that is where i am stuck, is there a way to copy files into the sdcard via adb or any other way?
Any help will be greatly appreciated it.
Thank you.
Click to expand...
Click to collapse
I think what you need to do then is flash the ROM from your bootloader. I found this guide with directions explaining how to flash from the bootloader by googling How To Flash Rom from Bootloader in the XDA Wiki. Here are the steps
ROM Flashing
Obtain a ROM of your choice, and note the location on your computer.
reboot your device into fastboot mode via one of the following options.
adb reboot bootloader (requires USB debugging to be turned on).
power off the device then back on with 'vol up' + power button.
Wipe your device.
fastboot -w
Update your ROM.
fastboot update </path/to/your/RomFile.zip>
Your phone will update and automatically reboot into the new ROM.
ROM update without SDcard
If you don't have an sd card, or your slot is broken you can try this trick, but you will need a custom recovery like Clockwork.
Boot up your phone to recovery. And move your rom file to the adb directory, and start a command line ( cmd )
adb shell
mount data
adb push D:\custom_rom.zip /data/
Wait until the push finised, and restart your device to recovery again with "adb reboot-bootloader"
mount data
mount /data /sdcard ( mount the data folder into your sdcard folder, so your recovery will think that you have an sdcard installed )
Locate the ROM .Zip file you wish to flash.
Confirm the flash by following the on-screen instructions (ie: pressing the trackball, pressing the call button, etc.)
If no errors arise during the flashing process then the ROM flash was successful, Reboot the device.
With some root file explorer, remove the rom file if you don't need it anymore, to free up space.
Or use adb to remove the custom recovery
adb shell rm data/custom_rom.zip
thanks for the reply but the procedure is not working,
when in fastboot through cmd i get
fatsboot -w
erasing 'userdata'...
FAILED (remote: not allowed)
finished. total time: 0.003s
I made sure i am in fastboot USB
elphiz
XRACER said:
thanks for the reply but the procedure is not working,
when in fastboot through cmd i get
fatsboot -w
erasing 'userdata'...
FAILED (remote: not allowed)
finished. total time: 0.003s
I made sure i am in fastboot USB
Click to expand...
Click to collapse
Lol this just happen toe last night what u need to do is boot into bootloader then plug it USB cable to ur phone and format your sdcard it make sure u download a Rom to your computer before this it can be any tom you like after you format you can put the Rom on ur sdcard and flash and u will be golden
loading into bootloader doesn't allow the computer to read/access the sdcard keep in mind this is the HOX so the sdcard is the internal memory, i could get into the recovery and then try to mount it that way and format from there but for some reason i can't select the option mount sdcard.
This works:
How to Fix corrupt/unmountable internal storage on the HTC One X/XL
http://forums.team-nocturnal.com/sh...storage-on-the-HTC-One-X-XL?p=13552#post13552
perfect thanks that did the job. now time to install the ROM!!!!
thanks a lot
hmmmm.... one more question would i need to flash the boot image as well before installing the ROM???
EDIT: i went ahead and just flashed the ROM, and everything is working fine.
Thank you to everyone
XRACER said:
perfect thanks that did the job. now time to install the ROM!!!!
thanks a lot
hmmmm.... one more question would i need to flash the boot image as well before installing the ROM???
EDIT: i went ahead and just flashed the ROM, and everything is working fine.
Thank you to everyone
Click to expand...
Click to collapse
If you're not on Hboot 1.14 then you don't have to flashboot flash boot.img. just flash the .zip from your sd card
Sent from my HTC One XL cellular device over clocked to 1.9Ghz
thank you sir!
king200 said:
This works:
How to Fix corrupt/unmountable internal storage on the HTC One X/XL
Click to expand...
Click to collapse
ok this did work and i appreciate the link. ive bookmarked it for future use. what sux is i assumed i bricked and have already had a new phone shipped. oh well guess i got a back up
will this work because my microsims card unable to mount /sdcard which i assume is the internal one will it work even if its blank/empty via computer because i have no working os on my phone i have incredible 4g so i hope you can help me
XRACER said:
loading into bootloader doesn't allow the computer to read/access the sdcard keep in mind this is the HOX so the sdcard is the internal memory, i could get into the recovery and then try to mount it that way and format from there but for some reason i can't select the option mount sdcard.
Click to expand...
Click to collapse
I did it. Apparently you can install a zip ROM from SD card once you repartition it from the recovery. There is an option to partition the SD card in the Recovery.
After that, restart the phone, go into recovery again, connect to the PC using a USB cable, and use the USB mount option if you want to copy the ROM without removing the microSD card from the phone. Copy the zip ROM to the sdcard and try installing the ROM again. It worked for me !
I was installing the Pico ROM from this tutorial:
www (dot) rootlord.com/2013/08/revert-htc-explorer-back-to-stock-rom (dot) html
I
TWRP Mounting SD card
DvineLord said:
format sdcard in your computers os. make sure not to factory reset or clear storage in bootloader or it will corrupt sdcard.
Click to expand...
Click to collapse
So I think I may have currupted my sdcard. I'm running CM-12 4/21/15 nightly. I'm a nubie at this stuff and have read everywhere I can think of on the forums. When I try to reboot to bootloader from TWRP recovery if goes immediately to the do no remove USB connection FIRMWARE Update. I am worried that this will un-root me with AT&T being jerks and fixing the bumped bootloader. So, I have always just pulled the battery, plus it never has any progress on the %downloaded bar.
To try to fix the issue I may have just made it worse and created too many partitions or corrupted the SD by doing exactly what you said not to do above. Before I did a TWRP wipe (not the advanced version) the SD card was mounted, but some apps like google play music kept saying external storage removed. I did the wipe and saw the factory reset screen and said ok. I had to download all my apps again and then switched to Google Now launcher I orginally rooted and bootloader unlocked with bump on a different smaller external SD card. I wasn't sure if that had anything to do with it.
I'm almost unsure what to ask you or other more experienced users what to do.
eee. how about on my samsung galaxy j5 sm j500h? i wanted to mount my phone to pc but i cant. was planning to fix my phone cause im stucked on bootlogo due to flashing xposed-v72-sdk22-arm.zip. Hoping that you guys can help me out.

Bootloop + E:unable to mount /data

Moderator Notes: I was asked to sticky this thread as it seems to be a recurring issue and a couple of fixes are in the posts.
Sorry my bad english am latin.
Hi guys first thread here and i need your help. Here s the thing, i was using my tf700, browsering, and the tablet goes off, i tried start up and a bootloop appears. So i go to Recovery (latest TWRP) and i tried to flash a ROM (latest crombi kk), like always i tried to wipe cache and dav bfore flash it but that proces seems to fail, and a couple of messages like unable to mount /data unable to mount /system appears, first time happening, i never had troubles with the tablet. So i tried to get fastboot mode and run the fastboot erase cach command (i read in a forum dat some guy did that and work for him), so i download the adb fastboot files, i connect the tf700 to my laptop (windows 7 64bit) and a installing drivers message and i wait and the driver that is called Transformer did not install, i dont know where to get those drivers, i found a file Asus usb drivers and bla bla but when i unzip the file i get 3 folders and no .exe or installer. So i tried to continue and i enter fastboot mode in the tablet and connect usb tablet-pc, and now another driver installing message appears, now is a driver called Fastboot, so i wait anda again the driver did not install correctly. So i continue and open cmd and tried the comman for erase cache, and only appears the WAITING FOR DEVICE text. i donw know waht to do, i also tried flashing again a ROM, bt only bootloop, trie again to wipe cache and dav but is only unable to mount /data. Any ideas ????
formobicho said:
Sorry my bad english am latin.
Hi guys first thread here and i need your help. Here s the thing, i was using my tf700, browsering, and the tablet goes off, i tried start up and a bootloop appears. So i go to Recovery (latest TWRP) and i tried to flash a ROM (latest crombi kk), like always i tried to wipe cache and dav bfore flash it but that proces seems to fail, and a couple of messages like unable to mount /data unable to mount /system appears, first time happening, i never had troubles with the tablet. So i tried to get fastboot mode and run the fastboot erase cach command (i read in a forum dat some guy did that and work for him), so i download the adb fastboot files, i connect the tf700 to my laptop (windows 7 64bit) and a installing drivers message and i wait and the driver that is called Transformer did not install, i dont know where to get those drivers, i found a file Asus usb drivers and bla bla but when i unzip the file i get 3 folders and no .exe or installer. So i tried to continue and i enter fastboot mode in the tablet and connect usb tablet-pc, and now another driver installing message appears, now is a driver called Fastboot, so i wait anda again the driver did not install correctly. So i continue and open cmd and tried the comman for erase cache, and only appears the WAITING FOR DEVICE text. i donw know waht to do, i also tried flashing again a ROM, bt only bootloop, trie again to wipe cache and dav but is only unable to mount /data. Any ideas ????
Click to expand...
Click to collapse
More likely your data partition got corrupted.
Try wiping it or formatting /data in TWRP to see if that helps? You will lose everything if you don't have backups.
sbdags said:
More likely your data partition got corrupted.
Try wiping it or formatting /data in TWRP to see if that helps? You will lose everything if you don't have backups.
Click to expand...
Click to collapse
i already tried that, wiping (cache, dav, system, ata, factoty reset) anything gives the unable to mount /data error.
formobicho said:
i already tried that, wiping (cache, dav, system, ata, factoty reset) anything gives the unable to mount /data error.
Click to expand...
Click to collapse
You'll need to manually format it using the terminal in TWRP
Make sure data is umounted then run this command. Make sure you have charged it as well or leave it plugged in.
It can take a number of hours to complete.
Code:
mke2fs -T ext4 /dev/block/mmcblk0p8
sbdags said:
You'll need to manually format it using the terminal in TWRP
Make sure data is umounted then run this command. Make sure you have charged it as well or leave it plugged in.
It can take a number of hours to complete.
Code:
mke2fs -T ext4 /dev/block/mmcblk0p8
Click to expand...
Click to collapse
first of all is an honor chat with the legend sbdags!!! second can u guide me step by step. i did enter in twrp and go to advanced then terminal command then a selection menu appear and said browse to starting folder and a list of folder appears and a botton with Select Folder, wich folder i must select now? i tried just hit the select folder button and then i put the command taht u said and in the terminal said mke2fs 1.41.14 (22-dec-2010) nothing more and nothing happen
sbdags said:
You'll need to manually format it using the terminal in TWRP
Make sure data is umounted then run this command. Make sure you have charged it as well or leave it plugged in.
It can take a number of hours to complete.
Code:
mke2fs -T ext4 /dev/block/mmcblk0p8
Click to expand...
Click to collapse
Thank you so much sbdags.
You're a life save thought I had softbricked my tf700
Muchas gracias
formobicho said:
first of all is an honor chat with the legend sbdags!!! second can u guide me step by step. i did enter in twrp and go to advanced then terminal command then a selection menu appear and said browse to starting folder and a list of folder appears and a botton with Select Folder, wich folder i must select now? i tried just hit the select folder button and then i put the command taht u said and in the terminal said mke2fs 1.41.14 (22-dec-2010) nothing more and nothing happen
Click to expand...
Click to collapse
Did you unmount data first?
---------- Post added at 07:25 AM ---------- Previous post was at 07:24 AM ----------
chukkie said:
Thank you so much sbdags.
You're a life save thought I had softbricked my tf700
Muchas gracias
Click to expand...
Click to collapse
You are welcome!
EDIT - somehow the format finally took.. after 5 or 6 reboots.. very strange
okay, i hate to bump this thread. but i have been searching for a few nights and i cannot find a solution. i am having the same problem as OP.
Essentially, my tablet was interrupted mid format. I believe my data partition is corrupted. I can access recovery/fastboot and the tablet accepts commands from my PC. i have TWRP 2.7.1.1 on the tablet right now.
i tried what sdbags said:
You'll need to manually format it using the terminal in TWRP
Make sure data is umounted then run this command. Make sure you have charged it as well or leave it plugged in.
It can take a number of hours to complete.
Code:
mke2fs -T ext4 /dev/block/mmcblk0p8
Click to expand...
Click to collapse
this did not work. i got the same "mke2fs 1.41.14 (22-dec-2010)" output, and then the tablet rebooted back into TWRP over again. (data was not mounted, i cannot mount it at all)
some more output from my tablets TWRP console:
Code:
e:could not mount/data and unable to find crypto footer.
e:unable to mount '/data'
e:unable to recreate /data/media folder/
updating partition details...
e:unable to mount '/data'
e:unable to mount internal storage.
e:unable to mount /data/media during gui startup
full selinux support is present.
e:unable to mount /data/,edia/twrp/.twrps when trying to read settings file.
e:unable to mount '/data'
is there another way to fix my corrupted partition?
this did not work. i got the same "mke2fs 1.41.14 (22-dec-2010)" output, and then the tablet rebooted back into TWRP over again. (data was not mounted, i cannot mount it at all)
Click to expand...
Click to collapse
I have exactly same situation
edit: after running this command
mke2fs -T ext4 /dev/block/mmcblk0p8
Click to expand...
Click to collapse
it prompt
Starting Path : /external_sd
Click to expand...
Click to collapse
and there is also button "KILL" when I hit enter it prompt : /dev/block/mmcblk0p8 is appereatly in use by the system: Will not make a file system here!
Any advice? (sry for being this big noob!)
Code:
adb shell
killall -19 recovery
make_ext4fs /dev/block/mmcblk0p8
reboot
Type in those commands via a usb connection to your device whilst it is in recovery.
sbdags said:
Code:
adb shell
killall -19 recovery
make_ext4fs /dev/block/mmcblk0p8
reboot
Type in those commands via a usb connection to your device whilst it is in recovery.
Click to expand...
Click to collapse
Wouw thanks for so fast reply :highfive:.
But I think I'll disepoint you "usb debugging is disabled"
---------------------------------------------------------------------------------------------------------------
Any way I can reinstall stock from fastboot? damn it......
brinza said:
Wouw thanks for so fast reply :highfive:.
But I think I'll disepoint you "usb debugging is disabled"
---------------------------------------------------------------------------------------------------------------
Any way I can reinstall stock from fastboot? damn it......
Click to expand...
Click to collapse
No idea how when and after what exactly but the installation of stock rom started by itself after couple of reboots and couple of command i tried. (I had a file : US_epad-user-10.6.1.14.10.zip on my SD card
sbdags said:
Code:
adb shell
killall -19 recovery
make_ext4fs /dev/block/mmcblk0p8
reboot
Type in those commands via a usb connection to your device whilst it is in recovery.
Click to expand...
Click to collapse
Probably a Bad Idea - you should unmount /data before formatting. Then it should also not hurt to keep the recovery running.
Unbrick my TF 700t
Accidentally, bricking my tablet
I try Advance and Terminal Command with TRWP at tablet, it did not work
but when I try with command from PC (desktop), it works like a charm. I was able to see internal storage
from that just re install Custom ROM. Thank alot to sdbag
Thanks
sbdags said:
Code:
adb shell
killall -19 recovery
make_ext4fs /dev/block/mmcblk0p8
reboot
Type in those commands via a usb connection to your device whilst it is in recovery.
Click to expand...
Click to collapse
Wow. you are a life saver. that worked for me.
player50 said:
Wow. you are a life saver. that worked for me.
Click to expand...
Click to collapse
Glad it worked. Everyone should keep those commands handy
Thanks a lot...
After a long research I have found your thread.
I have almost given up looking for this damn issue...
At last, It became real! You are a real life saver.
sbdags help!
1) i dont know how to unmount data .
2) when i click advanced then terminal command it opens- Browse to starting folder and gives the file manager kind of view.
3) so i tried using adb on computer
the first three command work(i think but the third gives this error not enough space) .
please suggest a solution. thank you in advance
device moto g xt1033
i tried downgrading from lollipop 5.0 brasilian to kitkat but it wont go past warning bootloader unlocked screen. when i flash cm from twrp, it gives 3 errors
E:/ unable to mount '/data'
E:/ unable to mount '/cache'
E:/ unable to mount internal storage
then when i start it just keeps on loading on cm logo
should i create a separate thread for all this?
'
SemiNoob314 said:
1) i dont know how to unmount data .
2) when i click advanced then terminal command it opens- Browse to starting folder and gives the file manager kind of view.
3) so i tried using adb on computer
the first three command work(i think but the third gives this error not enough space) .
please suggest a solution. thank you in advance
device moto g xt1033
i tried downgrading from lollipop 5.0 brasilian to kitkat but it wont go past warning bootloader unlocked screen. when i flash cm from twrp, it gives 3 errors
E:/ unable to mount '/data'
E:/ unable to mount '/cache'
E:/ unable to mount internal storage
then when i start it just keeps on loading on cm logo
should i create a separate thread for all this?
'
Click to expand...
Click to collapse
Question: Why don't you care to read the short thread from beginning?
das chaos said:
Question: Why don't you care to read the short thread from beginning?
Click to expand...
Click to collapse
i am really sorry if the earlier comment came out as rude.
actually i did all of those steps, using the command terminal, using adb from pc but none of them worked, all of them had some problem

Accidentally wiped internal storage..need help adb pushing rom!

as the title states..in a rush i accidentally wiped my internal storage and everything else..i can get into recovery and fastboot mode
i have all the adb drives and stuff installed from when i previously used it (months ago)
when i plug my phone into my pc in fastboot it doesnt not connect and adb devices does not list it as connected
please PM me and help me..i just need to push a rom onto the phone so i can flash it
jdiddy_ub said:
as the title states..in a rush i accidentally wiped my internal storage and everything else..i can get into recovery and fastboot mode
i have all the adb drives and stuff installed from when i previously used it (months ago)
when i plug my phone into my pc in fastboot it doesnt not connect and adb devices does not list it as connected
please PM me and help me..i just need to push a rom onto the phone so i can flash it
Click to expand...
Click to collapse
That's ironic, the very same thing happen to me yesterday except in my case I undervolted too low and corrupted the data, had to format everything.
Which recovery are you using? PhilZ Touch allows you to push stuff onto the internal storage.
The command would be "adb push (name of your folder) /sdcard/"
thanks for the response...im using TWRP...i just decided to flash the stock images and start from scratch
adb doesn't work in fastboot mode. Only fastboot works in fastboot mode. adb works only in recovery mode or Android mode. adb and fastboot are NOT the same thing. They are not synonymous
Sent from my Nexus 5 using Tapatalk
Get fastboot and adb exes for windows.
Add them to your PATH to make them available from everywhere.
If you dont know from where to get fastboot and adb and you dont know how to add them to the PATH, then this is for you.
If you choose TWRP to flash new rom:
If you are on windows 8 or 8.1 then disable driver signature enforcement.
You need universal naked drivers.
Open CMD window on your PC.
Go to that directory where the rom.zip is. (The commands you need to navigate between folders: dir and cd)
For adb push:
Type this in the CMD window and flash it in TWRP:
Code:
adb push rom.zip /sdcard
For adb sideload:
In twrp: Advanced->ADB Sideload->Swipe to Start Sideload
Then type this in the CMD window:
Code:
adb sideload rom.zip
If you ends up in boot loop do a factory reset.
For flashing factory images:
Enter the phone to fastboot mode and connect it to the PC
Install usb drivers from google.
Download factory images for nexus 5 and extract it.
Run flash-all.bat.
If you are still lost I recommend you these threads:
[TUTORIAL] How to flash a factory image | Return to stock | Unroot/SAVE your Nexus 5
[Tutorial] How to flash factory images with LG Flashtool
I've been having trouble with this..... When I wipe data in twrp it also wipes internal storage. How are people wiping their device for a clean rom install?
Sent from my Nexus 5 using Tapatalk
toprunner2786 said:
I've been having trouble with this..... When I wipe data in twrp it also wipes internal storage. How are people wiping their device for a clean rom install?
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
For me, by not using TWRP
rootSU said:
For me, by not using TWRP
Click to expand...
Click to collapse
Oh.... Interesting I guess I never thought that it could be an issue with the recovery itself.... I just assumed it was operator error.
So I would assume CWM is the obvious alternative.... Is there anything else that is recommended?
Sent from my Nexus 5 using Tapatalk
Link in signature
Sent from my Nexus 5 using Tapatalk
toprunner2786 said:
I've been having trouble with this..... When I wipe data in twrp it also wipes internal storage. How are people wiping their device for a clean rom install?
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
What do you mean by internal storage? Wiping data will wipe your apps but anything on your internal sdcard should not be wiped. Backups, etc
Sent from my Nexus 5 using XDA Free mobile app
toprunner2786 said:
I've been having trouble with this..... When I wipe data in twrp it also wipes internal storage. How are people wiping their device for a clean rom install?
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
What I do is reboot to twrp. Select wipe then swipe that thing which tells me "swipe to factory reset".
This does wipes /cache and /data without deleting /data/media. The files on the internal storage is in /data/media/0
What I do not do is selecting Format data and type yes for format or going into the advanced wipe and select /sdcard to format too.
hey
jdiddy_ub said:
as the title states..in a rush i accidentally wiped my internal storage and everything else..i can get into recovery and fastboot mode
i have all the adb drives and stuff installed from when i previously used it (months ago)
when i plug my phone into my pc in fastboot it doesnt not connect and adb devices does not list it as connected
please PM me and help me..i just need to push a rom onto the phone so i can flash it
Click to expand...
Click to collapse
hey i have the same problem dude can you please help me with this
Hi, can anyone help me, I got problem.
I have Lenovo A526 phone stuck in logo. First time I used Sp Flash Tools & Stock Rom to fix, after all done the popup said "Download OK" but after restart it still hang in logo. I tried few time.
Stock ROM from this site: http://firmwarefile.com/lenovo-a526 And I use SP_Flash_Tool_v5.1628 from that site too.
Then I use this rom: http://www.symbianize.com/showthread.php?t=1184121 With the same SP_Flash_Tool_v5.1628. I use " [Custom ROM] A526 is based on a sink firmware ROW_031 for Lenovo a526 " from FoxtrotKZ, result still same.
Later I've used ADB & TWRP recovery to install a custom rom. With this custom rom:
http://www.needrom.com/download/miui...v5-5-01-16-ru/
https://filosofipohonkelapa.wordpres...n-ke-lollipop/
http://www.mastahdroid.com/2015/08/c...novo-a526.html
I tried via adb sideload and via sdcard too. Same result.
On TWRP recovery the message said "Installation Done ! Please Reboot ! Successful".
But at the end of line of installation, it's written:
Updating partition details...
E:Unable to mount '/cache'
E:Unable to mount '/data'
E:Unable to mount '/system'
Then I reboot and it still hang in logo
https://postimg.org/image/6tlj5nem7/
I boot to recovery and tried "wipe" option, Same result.
https://postimg.org/image/oibdy3b7f/
Dont know the meaning of that and fix this. Can anyone help? Thank you.
Can i recover files pictures after swiping/format on twrp?
danarama said:
adb doesn't work in fastboot mode. Only fastboot works in fastboot mode. adb works only in recovery mode or Android mode. adb and fastboot are NOT the same thing. They are not synonymous
Click to expand...
Click to collapse
omg you saved me, thank you so much for this info!
I'm using nexus 6p and when I try to install new pie Ron with FBE instead of FDE, I use a USB OTG adapter and install the zip from USB storage then completely format internal storage.
So if you have USB OTG then you can mount the USB storage into TWRP and install from there

[SOLVED] Decryption Unsuccessful and a currently bricked M8

I previously ran LolliGPE but was long overdue for an update. I downloaded the latest version and copied the image to my phone and flashed the ROM. I decided to go try a dirty install first to see if I could keep everything I had, since I had already been running a previous version and after reviewing the changelog did not see anything recommending to wipe clean. After installing successfully, Android asked me to enter my password to decrypt my data (I don't recall ever encrypting my data?), and so I did. It then told me that my password was right, but the data was corrupt, and presented me a button to reset my phone. The button redirected me to recovery and automatically attempted to wipe /data and then re-mount it, but the wipe failed. I rebooted again with the same issue, same failed attempt to wipe. I went to install the zip again, and this time do a full wipe, but it was unable to mount my phone's storage nor my SD card. I am not able to mount either at all now.
What's the best course of action? I'd like to retain as much as I can and avoid wiping all of the internal storage clean. Is there a simpler fix to this or am I doomed?
HBOOT: 3.19.0.0000
RADIO: 1.09.20.0926
OS: 3.28.605.4
EDIT: For anyone else having a problem like this that at least wants to get their data back, here's what you should do (I assume you know how to work with Linux!):
Make sure you have the latest version of TWRP and ADB.
Boot the phone into recovery mode and connect the phone to your computer via USB
Run "ls -al /dev/block/platform/msm_sdcc.1/by-name" and check the output. Make a note of the partition marked "userdata" - for me, it was /dev/block/mmcblk0p48.
Either: simply use adb pull to copy this file to your computer (this will require about 26 gigs of space), or attempt to mount the file. To use adb pull, execute "adb pull /dev/block/<ID> ./data" (ID being what you marked down). Your data partition will be copied to /data. To mount, use "mount -t ext4 /dev/block/<ID> /userdata". Whatever's left of your data will be on your phone's new /userdata folder.
Use ADB to pull what files you want from /userdata. If you pulled the partition, skip this step.
If you copied the files you wanted over, you're done. If you pulled the entire partition, you're going to want to try and mount it. On Windows, there are various tools to mount Linux partitions, a quick Google will find some good ones. However, if the data is corrupt, it will not work. I recommend attempting to repair the partition on linux, with the command "e2fsck -f -y /path/to/data", replacing the path to your data file as necessary. Once done, run "mount -t ext4 /path/to/data /mnt/data", replacing the paths as necessary.
Once mounted, you can access your data wherever it was mounted. If e2fsck appeared to fix many errors, chances are most of your data will be in the lost+found folder, and you'll need to sort through this yourself. If you're lucky, then your data will be intact and readily usable. Internal SD card data is located at ./media/0.
To fix the partitions and get Android back up and running, you need to install the latest firmware, format your data in TWRP, factory reset, and then flash a ROM again. Here's what I did to do that, without an SD card. If you have an SD card, simply copy your ROM zip to the SD card and skip the final steps:
Make sure you have the latest version of TWRP and ADB, and download the latest copy of the firmware (check the development forum here).
Boot the phone (doesn't matter to what) and run adb reboot bootloader. When your phone reboots, double-check by running fastboot reboot-bootloader.
Put your phone in RUU mode with fastboot oem rebootRUU. The phone will restart and the HTC logo will come up.
Wait a couple seconds, then run fastboot flash zip firmware.zip, where firmware.zip is the firmware you want to flash.
The first time you do this, it will fail saying something like "FAILED (remote: 90 hboot pre-update! please flush image again immediately)". Ignore this, run the last command again: fastboot flash zip firmware.zip
The progress bar will appear and begin filling. Wait until fastboot is finished flashig it (the progress bar may not fill completely), wait an extra 5 seconds or so, and then do fastboot reboot.
The phone will reboot. Android will still be messed up, but you can verify the partitions are in working order by checking adb shell cat /proc/emmc.
Once you know the partitions are working, get back into TWRP/recovery: adb reboot recovery
Format /data and wipe /cache, /data, dalvik/art cache, etc (factory reset). You will lose the contents of your internal storage and everything else.
If you don't have the ROM zip on an sd card, make sure the zip is in the same directory as adb and run adb push rom.zip /sdcard/rom.zip, where rom.zip is the ROM. You can also copy it to the external sd by swapping /sdcard/rom.zip with /external_storage/rom.zip.
Once copied, reboot into recovery and flash the zip. Back to normal!
Update:
It's a firmware problem. Apparently there was a new firmware update that the ROM uses that I don't have. mmcblk0p42 was changed to "vzw_logger" (which I don't have), making mmcblk0p49 userdata instead of previously mmcblk0p48. The data partition it expects to be /data is /cache. Got this information by comparing 'cat /proc/emmc' with information of the latest version I found here.
Is there a way to fix this that allows me to preserve the contents of my internal storage (/sdcard)? Can I just flash an older version of the ROM to backup my data?
Klayderpus said:
Update:
It's a firmware problem. Apparently there was a new firmware update that the ROM uses that I don't have. mmcblk0p42 was changed to "vzw_logger" (which I don't have), making mmcblk0p49 userdata instead of previously mmcblk0p48. The data partition it expects to be /data is /cache. Got this information by comparing 'cat /proc/emmc' with information of the latest version I found here.
Is there a way to fix this that allows me to preserve the contents of my internal storage (/sdcard)? Can I just flash an older version of the ROM to backup my data?
Click to expand...
Click to collapse
I posted a warning about this change in the general section early on. For you to have the partition changes means you are on the newer firmware which doesn't match what you posted above for os. You very likely at this point have nothing left to salvage. Are you on the latest twrp?
dottat said:
I posted a warning about this change in the general section early on. For you to have the partition changes means you are on the newer firmware which doesn't match what you posted above for os. You very likely at this point have nothing left to salvage. Are you on the latest twrp?
Click to expand...
Click to collapse
I am on the latest TWRP, yes. Since this post, I've actually been making good progress in getting the data partition back, or so I think. I've been using dd to copy /dev/block/mntblk0p48 to an image file, but got stuck when I reached the FAT32 limit, so I re-formatted my SD card, except now it's read-only.
Klayderpus said:
I am on the latest TWRP, yes. Since this post, I've actually been making good progress in getting the data partition back, or so I think. I've been using dd to copy /dev/block/mntblk0p48 to an image file, but got stuck when I reached the FAT32 limit, so I re-formatted my SD card, except now it's read-only.
Click to expand...
Click to collapse
If you Dd the entire data partition it's gonna be almost 25 gigs. If you can't mount data in twrp and find anything usable when browsing via adb in twrp there's probably not anything usable in there.
dottat said:
If you Dd the entire data partition it's gonna be almost 25 gigs. If you can't mount data in twrp and find anything usable when browsing via adb in twrp there's probably not anything usable in there.
Click to expand...
Click to collapse
I did a DD before while in ADB and it only got to about 1.3 gigs, but after running the image through e2fsck I actually found some images and downloads. I think there's usable stuff in there and I'd like to at least try to get it. There's family pictures and stuff on there that have some value to me. My SD card is 32 gigs so I could probably do it if anything for the hell of it.
Do you happen to know how I can get the SD card mounted? mount -o rw,remount /dev/block/mmcblk1p1 [some dir] is what I've been trying, but I've been getting either Read only filesystem or Invalid argument.
I might be a little crazy
Klayderpus said:
I did a DD before while in ADB and it only got to about 1.3 gigs, but after running the image through e2fsck I actually found some images and downloads. I think there's usable stuff in there and I'd like to at least try to get it. There's family pictures and stuff on there that have some value to me. My SD card is 32 gigs so I could probably do it if anything for the hell of it.
Do you happen to know how I can get the SD card mounted? mount -o rw,remount /dev/block/mmcblk1p1 [some dir] is what I've been trying, but I've been getting either Read only filesystem or Invalid argument.
I might be a little crazy
Click to expand...
Click to collapse
Its already mounted.. Just boot into TWRP while connected to your PC. Open cmd prompt in your adb directory.
adb shell
cd sdcard
ls
See if your internal SD card contents are listed.
dottat said:
Its already mounted.. Just boot into TWRP while connected to your PC. Open cmd prompt in your adb directory.
adb shell
cd sdcard
ls
See if your internal SD card contents are listed.
Click to expand...
Click to collapse
TWRP lists the internal SD card as being size 0 under Mount -> Select Storage and /sdcard is empty. I re-formatted my external SD card to make a full size image but that's what wasn't mounting.
Klayderpus said:
TWRP lists the internal SD card as being size 0 under Mount -> Select Storage and /sdcard is empty. I re-formatted my external SD card to make a full size image but that's what wasn't mounting.
Click to expand...
Click to collapse
Did you try the repair option for /data listed under wipe in TWRP?
dottat said:
Did you try the repair option for /data listed under wipe in TWRP?
Click to expand...
Click to collapse
Doesn't work. There's a couple of messages about not being able to mount /data and then:
Code:
Repairing Data using e2fsck...
E:Unable to repair '/data'.
E:Error repairing file system.
Klayderpus said:
Doesn't work. There's a couple of messages about not being able to mount /data and then:
Code:
Repairing Data using e2fsck...
E:Unable to repair '/data'.
E:Error repairing file system.
Click to expand...
Click to collapse
try this
adb shell
mount -t ext4 /dev/block/mmcblk0p49 /userdata
df
show me the output of df...
and if to be sure of which firmware you are on.. reboot recovery... and do the following....
adb shell
mount -t ext4 /dev/block/mmcblk0p48 /userdata
df
and show me that DF
I got all of my data back successfully. I'm updating the OP with the steps I did to get it back.
What's the next step? Change firmware? I have a local copy of what I needed from the phone, so anything's game now.
edit: /dev/block/mmcblk0p48 for me is userdata, 49 does not exist. Both mounts fail.
Code:
df
Filesystem 1K-blocks Used Available Use% Mounted on
tmpfs 933044 24 933020 0% /dev
tmpfs 933044 20 933024 0% /tmp
/dev/block/mmcblk0p47 1030828 16464 1014364 2% /cache
/dev/block/mmcblk1p1 30647232 12 29090436 0% /external_sd
/dev/block/mmcblk1p1 30647232 12 29090436 0% /and-sec
Klayderpus said:
I got all of my data back successfully. I'm updating the OP with the steps I did to get it back.
What's the next step? Change firmware? I have a local copy of what I needed from the phone, so anything's game now.
edit: /dev/block/mmcblk0p48 for me is userdata, 49 does not exist. Both mounts fail.
Code:
df
Filesystem 1K-blocks Used Available Use% Mounted on
tmpfs 933044 24 933020 0% /dev
tmpfs 933044 20 933024 0% /tmp
/dev/block/mmcblk0p47 1030828 16464 1014364 2% /cache
/dev/block/mmcblk1p1 30647232 12 29090436 0% /external_sd
/dev/block/mmcblk1p1 30647232 12 29090436 0% /and-sec
Click to expand...
Click to collapse
I would say update firmware. Since you confirmed blk48 as user data I know you don't have lollipop firmware.
I posted a firmware zip that contains the newest twrp which is compatible with lollipop in tigerstowns firmware thread. You can use that to update.
Then wipe and reinstall whatever Rom you want to use.
I fixed it this morning by updating firmware and will update the OP with the rest of the steps for the Googlers. Thanks again.
Klayderpus said:
EDIT: For anyone else having a problem like this that at least wants to get their data back, here's what you should do (I assume you know how to work with Linux!):
Make sure you have the latest version of TWRP and ADB.
Boot the phone into recovery mode and connect the phone to your computer via USB
Run "ls -al /dev/block/platform/msm_sdcc.1/by-name" and check the output. Make a note of the partition marked "userdata" - for me, it was /dev/block/mmcblk0p48.
Either: simply use adb pull to copy this file to your computer (this will require about 26 gigs of space), or attempt to mount the file. To use adb pull, execute "adb pull /dev/block/<ID> ./data" (ID being what you marked down). Your data partition will be copied to /data. To mount, use "mount -t ext4 /dev/block/<ID> /userdata". Whatever's left of your data will be on your phone's new /userdata folder.
Use ADB to pull what files you want from /userdata. If you pulled the partition, skip this step.
If you copied the files you wanted over, you're done. If you pulled the entire partition, you're going to want to try and mount it. On Windows, there are various tools to mount Linux partitions, a quick Google will find some good ones. However, if the data is corrupt, it will not work. I recommend attempting to repair the partition on linux, with the command "e2fsck -f -y /path/to/data", replacing the path to your data file as necessary. Once done, run "mount -t ext4 /path/to/data /mnt/data", replacing the paths as necessary.
Once mounted, you can access your data wherever it was mounted. If e2fsck appeared to fix many errors, chances are most of your data will be in the lost+found folder, and you'll need to sort through this yourself. If you're lucky, then your data will be intact and readily usable. Internal SD card data is located at ./media/0.
[/LIST]
Click to expand...
Click to collapse
I have a laptop running Ubuntu: where do I run the "ls -al /dev/block..." command? As in what folder do I need to be in? The phone only appears in an mtp capacity...
EDIT: I figured that out but now I am stuck at "adb pull /dev/block/<ID> ./data". My ID was mmcblk0p28 but the command returns "Bash: mmcblk0p28: no such file or directory exists"
EDIT 2: Got that command to work but the file is too large to write (My disk is FAT32 ). So I then tried the mount command but again got "no such file or directory exists".
Same Issue "Decryption Unsuccessful"
I was trying to apply the OTA update for 5.1 on my M8 converted to GPE 5.01, but had to update to the stock recovery, and found myself in the same situation with the "Decryption Unsuccessful" message.
Following Klayderpus' steps to recover, but I'm running into a few issues:
1) Windows not Ubuntu so some (many) of the commands do not apply.
2) The device is not responding to adb, although it was prior to the "upgrade". Fastboot is working.
3) TWRP was not on the device, in fact I never could get to the recovery after trying to install the stock recovery when I converted to GPE 5.01 many months ago
I have a fresh nandroid backup, so I am just trying to get the device running. Being without the phone is causing me great pain....
I upgraded the firmware to 4.16 and did the factory reset from the stock 4.16 recovery. The phone boots back to the "Decryption Unsuccessful" message.
I am not sure, but I think the next step for me to try is to install the GPE ROM from graffixnyc from the microSD card (need to find/buy that little SD adaptor)
Any help would be greatly appreciated!!
========================
Update;
Recovery does not see the SD card , so I won't be able to install from there.
I'll try flashing TWRP recover to see if that will show the contents of the external card
========================
Update 2:
TWRP does see the external card, but the install failed as it is unable to mount /data and /storage.
I'm out of ideas....HELP!!
========================
Update 3
I noticed the "factory reset" in HBOOT and thought I'd try that instead of the "Wipe" in TWRP, but only made things worse.
Now the phone comes up to the "Decryption Unsuccessful" where I can then take the reset to get it into TWRP recover
TWRP comes up directly into a screen where it's "Running OpenRecovery Script" and then reboots.
I'm going to quit now, as I am only making matters worse.....
========================
Update 4
I got TWRP to quit whatever it was doing.
Now, In TWRP > Wipe > Advanced Wipe, I cannot wipe or repair the Data partition. I see a message "Could not mount /data unable to find crypto footer". Trying to wipe the Davlik Cache fails, "Unable to mount /data, " Unable to mount storage".
========================
version-bootloader: 3.19.0.0000
version-baseband: 1.25.214500021.06G
version-main: 4.16.401.10
modelid: 0P6B12000
cidnum: 11111111
========================
I've bricked the phone and it looks permanent.
I found another thread where everyone was solving this issue running this command "mke2fs -T ext4 /dev/block/mmcblk0p8" in TWRP. I failed to notice that it was not an M8 device thread. The phone won't boot at all, and windows sees it as a usb drive.
Haste makes waste
Do you still have fastboot?
Check out the RUU collection here and grab what apllies to your device:
http://forum.xda-developers.com/ver...zw-m8-master-ruu-firmware-collection-t2946473
Make sure you use the HTC fastboot.exe from post 3
highplains914drifter said:
I was trying to apply the OTA update for 5.1 on my M8 converted to GPE 5.01, but had to update to the stock recovery, and found myself in the same situation with the "Decryption Unsuccessful" message.
Following Klayderpus' steps to recover, but I'm running into a few issues:
1) Windows not Ubuntu so some (many) of the commands do not apply.
2) The device is not responding to adb, although it was prior to the "upgrade". Fastboot is working.
3) TWRP was not on the device, in fact I never could get to the recovery after trying to install the stock recovery when I converted to GPE 5.01 many months ago
I have a fresh nandroid backup, so I am just trying to get the device running. Being without the phone is causing me great pain....
I upgraded the firmware to 4.16 and did the factory reset from the stock 4.16 recovery. The phone boots back to the "Decryption Unsuccessful" message.
I am not sure, but I think the next step for me to try is to install the GPE ROM from graffixnyc from the microSD card (need to find/buy that little SD adaptor)
Any help would be greatly appreciated!!
========================
Update;
Recovery does not see the SD card , so I won't be able to install from there.
I'll try flashing TWRP recover to see if that will show the contents of the external card
========================
Update 2:
TWRP does see the external card, but the install failed as it is unable to mount /data and /storage.
I'm out of ideas....HELP!!
========================
Update 3
I noticed the "factory reset" in HBOOT and thought I'd try that instead of the "Wipe" in TWRP, but only made things worse.
Now the phone comes up to the "Decryption Unsuccessful" where I can then take the reset to get it into TWRP recover
TWRP comes up directly into a screen where it's "Running OpenRecovery Script" and then reboots.
I'm going to quit now, as I am only making matters worse.....
========================
Update 4
I got TWRP to quit whatever it was doing.
Now, In TWRP > Wipe > Advanced Wipe, I cannot wipe or repair the Data partition. I see a message "Could not mount /data unable to find crypto footer". Trying to wipe the Davlik Cache fails, "Unable to mount /data, " Unable to mount storage".
========================
version-bootloader: 3.19.0.0000
version-baseband: 1.25.214500021.06G
version-main: 4.16.401.10
modelid: 0P6B12000
cidnum: 11111111
========================
I've bricked the phone and it looks permanent.
I found another thread where everyone was solving this issue running this command "mke2fs -T ext4 /dev/block/mmcblk0p8" in TWRP. I failed to notice that it was not an M8 device thread. The phone won't boot at all, and windows sees it as a usb drive.
Haste makes waste
Click to expand...
Click to collapse
If you have fastboot do the following commands
Fastboot oem task 28
Fastboot oem task 29
Then try to flash your rom or ruu.
dottat said:
If you have fastboot do the following commands
Fastboot oem task 28
Fastboot oem task 29
Then try to flash your rom or ruu.
Click to expand...
Click to collapse
No Fastboot, nothing. Device was charged, but now acts as if the battery is dead. the Power button does nothing even after a long press.
Bad day...
Klayderpus said:
I previously ran LolliGPE but was long overdue for an update. I downloaded the latest version and copied the image to my phone and flashed the ROM. I decided to go try a dirty install first to see if I could keep everything I had, since I had already been running a previous version and after reviewing the changelog did not see anything recommending to wipe clean. After installing successfully, Android asked me to enter my password to decrypt my data (I don't recall ever encrypting my data?), and so I did. It then told me that my password was right, but the data was corrupt, and presented me a button to reset my phone. The button redirected me to recovery and automatically attempted to wipe /data and then re-mount it, but the wipe failed. I rebooted again with the same issue, same failed attempt to wipe. I went to install the zip again, and this time do a full wipe, but it was unable to mount my phone's storage nor my SD card. I am not able to mount either at all now.
What's the best course of action? I'd like to retain as much as I can and avoid wiping all of the internal storage clean. Is there a simpler fix to this or am I doomed?
HBOOT: 3.19.0.0000
RADIO: 1.09.20.0926
OS: 3.28.605.4
EDIT: For anyone else having a problem like this that at least wants to get their data back, here's what you should do (I assume you know how to work with Linux!):
Make sure you have the latest version of TWRP and ADB.
Boot the phone into recovery mode and connect the phone to your computer via USB
Run "ls -al /dev/block/platform/msm_sdcc.1/by-name" and check the output. Make a note of the partition marked "userdata" - for me, it was /dev/block/mmcblk0p48.
Either: simply use adb pull to copy this file to your computer (this will require about 26 gigs of space), or attempt to mount the file. To use adb pull, execute "adb pull /dev/block/<ID> ./data" (ID being what you marked down). Your data partition will be copied to /data. To mount, use "mount -t ext4 /dev/block/<ID> /userdata". Whatever's left of your data will be on your phone's new /userdata folder.
Use ADB to pull what files you want from /userdata. If you pulled the partition, skip this step.
If you copied the files you wanted over, you're done. If you pulled the entire partition, you're going to want to try and mount it. On Windows, there are various tools to mount Linux partitions, a quick Google will find some good ones. However, if the data is corrupt, it will not work. I recommend attempting to repair the partition on linux, with the command "e2fsck -f -y /path/to/data", replacing the path to your data file as necessary. Once done, run "mount -t ext4 /path/to/data /mnt/data", replacing the paths as necessary.
Once mounted, you can access your data wherever it was mounted. If e2fsck appeared to fix many errors, chances are most of your data will be in the lost+found folder, and you'll need to sort through this yourself. If you're lucky, then your data will be intact and readily usable. Internal SD card data is located at ./media/0.
To fix the partitions and get Android back up and running, you need to install the latest firmware, format your data in TWRP, factory reset, and then flash a ROM again. Here's what I did to do that, without an SD card. If you have an SD card, simply copy your ROM zip to the SD card and skip the final steps:
Make sure you have the latest version of TWRP and ADB, and download the latest copy of the firmware (check the development forum here).
Boot the phone (doesn't matter to what) and run adb reboot bootloader. When your phone reboots, double-check by running fastboot reboot-bootloader.
Put your phone in RUU mode with fastboot oem rebootRUU. The phone will restart and the HTC logo will come up.
Wait a couple seconds, then run fastboot flash zip firmware.zip, where firmware.zip is the firmware you want to flash.
The first time you do this, it will fail saying something like "FAILED (remote: 90 hboot pre-update! please flush image again immediately)". Ignore this, run the last command again: fastboot flash zip firmware.zip
The progress bar will appear and begin filling. Wait until fastboot is finished flashig it (the progress bar may not fill completely), wait an extra 5 seconds or so, and then do fastboot reboot.
The phone will reboot. Android will still be messed up, but you can verify the partitions are in working order by checking adb shell cat /proc/emmc.
Once you know the partitions are working, get back into TWRP/recovery: adb reboot recovery
Format /data and wipe /cache, /data, dalvik/art cache, etc (factory reset). You will lose the contents of your internal storage and everything else.
If you don't have the ROM zip on an sd card, make sure the zip is in the same directory as adb and run adb push rom.zip /sdcard/rom.zip, where rom.zip is the ROM. You can also copy it to the external sd by swapping /sdcard/rom.zip with /external_storage/rom.zip.
Once copied, reboot into recovery and flash the zip. Back to normal!
Click to expand...
Click to collapse
Hey
I have a HTC one m7 verizon & same problem storage decryption failed. See my case here in below post. And please tell me if anything possible. Please......
http://forum.xda-developers.com/verizon-htc-one/help/storage-encryped-htc-one-m7-vzw-s-t3279869

Categories

Resources