[SOLVED] Can't format /data partition - LG Optimus 4X HD

I've tried flashing my LG 4X HD with Zaiben RC8 using TWRP but it got stuck after the LG spalsh screen. Went back to TWRP and noticed that it was showing 0MB of Internal Storage and can't mount/format the /data partition. Managed to change the recovery to CWM through TWRP's terminal but still cant format/mount it. Does any1 have any idea on how to proceed? It also doesn't appear listed in ADB...
EDIT1: Also can't mount/format /sdcard partition... I was using latest cm10.2 previous to trying to flash zaiben... :/
Update2: Managed to get it connected to ADB, but still don't know what can I do to solve this...
update3: It seems I can't get into fastboot...

Only after a few many hours I noticed that the Mounts and Storage menu in CWM 6.0.4.5 was scrollable, and the last format option in there did actually format the whole /data partition and allowed me to mount it and flash a new ROM afterwards still don't know what caused this, though.

Related

Cache Error

hi
Im having a lot of problems with my phone, I tried to load a new ROM, and I cant!!
Im using CWM 6.0.2.8
when I boot up it says
Cant Mount Cache/recovery/command
Cant Mount Cache/recovery/log
Cant Open Cache/recovery/log
Cant Mount Cache/recovery/last_log
Cant Open Cache/recovery/last_log
when I do a factory wipe, it gets stuck on
Formatting /cache
When I try to wipe/format the cache partition, it is the same story.
When I try to install a new rom, I get
image attached. CAN SOMEONE PLEASE HELP. Also some of my root software is corrupt.
What do I do?
I think I had same problem, wiping the cache part took quite long, but I eventually was able to install my new rom... though all my apps are still there, but at least part of the new rom is there (custom nav bar)
pretty much the same errors I got
ps: you're trying to flash cm 10.1, do you have a kernel for it ? read somewhere you shouldn't use CWM for flashing cm 10.1 with kernel ...
found it: http://forum.xda-developers.com/showthread.php?t=2167381
[ known issues ]
adb doesnt work in recovery (can be fixed)
USB storage doesnt mount in recovery (can be fixed, i think)
formating data partition WILL FORMAT THE INTERNAL STORAGE (FIXED IN v02)
external SDCARD is required to take backups and flashing ROM (FIXED IN v02)
do not use this for flashing CM10.1 (u will need to use the CM kernel for that)
that's what the link says, you need CM kernel for it

Error mounting /sd-ext and factory reset

I tried to flash the ROM Nitrogen [Android UnChained] yesterday, and since I had a ext3 partition on my SD-Card i used his tool to convert it.
After that the ROM was working fine but wasn't recognizing my SDCard. Long story short, I ended up today making a full flash, Stock ROM 2.3.6 with ODIN because my phone was stuck in a bootloop for the recovery.
Now I flashed the CWM with Odin but phone does not boot the ROM.
I removed my SDCard and tried to make a Factory Reset in Recovery and when it tries to format /sd-ext I got the message: "E:format_volume: make_extf4fs failed on /dev/block/mmcblk0p2"
When I insert the SDCard and try to make the Factory Reset the Recovery just go back to the initial screen.
When I try to mound sd-ext it just says: Error mounting /sd-ext! If i choose in "mounts and storage" > "format /sd-ext" it goes back to initial screen, like rebooting the Recovery.
Please help me with that. I think the /sd-ext partition is messed up after I used the tool to convert it "PSN's Ext4 conversion tool".
Also my computer is Windows 8, couldn't recognize phone in download mode, used my friends Windows 7 computer to flash Stock ROM and CWM with ODIN.
And now I formated my SDCard and I have the primary partition as FAT32 and the second partition as EXT3, logical, with MiniTool.
TL;DR
Phone doesnt boot ROM, can't mount sd-ext!
edit:
Format the SDCard and recreated the partition with CWM, now I can format without a problem. Will try to flash another ROM now.
It's weird, when I flash the Stock ROM with Odin, and on the first boot it says: Updating package, and suddenly there's an error mounting /data
edit:
Fixed after creating the sd-ext as EXT4 with minitool and as Primary. Reinstalled the Nitrogen ROM and now my sd works. Phone is back

[Q] Stuck in bootloader and recovery

So I was backing up a rom in TWRP recovery when the phone randomly rebooted. I went back to recovery to see if I could do a backup and now I can't mount the /data directory at all. Whatever I try to do when accessing the directory, it says unable to mount. I tried using the file explorer and it shows an empty directory. Other screens show internal storage as 0mb. I've also tried using CWM but same, can't mount data. I already wiped /system so I can't reboot, and I can't install a rom w/o access to /data (same thing when doing adb sideload).
Any ideas how to get this fixed?
Thanks!
EDIT: Somehow right when I posted this question, I got access to /data again... -_-
EDIT2: Same problem again, tried side loading a rom and can't access data anymore
Same problem again, tried side loading a rom and can't access data anymore... any ideas?!?

Can't mount /system in twrp 2.8.3.0

I updated my twrp from 2.7.1 to 2.8.3.0. I haven't flashed a rom in a while, so I don't know for sure that it was working on the old one but I did install CM11 using 2.7.1. Now with 2.8.3 when I go into recovery and wipe is says it worked, but in red there is the error: "E: unable to mount /system".
I tried to repair it with twrp, using format /system as ext4, then wipe and it seems to work and mount correctly, but if I restart, into recovery the /system no longer mounts and gives the same error if I try to wipe it. When I select repair, it says the partition is 0mb. When I format as ext4 it then shows as the correct size (~1.8GB).
So bottom line is that when I try to flash a new rom, it gets stuck at the formating /system step. I think the problem is with twrp but I'm not sure. Any ideas what to do?
I have a T-mobile HTC one M7. It was CM11, but everything is wiped. TWRP 2.8.3. S-off unlocked bootloader.
Thanks!
modman21 said:
I updated my twrp from 2.7.1 to 2.8.3.0. I haven't flashed a rom in a while, so I don't know for sure that it was working on the old one but I did install CM11 using 2.7.1. Now with 2.8.3 when I go into recovery and wipe is says it worked, but in red there is the error: "E: unable to mount /system".
I tried to repair it with twrp, using format /system as ext4, then wipe and it seems to work and mount correctly, but if I restart, into recovery the /system no longer mounts and gives the same error if I try to wipe it. When I select repair, it says the partition is 0mb. When I format as ext4 it then shows as the correct size (~1.8GB).
So bottom line is that when I try to flash a new rom, it gets stuck at the formating /system step. I think the problem is with twrp but I'm not sure. Any ideas what to do?
I have a T-mobile HTC one M7. It was CM11, but everything is wiped. TWRP 2.8.3. S-off unlocked bootloader.
Thanks!
Click to expand...
Click to collapse
first of all the most reliable version of TWRP recovery is stil 2.6.3.3 or 2.6.3.4, most of the users on here would agree with me on that, newer is not always better.
Also, have you tried the format data option, select wipe then format data button, be warned though, this will wipe everything including your sdcard (internal) if this option works you will then have to sideload or push a rom to your device before you can flash.
Seanie280672 said:
first of all the most reliable version of TWRP recovery is stil 2.6.3.3 or 2.6.3.4, most of the users on here would agree with me on that
Click to expand...
Click to collapse
Agree 100% but CM11 require at least 2.7.0.8 to be flashed (block:by-name) and recommended version of twrp to flash CM11 is 2.7.1.2 http://wiki.cyanogenmod.org/w/Install_CM_for_m7
If not flashing a rom like CM11 still recommend using 2.6.3.3/.4 even if there are newer version.
They are talking about this in ARHD thread.
Seems a updater script problem.
Read here and below!
http://forum.xda-developers.com/showpost.php?p=57985309&postcount=84878
My 2 cents
Fain11 said:
They are talking about this in ARHD thread.
Seems a updater script problem.
Read here and below!
http://forum.xda-developers.com/showpost.php?p=57985309&postcount=84878
My 2 cents
Click to expand...
Click to collapse
Thanks for the link. I tried to find similar threads, but couldn't. They are having the same problem but with a different rom (I was trying to flash Sky Dragon android L). The solution on that thread was to use TWRP 2.6.3.3, but some people reported having no problems with 2.8.3. The install instructions for Sky Dragon say use the latest twrp but doesn't specify a version. I guess I could try TWRP 2.6.3.3 but I'm not sure if it will work since CM requires 2.7.1.
The other solution was to mount the partition manually before flashing using the terminal in recovery. This command was suggested:
Code:
run_program("/sbin/umount", "/system");
Haven't tried any of these solution myself. After 3 hours and wiping my entire data partition by accident, I USB-OTG copied my nandroid backup to my phone and did a complete recovery. Luckily the restore process didn't care about mounting /system. I may try this again with manual mounting, but likely I will wait for a twrp update. I'm not sure if twrp 2.6 supports usb-otg so it will be a pain in the ass if I wipe /data again by accident.
Random side note for anyone googling this, if you accidently wipe all the data from your sdcard and have to copy the nandroid backup for twrp, the the restore function won't recognize the files unless they are in exactly the right directory. The best way to get this is to copy the entire TWRP directory when saving your backup in the first place so you can just copy it back. If you didn't do that then just run a nandroid backup of the blank sdcard and it will recreate the folder structure for you. Then you copy the files into the correct folder.
alray said:
Agree 100% but CM11 require at least 2.7.0.8 to be flashed (block:by-name) and recommended version of twrp to flash CM11 is 2.7.1.2 http://wiki.cyanogenmod.org/w/Install_CM_for_m7
If not flashing a rom like CM11 still recommend using 2.6.3.3/.4 even if there are newer version.
Click to expand...
Click to collapse
Exactly this. I do not know the exact reason CM needs 2.7.1 so therefore I don't know if Sky Dragon needs it as well. The instructions just say use the latest twrp.
http://forum.xda-developers.com/showthread.php?t=2400161
Seanie280672 said:
first of all the most reliable version of TWRP recovery is stil 2.6.3.3 or 2.6.3.4, most of the users on here would agree with me on that, newer is not always better.
Also, have you tried the format data option, select wipe then format data button, be warned though, this will wipe everything including your sdcard (internal) if this option works you will then have to sideload or push a rom to your device before you can flash.
Click to expand...
Click to collapse
I did wipe my entire data partition (by accident), but I did not try to format it as ext4. I did format /system to ext4 (so now the partition was displaying correctly as ~1.8gb). The used the twrp repair, then wipe It seemed to work, but if I restarted right then, without even trying to flash the rom, the /system would not mount on reboot to recovery and would show as 0mb. I used all reasonable combinations and permutations of the wipe, repair and format functions on system, nothing worked.
I finally copied my nandroid backup via usb-otg and recovered back to cm11.

Can access fastboot and Recovery, but cannot flash anything

Hello and greetings from germany,
I have a problem with my Moto G 2014 XT1068. I'm coming from rooted stock KitKat (Xposed) with open bootloader and TWRP 2.8.6.0. Everything seemed fine until yesterday, when the phone just went off (0% battery) and stayed at boot animation.
I've tried a lot of things, but the phone seems to be hardbricked:
- I can access recovery, but restoring does "FAIL" (restoring boot partition works, though). Restoring "system" aborts at about 18%, "data" immediately.
- I can access the phone through fastboot, but cannot flash anything. Whatever I do, the phone isn't changed. Tried reverting to stock (getting error when flashing gpt.bin, everything else seemed to work without errors, but no changes), tested flashing other recoveries (partition size mismatch, but that seems to be normal, whatever I flash, it keeps being TWRP 2.8.6.0), or even upgrade the bootloader (no errors reported at all, but no changes made to the phone).
- I can access the phone by MTP from TWRP, but cannot write to or delete anything from the internal SD.
Do you have any further ideas or is it an hardbrick?
Thanks in advance
René
Seems like the internal SD card is damaged, or there's a faulty partition table. Have you tried repairing and formatting /system and /data partitions with TWRP? Does it read external sd cards? If yes you could try flashing CM11 (because lollipop roms need an updated bootloader) from an external sdcard and see what happens. Also your backup could be corrupted, that's why it doesn't let you restore it at all.
As for the recovery, try updating your twrp to the latest version available (3.0). You can update twrp from twrp itself, just to see if it's fastboot's fault.
Wiped /system and /data. Didn't help. Wiping /data/media led to an error.
Is there anything beyond "wipe" to repair and format those partitions?
Thanks for the hints, will try updating TWRP and installing 11 this weekend, as external SDs can be accessed.
Greetings from Germany
René

Categories

Resources