Hi guys I just recently encountered this issue where fastboot cannot flash anything (boot.img, system.img) on my device if its data and cache partitions are on F2FS. It shows the device serial number if I key in "fastboot devices", however.
Are there any modifications that I need to make to make fastboot work with a F2FS-enabled device?
Side Question: Does flashing a ROM via TWRP revert the F2FS partition back to EXT4? Or would it cause some problems with the ROM/flashing process?
No, only when you format that partition, then it go back to EXT4. Some roms work in EXT4 only, some work both
Related
LG Optimus F3 for Virgin Mobile:
I hosed my /data partition.
The fix after much research is to use adb to 'erase' (not format) 'userdata' folder/parition? Reason being is that my f3 can't connect to a PC anymore, some hardware thing or related to this issue perhaps, so I cant run adb on it to fix my /data mount issue I am having from CWM. I can flash a rom but it won't boot because of this.
The fix is in the userdata erase. Can someone make me a .zip that will achieve this userdata erase? The command is fastboot erase userdata. It's messed up a situation yes I know....if my usb wasn't f'ed up I could probably do this myself in a minute.
So to summarize:
My usb to pc doesn't work (it will charge though and it's not a driver thing)
CWM flashes a rom error free.
A reboot after flash goes back into cwm recovery.
Everything mounts fine except /data in CWM recovery.
I can't use fastboot due to my usb to pc issue.
Help?
Flashable zip would be my only hope to easily save this phone.
My theory is that my internal memory "/data?" is corrupted and can't be mounted. My fault I believe.
I look forward to your help.
hi folks,
I wanted to update on lollipop but no success.
I don't know why but my Z2 (locked bootloader, rooted, 4.4.4. custom rom, philzdualrecovery) don't work as it should.
In flashtool I stuck in "reading device information" by flashing a stock rom.
In recovery (TWRP or PhilzTouch) I cannot format all my partitions. System, cache and boot did work but data not!
(I formatted system, cache and boot for preparing for a new rom.)
I see "/data" as an empty partition with 0 MB size. What happened? Entering recovery only works with an insered SD Card. Fastboot mode works also.
I tried to erase partitions but fastboot-cmd said "failed: remote command not allowed" (or something like that).
Have you any idea? Do you need more information?
Thanks alot!
So, I was trying to format my SD Card, partition table & all, since Marshmallow's adoptable storage feature messes up the partition table. Since my SD Card doesn't work in my pc, I have to use dd in recovery. This wasn't a big deal since I've already done this successfully 2 or 3 times already. So, since I knew the path of the SD Card already, I typed "dd if=/dev/zero of=/dev/mmcblk1 bs=1M count=1" . Except, I made a slight mistake & typed /dev/mmcblk0 instead of /dev/mmcblk1.
Thankfully, fastboot still worked, so all I had to do is fastboot flash partition gpt.bin to repartition my phone. Or so I thought. When I type this, it says "(bootloader) Preflash validation failed". I already know from prior experience that this error happens when you try to flash an old version of gpt or bootloader. However, these files are from the latest stock rom version, which is "SURNIA_BOOST_5.1_LPI23.29-18-S.2_cid9_subsidy-DEFAULT_CFC.xml".
So, is there anyway I can fix this, or am i hard bricked? Do I just need a newer firmware?
EDIT: Just found a newer firmware, however it is not for my country or carrier. Nevertheless, I am still downloading it & I'm going to see if it can unbrick it or not.
Update
OK, so flashing the gpt.bin from the newer firmware worked, & I was able to flash TWRP, but now I have a different problem. The recovery can't mount system, cache, or data. Attempting to wipe these does nothing. When I try to format these in fastboot, I get the message "Formatting is not supported for filesystem with type 'raw'.".
What do I do now?
Flash only system pertision then data then boot. Via fastboot with original firmware of ur model no
I fixed it! Turns out constantly formatting & rebooting with TWRP actually worked.
In trying to encrypt my phone under one of the latest nightlies of CM13 the encryption process failed but left TWRP trying to unlock a corrupted system partition.
So I can't get into TWRP and my system tries to infinitely load.
Is there a way to fix this soft brick?
Can I just fastboot erase (system, cache, data?) some partitions so they're clean and TWRP tries to start so
I can flash a good rom from my memory card?
And does TWRP actually store anything essential to TWRP on any of those partitions? (system, cache, data?)
And are there any other partitions I need to wipe to ensure a unencrypted system so TWRP finds nothing
exisisting to unlock and just tries to start up looking at a empty system?
Actually format[:[<fs type>][:[<size>]] <partition> is what I'd need to use isn't it?
fastboot format system
fastboot format cache
fastboot format data ?
So yeah i'm a right that this is all i need to do to fix my device is fastboot format the partitions,
or will it make the situation worse?
But at this point without the security of a recovery I really don't want to blind shoot and try and fix without out atleast running it by someone asking if it's a good idea, I'm still a little 'green' with Android.
For all I know TWRP keeps some essential files on atleast one of the major partitions, and
may go into a worse state of I format them to remove the encryption, but right now it seems
like the fix, and i know that doing a full clean format on my device will remove encryption
as I've had my device successfully fullly encrypted many times and this is the first nasty issue
I've run into on doing a total clean upgrade and then encrypt.
Shouldn't have screwed around without it forgetting I need to receive a call on it in the morning. >_>
>_< never mind I can click the cancel button and access TWRP without mounting the partion (hello), well
if anyone would have replied thanks anyway, I figured out the problem myself.
Hi,
I accidently flash CM14.1 (dirty flash from CM13), after flash finished a notification appear said "Encryption Unsuccessful" and there is only one option "Reset Phone".
After that my Kenzo bootloop to TWRP.
I have tried :
- wipe/factory reset
- clean flash CM13 offcial
- restore backup from CM13
But my Kenzo keep bootloop to TWRP.
Please help,
Thanks in advance.
You must use fastboot command fastboot format userdata
Oscilator said:
You must use fastboot command fastboot format userdata
Click to expand...
Click to collapse
fastboot command fastboot format userdata, it's give me an error, internal memory not mounted, it said 0MB. I think TWRP has corrupted.
So, I flashed new TWRP
- fastboot flash recovery new-twrp.img
- fastboot format userdata
- fastboot boot new-twrp.img
Now I'm able to restore twrp backup.