I've wiped the persist, and I unpack the persist.img of fastboot rom, now everything works but adaptive brightness.
Is there any way to fix it?
could you explain how to get modify to /persist partition?
I've been try using fastboot command to erase and flashing it but always fail, it says no permission to modify partition content.
all my sensors is disabled ?
Related
Every time I try to flash boot.img for a custom ROM using fastboot the bootloader on the device crashes (gets stuck until manual reboot).
It seems to flash fine according to terminal.
To test, I just flashed the newest CWM recovery using fastboot and that worked fine. Bootloader didn't get stuck.
The device is crashing a lot since installing 1.29 ROMs so I think boot.img isn't flashing.
any ideas?
is that after changing roms?
You need to have correct boot.img for the ROM you are using.
Also, between changing ROMs, you should delete at least(!) the cache partition (fastboot erase cache), preferably whole /data (will reset to factory!).
Simply put - I think erasing cache will solve your problem: fastboot erase cache
Did you manage to resolve this in the end? I'm getting exactly the same issues.
Naturally, after posting, I realised that I was typing fastboot boot boot.img, forgetting to add the "flash"
Actual syntax: fastboot flash boot boot.img
Hello there,
I own a N5X with 32 GB of storage. After some failed flashing I reflashed stock, which works fine except that only 10.55 GB of storage are being shown in the settings.
I do not have any modifications at the moment other than TWRP and an unlocked bootloader.
I did some research and found that erasing and reflashing all these Android compenents should fix it (this example is for the N5):
Code:
fastboot erase boot
fastboot erase cache
fastboot erase recovery
fastboot erase system
fastboot erase userdata
fastboot flash bootloader bootloader.img
fastboot reboot-bootloader
fastboot flash radio radio.img
fastboot reboot-bootloader
fastboot flash system system.img
fastboot flash userdata userdata.img
fastboot flash cache cache.img
fastboot flash recovery recovery.img
flash boot boot.img
...which it didn't.
Does anyone have a solution? Is there any way to extend the partitions, maybe without wiping everything?
Thank you in advance
Tuxcraft32 said:
Hello there,
I own a N5X with 32 GB of storage. After some failed flashing I reflashed stock, which works fine except that only 10.55 GB of storage are being shown in the settings.
I do not have any modifications at the moment other than TWRP and an unlocked bootloader.
I did some research and found that erasing and reflashing all these Android compenents should fix it (this example is for the N5):
Code:
fastboot erase boot
fastboot erase cache
fastboot erase recovery
fastboot erase system
fastboot erase userdata
fastboot flash bootloader bootloader.img
fastboot reboot-bootloader
fastboot flash radio radio.img
fastboot reboot-bootloader
fastboot flash system system.img
fastboot flash userdata userdata.img
fastboot flash cache cache.img
fastboot flash recovery recovery.img
flash boot boot.img
...which it didn't.
Does anyone have a solution? Is there any way to extend the partitions, maybe without wiping everything?
Thank you in advance
Click to expand...
Click to collapse
None of those would fix the GPT partition table.
Try flashing the beta Android N OTA. That has fixed the GPT table for people who use 32GB TOT file on 16GB so perhaps it'll do the same for your reverse situation.
try fastboot format userdata. This will wipe everything tho. That should get you back to 32gb
Im not sure if there is a way to do it without wiping. Maybe flash twrp recovery and use the advanced menu to extend partition.
This worked for me:
Boot into TWRP
Choose "Wipe" -> "Advanced Wipe"
Select your "data" partition and choose "Repair or Change File System"
Select "Resize File System" - it should automatically expand your storage to fill the empty space.
Tuxcraft32 said:
Code:
fastboot flash userdata userdata.img
...which it didn't.
Does anyone have a solution? Is there any way to extend the partitions, maybe without wiping everything?
Thank you in advance
Click to expand...
Click to collapse
Your internal storage was downsized to 16 GB because of this command. The userdata.img formats the userdata partition to the base 5X storage size of 16 GB. Do not flash the userdata partition since you have a 32 GB phone.
Sent from my Nexus 5X using Tapatalk
SlimSnoopOS said:
Your internal storage was downsized to 16 GB because of this command. The userdata.img formats the userdata partition to the base 5X storage size of 16 GB. Do not flash the userdata partition since you have a 32 GB phone.
Click to expand...
Click to collapse
If that is what caused it (and the partition table is still fine), then he can probably do
fastboot erase userdata
fastboot format userdata
and it should be back to normal.
just do dalvik and cache reset from recovery
First, thank you for all of your replies <3.
TheBurgh said:
This worked for me:
Boot into TWRP
Choose "Wipe" -> "Advanced Wipe"
Select your "data" partition and choose "Repair or Change File System"
Select "Resize File System" - it should automatically expand your storage to fill the empty space.
Click to expand...
Click to collapse
Worked for me as well! I now have 24.89GB free (which is normal, isn't it?). Thanks a lot.
To you:
SlimSnoopOS said:
Your internal storage was downsized to 16 GB because of this command. The userdata.img formats the userdata partition to the base 5X storage size of 16 GB. Do not flash the userdata partition since you have a 32 GB phone.
Click to expand...
Click to collapse
and you:
beady_uk said:
try fastboot format userdata. This will wipe everything tho. That should get you back to 32gb
Click to expand...
Click to collapse
as well as you:
sfhub said:
If that is what caused it (and the partition table is still fine), then he can probably do
fastboot erase userdata
fastboot format userdata
and it should be back to normal.
Click to expand...
Click to collapse
– I think this is what I got wrong. The flash-all.sh reported an error and stopped after flashing the first couple of components so I flashed all the components manually, including the userdata.img. I will stay away from that next time.
sfhub said:
None of those would fix the GPT partition table.
Try flashing the beta Android N OTA. That has fixed the GPT table for people who use 32GB TOT file on 16GB so perhaps it'll do the same for your reverse situation.
Click to expand...
Click to collapse
Thank you for the suggestion, luckily this was not necessary.
ikyeye said:
just do dalvik and cache reset from recovery
Click to expand...
Click to collapse
I did that, with no effect.
TheBurgh said:
This worked for me:
Boot into TWRP
Choose "Wipe" -> "Advanced Wipe"
Select your "data" partition and choose "Repair or Change File System"
Select "Resize File System" - it should automatically expand your storage to fill the empty space.
Click to expand...
Click to collapse
THANK YOU! I'm glad I didn't listen to the advice to factory reset, etc. This fixed the size without losing anything.
Hi People, I'm a Moto G5 (XT1676) user. After unlocking bootloader, rooting, flashing ROMs, etc. I "broke" my phone and now mi IMEIs are 0 and lost my phone signal.
I've been reading posts of older versions (Moto G1, G3) that people seem to fix this problem by flashing oher phone's back up of fsc, hob and dhob partitions. The problem is that in my Moto G5 only fsc partition appears.
I'm not expert and don't understand too much , I'm just asking for your help please, my phone turned into a tablet .
Do anyone of you guys know what partition do I have to fix in this phone?
Can you upload a back up of those partitions for me please?
Flashing those partitions on other versions of the phone seem to fix signal problem leaving IMEI = 0, I just need my signal back.
Something that I don't know if is relevant is that when I messed up flashing things, reading posts around internet I used some commands that I think modified "persist" and "misc" partitions.
Can anyone upload those just in case too?
Sorry if something is wrong, english is not my native language.
Please help me!
EDIT!!:
I've managed to revive my phone restoring someone's persist backup from twrp, "Backup & Restore partitions" doesn't work. The file I used to fix this problem is in this link: https://mega.nz/#!Yd82hSZZ!vdmbqAG0bQhNyR5g95KOrZjVvBw2QDrirpOwhD96gPc
The only file i needed was the persist backup in that .rar
It's no my partition, I've found it around internet, searching everywhere, but it worked.
Thanks for all the people that tried to help me!
IMEI stayed 0 but my mobile signal is back!!
How to restore that partition?:
1-Install TWRP.
2-Go into Backup and make a backup of any partition there. This will create a partition folder inside TWRP folder.
3-Copy the persist backup I've shared into that backup folder.
4-Boot into twrp, restore and select persist.
5-Restore.
6-Flash stock rom again for your device.
I hope that this help anyone in the same situation. This works for Moto G5 Plus too from what I've been reading.
It would be nice if people comment their results so we can help others.
Attention!: This doesn't fix IMEI, it stays 0 but mobile signal is back.
Good Luck and thanks!
flash stock rom via fastboot
never play around with partitions unless you know what you are doing - simply typing in commands without knowing their meaning will likely muck up your device
find your stock rom firmware via the power of google
Open a command/terminal prompt where you have fastboot (if you have added fastboot to the environmental settings you can run it from any location)
The commands you will likely need are
Code:
fastboot flash partition gpt.bin
fastboot flash logo logo.bin
fastboot flash boot boot.img
fastboot flash recovery recovery.img
fastboot flash system system.img_sparsechunk0
fastboot flash system system.img_sparsechunk1
fastboot flash system system.img_sparsechunk2
fastboot flash system system.img_sparsechunk3
fastboot flash system system.img_sparsechunk4
fastboot flash modem NON-HLOS.bin
fastboot erase modemst1
fastboot erase modemst2
fastboot flash fsg fsg.mbn
fastboot erase cache
fastboot erase userdata
fastboot reboot
I have included fastboot in the link below - You will also need to download and install the moto usb drivers if you have not already done so
Platform-tools Download
TheFixItMan said:
flash stock rom via fastboot
never play around with partitions unless you know what you are doing - simply typing in commands without knowing their meaning will likely muck up your device
find your stock rom firmware via the power of google
Open a command/terminal prompt where you have fastboot (if you have added fastboot to the environmental settings you can run it from any location)
The commands you will likely need are
Code:
fastboot flash partition gpt.bin
fastboot flash logo logo.bin
fastboot flash boot boot.img
fastboot flash recovery recovery.img
fastboot flash system system.img_sparsechunk0
fastboot flash system system.img_sparsechunk1
fastboot flash system system.img_sparsechunk2
fastboot flash system system.img_sparsechunk3
fastboot flash system system.img_sparsechunk4
fastboot flash modem NON-HLOS.bin
fastboot erase modemst1
fastboot erase modemst2
fastboot flash fsg fsg.mbn
fastboot erase cache
fastboot erase userdata
fastboot reboot
I have included fastboot in the link below - You will also need to download and install the moto usb drivers if you have not already done so
Platform-tools Download
Click to expand...
Click to collapse
I've already tried flashing stock rom but the problem is still there, I've also tried some custom roms too without success.
I know is my fault, I touched where I didn't have to.
I don't know what else to try, I think flashing other's back up partitions is my last shot.
I don't know if you are a Moto G5 user, but if you are, can you share those partitions to me?
Thanks for your reply.
Your gonna need an EFS / QCN backup. Do you know how to set the modem to diagnostic mode?
SvenRL said:
Your gonna need an EFS / QCN backup. Do you know how to set the modem to diagnostic mode?
Click to expand...
Click to collapse
From what I've been reading Moto G doesn't have a EFS partition, I've found in other forums that Moto G4 series have that data in "Persist" partition, and that partition is the one i've been touching..
That's why I'm asking if someone can backup that partition and share to me.
There is an app that does the job "Partitions Backup & Restore", I think you need root to use it.
I need that Persist backup just to try fix my phone, if you have Moto G5, can you help me with that?
Yes I know how to set it into diagnostic mode. (I've been trying apps and programs that in that mode fix qualcomm devices without success).
Thanks for your reply!
Can someone please help me with a "persist" partition backup please? I really need help.
Hi Jerito. Sorry to take a few days to reply to your PM. Been away.
Not sure i can help with this one as am not knowledgeable about copying particular partitions.
About the most comprehensive rebuild i have ever done was what i posted about doing it file by file and if i was in your situation, well, thats what i'd try.
Can you somehow extract the partition you are after out of a ROM??
I'll do you a qcn backup, wait till early hours of Monday morning. I'm curious cause i have the same issue with my lenovo P2, no persist partition, but I think the persist partition is created from the fsg partition
astmacca said:
Hi Jerito. Sorry to take a few days to reply to your PM. Been away.
Not sure i can help with this one as am not knowledgeable about copying particular partitions.
About the most comprehensive rebuild i have ever done was what i posted about doing it file by file and if i was in your situation, well, thats what i'd try.
Can you somehow extract the partition you are after out of a ROM??
Click to expand...
Click to collapse
No problem, the best way I've found of doing a back up of that partition is through the app I've mentioned "Partition Backup and Restore", I will watch your post!
SvenRL said:
I'll do you a qcn backup, wait till early hours of Monday morning. I'm curious cause i have the same issue with my lenovo P2, no persist partition, but I think the persist partition is created from the fsg partition
Click to expand...
Click to collapse
Ok, I'll be waiting, thanks both!
Guyzzz after erase config through fastboot .... Won't get onto O.S I used xfstk , flash raw file through fastboot , all done good but while start system stucked. .. recovery stills remains
Sideload via adb done.. system stucked
Upgrade through adb to M but stucked at boot
Unlock bootloader via fastboot works installed TWRP flash custom ROM also stucked at boot
While wipping or installing shows error on TWRP...
Unable to mount Config
Help me guyzzz is this is a mother board issue ??
user531xda said:
Guyzzz after erase config through fastboot .... Won't get onto O.S I used xfstk , flash raw file through fastboot , all done good but while start system stucked. .. recovery stills remains
Sideload via adb done.. system stucked
Upgrade through adb to M but stucked at boot
Unlock bootloader via fastboot works installed TWRP flash custom ROM also stucked at boot
While wipping or installing shows error on TWRP...
Unable to mount Config
Help me guyzzz is this is a mother board issue ??
Click to expand...
Click to collapse
well this is issue with partition. if you are on twrp try to repair it with advanced wipe and repair option. use xFSTK. and then flash raw with commands not with AFT
sukhwant717 said:
well this is issue with partition. if you are on twrp try to repair it with advanced wipe and repair option. use xFSTK. and then flash raw with commands not with AFT
Click to expand...
Click to collapse
On TWRP there's no config column to select
On mount tab on TWRP I got config column but can't able to tick (select) it
I done xfstk 10 20 times and flash with fastboot commands with your thread everything seems good on PC and device but after last command fastboot reboot it reboots to system and stuck there before the setup wizard
sukhwant717 said:
well this is issue with partition. if you are on twrp try to repair it with advanced wipe and repair option. use xFSTK. and then flash raw with commands not with AFT
Click to expand...
Click to collapse
I leaved device for 1 hour nothing happens
Reboot to recovery then format data then reboot still stucked at boot logo... Update through adb sideload .. update from adb complete then reboot and after that still stuck on boot logo...
Unlock bootloader then flash TWRP and try custom rom they also stuck on boot logo
Help me m stucked and really need help
user531xda said:
Help me m stucked and really need help
Click to expand...
Click to collapse
device can not boot untill and unless config partition is formatted. there are lot of things you can try.
fastboot erase config
fastboot erase cache
fastboot erase data
fastboot erase factory
then without reboot flash raw firmware with commands
sukhwant717 said:
device can not boot untill and unless config partition is formatted. there are lot of things you can try.
fastboot erase config
fastboot erase cache
fastboot erase data
fastboot erase factory
then without reboot flash raw firmware with commands
Click to expand...
Click to collapse
Done but still same , also tried fastboot -w but not worked ... Can I use fastboot format config?? If yes then how because I think it needs partition size and partition type for the format command through fastboot
user531xda said:
Done but still same , also tried fastboot -w but not worked ... Can I use fastboot format config?? If yes then how because I think it needs partition size and partition type for the format command through fastboot
Click to expand...
Click to collapse
format command itself format it as ext4 type. you can simply use fastboot format config.
another thing you can try is.
fastboot oem start_partitioning
fastboot oem wipe config
fastboot oem stop_partitioning
you can also try format config command after starting partitioning. try once without starting partitioning if not works second time try after partitioning. use wipe command only after starting partitioning
---------- Post added at 09:33 AM ---------- Previous post was at 09:33 AM ----------
user531xda said:
Done but still same , also tried fastboot -w but not worked ... Can I use fastboot format config?? If yes then how because I think it needs partition size and partition type for the format command through fastboot
Click to expand...
Click to collapse
format command itself format it as ext4 type. you can simply use fastboot format config.
another thing you can try is.
fastboot oem start_partitioning
fastboot oem wipe config
fastboot oem stop_partitioning
you can also try format config command after starting partitioning. try once without starting partitioning if not works second time try after partitioning. use wipe command only after starting partitioning
sukhwant717 said:
format command itself format it as ext4 type. you can simply use fastboot format config.
another thing you can try is.
fastboot oem start_partitioning
fastboot oem wipe config
fastboot oem stop_partitioning
you can also try format config command after starting partitioning. try once without starting partitioning if not works second time try after partitioning. use wipe command only after starting partitioning
---------- Post added at 09:33 AM ---------- Previous post was at 09:33 AM ----------
format command itself format it as ext4 type. you can simply use fastboot format config.
another thing you can try is.
fastboot oem start_partitioning
fastboot oem wipe config
fastboot oem stop_partitioning
you can also try format config command after starting partitioning. try once without starting partitioning if not works second time try after partitioning. use wipe command only after starting partitioning
Click to expand...
Click to collapse
Thanks alot sir...really thanks it worked ..ty ty :fingers-crossed:
user531xda said:
Thanks alot sir...really thanks it worked ..ty ty :fingers-crossed:
Click to expand...
Click to collapse
glad to know that helped
sukhwant717 said:
format command itself format it as ext4 type. you can simply use fastboot format config.
another thing you can try is.
fastboot oem start_partitioning
fastboot oem wipe config
fastboot oem stop_partitioning
you can also try format config command after starting partitioning. try once without starting partitioning if not works second time try after partitioning. use wipe command only after starting partitioning
---------- Post added at 09:33 AM ---------- Previous post was at 09:33 AM ----------
format command itself format it as ext4 type. you can simply use fastboot format config.
another thing you can try is.
fastboot oem start_partitioning
fastboot oem wipe config
fastboot oem stop_partitioning
you can also try format config command after starting partitioning. try once without starting partitioning if not works second time try after partitioning. use wipe command only after starting partitioning
Click to expand...
Click to collapse
Hi guys.
I have the same problem. But
"fastboot oem start_partitioning
fastboot oem wipe config
fastboot oem stop_partitioning"
not working for me...
FAILED (remote: unknown command)
finished. total time: -0.000s
My Redmi 4x have propably broken partitions. I didn't flash global soft because his stopped... A lot of errors, problems.
I will eraseing/format cache, userdata, system, config etc.
Only TWRP 3.0.3 has working but only when i flash with fastboot and boot. When twrp are stuck, i must flash once again with fastboot...
When I am in twrp, command adb devices see my phone like "8h231h8921 recovery"
Please, help!
Long story short, read the previous thread: https://forum.xda-developers.com/t/...-product-vendor-odm-invalid-argument.4431903/
After succesfully installing the fastboot rom via Mi Flash, the phone is still in a bootloop. Tried flashing TWRP via fastboot command (fastboot boot twrp.img) but it can't decrypt the /data partition with the correct passcode anymore. after a reboot in recovery, the /cust partition also can't be mounted anymore, with error "Structure needs cleaning".
I do not have a backup of my system nor data partition, nor internal storage, so i absolutely need it to work again without wiping/formatting the data partition
EDIT: after flashing the fastboot rom again via mi flash and twrp via fastboot command, the cust error disappears but twrp still can't decrypt /data
EDIT: i decided to do a full wipe of my internal memory and the phone works again. this thread should be closed.