yashsingh1/xdaforums huggingface dataset:
[Moto G Q&A, Help & Troubleshooting] therealduff1:
Ok I think I may have found the fix. Flash all of the stock files normally , then flash boot.img once more. Then the phone will boot normally but only for one time. Quickly run though setup , then in the setting app factory reset your device. Your device will reboot and reset once more. Then the device will always boot normal :D This actually seems to work. I spent all night yesterday trying to fix my device and I finally found the solution. ! ��
[Moto G Q&A, Help & Troubleshooting] FatOldSun_:
Man, I did that but it didn't work for me. Now when I reboot from fastboot the device power up directly to fastboot mode and on the log it shows

Fastboot reason: UTAG "bootmode" configured as fastboot

Anyway if I powerup from fastboot mode the phone sucks on the bootloader screen.
[Moto G Q&A, Help & Troubleshooting] sujithshn:
I had the same problem and was searching from this noon. Just now, i downloaded and flashed with Cyanogen Recovery "cm-12.1-20151117-SNAPSHOT-YOG7DAO1K9-falcon-recovery" and my problem is over now. Tried a couple of power off and restarts and now my reboots and power on will not go to recovery any more.

File is available to download at cyanogenmod website

Please make sure about your model before download. I use a Moto G 2013 XT1033 Asia Retail edition with 8GB.
[Moto G Q&A, Help & Troubleshooting] DanHidalgo:
I tried installing that recovery but I'm getting the exact same issue...

Any other solution? No one has solved it yet?
[Moto G Q&A, Help & Troubleshooting] cheppiroma:
I got the same problem here.. My Moto G default boot is to recovery. The way i could enter the rom is with Bootloader option "Normal powerup". I already try many ways, reflash custom recovery (TWRP, CWM, CM), reflash stock, and reflash custom rom, but they do nothing to this case. Is there any way to change it back to normal? I'm currently on CM 12.1 Unofficial and running TWRP 2.8.6.0. It is not panic attack, it just anoying. Thanks in advance..
[Moto G Q&A, Help & Troubleshooting] demlak:
same here.. booting always into recovery by default..

tried different twrp versions (incl. 2.8.7), CWM and cyanogen recovery.. and also tried wiping the complete system.. reinstalling stock rom incl. bootloader, recovery, etc..

everytime the same boot into recovery by default

using "fastboot reboot" in bootloader mode also boots into recovery

in bootloadermode i'm able to boot my fresh installed CM12.1 by selecting "Normal Powerup"

maybe something happened with the bootloader configuration? where to edit it?

this also did not help:

(as i understand.. this just clears the fb_mode_set value.. which directs to bootloader on boot

edit:
[Moto G Q&A, Help & Troubleshooting] cheppiroma:
Seem a lot more people had these kind of problem.. Has anyone solved it? up up for this problem.. :o
[Moto G Q&A, Help & Troubleshooting] demlak:
on #cyanogenmod channel on freenode user spudowiar helped me..

the problem:

partition /misc is fault.. and twrp (for example) does not mount this partition to wipe it correctly..

you can wipe it manualy by dd it..

but do a backup before! (just in case)
[Moto G Q&A, Help & Troubleshooting] cheppiroma:
Should i do the command on bootloader or recovery or system? Thanks before..

[SOLVED] I do the command in the mount TWRP. And voila! The boot start normaly.. Thanks Demlak ;)
[Moto G Q&A, Help & Troubleshooting] willowen100:
Could you explain what you did?

I've actually found people with same constant booting into recovery problem. I thought I was alone, but it seems I'm not.
[Moto G Q&A, Help & Troubleshooting] demlak:
there is a detailed description.. please ask more in detail..
[Moto G Q&A, Help & Troubleshooting] willowen100:
Where do I type the command; TWRP or via adb? What does the dd command do?
[Moto G Q&A, Help & Troubleshooting] mogarick:
Hi,

I've solved the problem by doing a restore to factory setting from the settings.
[Moto G Q&A, Help & Troubleshooting] demlak:
just boot twrp.. then send command via adb..

dd writes zeros into the partition "/misc".. as i wrote, this means to wipe this partition...

but this info is in this thread.. written by me and cheppiroma.. that's the reason why i don't understand your question..
[Moto G Q&A, Help & Troubleshooting] pepedro:
Hi, do this commands work in windows? When trying to do the backup I get:

EDIT

Nevermind, it worked like a charm! Thank you so much!!
[Moto G Q&A, Help & Troubleshooting] demlak:
you need to know what adb is.. and how to work with it...

just google or use this forum... there are many many informations about it..
[Moto G Q&A, Help & Troubleshooting] sl1v1k:
Thank You So Much!!! :victory:
[Moto G Q&A, Help & Troubleshooting] trexander:
i resolve this kind of issue by flashing pit
[Moto G Q&A, Help & Troubleshooting] DBZo07:
This saved my brother from a huge stress!! I have been looking solution from 8 hours!! it 2am now, thanks... It finally worked!!

Just boot in TWRP

download "platform tools"

extract it

in platform tools folder, in empty space right click+Shift and select CMD

then paste the first quoted command

second wont work dont wry, its just for backup :)

Enjoy and stay happy :)
[Moto G Q&A, Help & Troubleshooting] shortmanikos:
I can't say thank you enough! It just worked!
[Moto G Q&A, Help & Troubleshooting] demlak:
hehe.. you are all welcome.... should i make a donate button? *g*
[Moto G Q&A, Help & Troubleshooting] The power guy:
[SOLVED] Fix for device booting into recovery instead of system

I know this is late but I just had this same problem and for anyone out there, well here you go

First use TWRP or CWM and install the rom you want to use then once its done boot into Bootloader mode (NOT SYSTEM)

In fastboot from your computer type

fastboot oem fb_mode_clear

Then Do a normal Powerup

FIXED!
[Moto G Q&A, Help & Troubleshooting] demlak:
does this fix your loop more then one time?
[Moto G Q&A, Help & Troubleshooting] The power guy:
Reply to demlak

Yes it seems to fix it for the future also, but I haven't installed a new ROM only flashed some things via twrp
[Moto G Q&A, Help & Troubleshooting] manjs:
i used in my moto g but... it say me permission denied in any quotes
[Moto G Q&A, Help & Troubleshooting] lost101:
adb shell​

su​

Grant supersu permission on phone. Proceed.
[Moto G Q&A, Help & Troubleshooting] sebastiandg7:
I'm having the same issue, can you help how to get the command work?
[Moto G Q&A, Help & Troubleshooting] pepedro:
Hi, I don't remember exactly what I did, but I think I wasn't using ADB properly. I think that when I typed "adb devices" my device was not listed. You might have to start a server instance or something like that. Also you have to open a command window in the folder that adb is located or navigate to it... hope you sort this out!!
[Moto G Q&A, Help & Troubleshooting] the_f4b1:
Thank you so much! I used this command from TWRPs terminal on the device itself and it worked like a charm. You just saved my day!
[Moto G Q&A, Help & Troubleshooting] demlak:
maybe i should make a donate button, hrhr =)
[Moto G Q&A, Help & Troubleshooting] ci9her:
I tried all your solutions.. nothing is working for me... the device still gets booted in the twrp recovery itself. Also when i try to flash new recovery, it shows "max sparse size 256mb" and the recovery does not get flashed.

target max-sparse-size: 256MB

error: cannot load 'rec.img': No error
[Moto G Q&A, Help & Troubleshooting] xatyaki:
Works on MotoG4+

Works on MotoG4+. Thanks!!
[Moto G Q&A, Help & Troubleshooting] adityasreedharan:
It says, "FAILED (remote: unknown OEM command)

What do i do?!

---------- Post added at 05:27 AM ---------- Previous post was at 05:14 AM ----------

Hi, can you please give some more information, as on where to exactly type this command. I'm using TWRP 3.0.2-M1 of Zenfone 2 ze551ml.
[Moto G Q&A, Help & Troubleshooting] demlak:
you have to use google to understand what fastbootmode, recoverymode and those commands are.. this thread is not for explaining basics, that are explained all over the internet...
[Moto G Q&A, Help & Troubleshooting] megamejo:
I know it maybe late bt jst try to boot up the recovery withot flashing it, I mean the lastest TWRP.

Type this:

fastboot boot twrp.img

And from there se adb shell or the screen comand inside TWRP and type the code to erase the mentioned partition.

---------- Post added 7th March 2017 at 12:18 AM ---------- Previous post was 6th March 2017 at 11:52 PM ----------

I jst don´t know how to thank yo yo really saved my damn day dayif yo were living not that faraway id thank you properly. I´m asking yo rights to do a proper post for people in the same sitation, al the credits go to yo and your friend of CM
[Moto G Q&A, Help & Troubleshooting] yhum11:
Thanks bro... It fix my phone. I can now flash .zip rom... :D
[Moto G Q&A, Help & Troubleshooting] firkefikso:
i'm new to all of this so can someone help me and tell me where do I type this command in twrp?
[Moto G Q&A, Help & Troubleshooting] demlak:
read the postings after this.. and use baord-search.. if you got question after this.. ask again
[Moto G Q&A, Help & Troubleshooting] sriharsha2090:
same problem with MOTO G3

Even I flashed back the stock rom but even then the phone boots up in recovery mode only.
[Moto G Q&A, Help & Troubleshooting] demlak:
as described.. rom doesn't matter.. it's a bootloader-based problem on another partition.. just follow instructions
[Moto G Q&A, Help & Troubleshooting] sriharsha2090:
Works on Moto G3 XT1550 also

Thanks for the help. Finally found the solution to booting in recovery mode. thanks a lot:good:
[Moto G Q&A, Help & Troubleshooting] becznik:
C:\Users\Ave Maria\Desktop\platform-tools>adb shell dd if=/dev/zero of=/dev/block/platform/msm_sdcc.1/by-name/misc

dd: can't open '/dev/block/platform/msm_sdcc.1/by-name/misc': No such file or directory

its brick ?

after "fastboot oem fb_mode_clear"

FAILED (remote: Invalid command)

huawei g8
[Moto G Q&A, Help & Troubleshooting] caioapg:
Same Problem, Moto Z XT1650-03

Tried all methods here and no results...
[Moto G Q&A, Help & Troubleshooting] mrmazak:
The above quoted path is for Moto g partition layout. The path to the /misc partition on your phone would be could be different.

Do not know what is should be off hand.
[Moto G Q&A, Help & Troubleshooting] astmacca:
Very I had this issue with my Moto G5 a few days ago. Came across it here looking as looking whats around for my offsprungs old phone.

Havent trawled this whole thread bu below may be of some use to someone.

Prob seemed to come down to that i had somehow changed the format of the data partition. Got into TWRP and changed it back to F2FS and could then load TWRP backups again to recover.

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Just an FYI type thing that may save people a bit of digging around sometime.

I tried to get the update that just came out, but as i had TWRP as recovery, no good. Anyhow, in my trying i completely bollixed the phone. Would start, but always booted to TWRP and had various conniptions. Could not even get a TWRP backup to load. Strange not encountered before by me stuff............

Anyhow, recovered by the following method to stock and am back in business.

Boot into bootloader fastboot mode.

Extract .xml.zip format firmware file:

eg: CEDRIC_NPP25.137-15_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml.zip

to a folder on c drive of the PC that has the ADB and fastboot files in it.

In command prompt cd\ to that directory.

fastboot flash the following in sequence.

fastboot flash partition gpt.bin

fastboot flash motoboot motoboot.img

fastboot flash logo logo.bin

fastboot flash boot boot.img

fastboot flash recovery recovery.img

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 flash fsg fsg.mbn

fastboot erase cache

fastboot erase userdata

fastboot reboot

boots to stock .

Not my own work, adapted from this thread by t-bon3

https://xdaforums.com/sho....php?t=2542219

which I found thanks to eens post18 at this thread

https://xdaforums.com/g5/...t3577084/page2

After this, Motorola system update installed. On Australian XT1676 is build number NPP25.137-15-7

Patch level 1-May-2017

Still get the I cant be trusted page on power up as have unlocked bootloader.

Many thanks to all at XDA, its a resource that can certainly get you into trouble, but then out of it again.
[Moto G Q&A, Help & Troubleshooting] pcargolo:
Hi,

I've all the the tread and tried many options but nothing has worked for me yet.

My phone is the XT1626 and I'm using TWRP 3.0.2 for recovey. I'm at the TWRP screen after powering it (it goes straight to TWRP). I open the Minimal ADB and Fastboot 1.4.2 and I run the command below

adb pull /dev/block/platform/msm_sdcc.1/by-name/misc misc.img

but then I get

adb: error: remote object '/dev/block/platform/msm_sdcc.1/by-name/misc' does not exist

I saw that another user (cheppiroma) had this same problem at first then I also tried this command on the Mount screen inside TWRP but it didn't work for me.

When I try the command below

adb shell dd if=/dev/zero of=/dev/block/platform/msm_sdcc.1/by-name/misc

I get in both screens mentioned the same reply:

dd: can't open '/dev/block/platform/msm_sdcc.1/by-name/misc': No such file or directory

I'd be very happy if someone could help me. Thanks!
[Moto G Q&A, Help & Troubleshooting] demlak:
if you use "Greenify" and updated it.. maybe you get bootloop because of this.. when this is the case.. just uninstall greenify via adb in twrp..

if not.. i can't help
[Moto G Q&A, Help & Troubleshooting] pcargolo:
I'm not using Greenify. I don't even know what this is actually. Hehehe. Thanks anyway.

I also just learned that my phone uses the TWRP Athene (Moto G4), instead of the Falcon that was mentioned in the first post. Maybe the paths for misc could have changed? I don't know.
[Moto G Q&A, Help & Troubleshooting] mnoguti:
Hi!

This command on line to:

fastboot flash motoboot motoboot.img

You meant this, right?

fastboot flash bootloader bootloader.img
[Moto G Q&A, Help & Troubleshooting] metallicamilo311:
hey guys, for the athene version of moto g4 , the path is different:

try

adb shell dd if=/dev/zero of=/dev/block/platform/soc.0/7824900.sdhci/by-name/misc

works like a charm :good::good:
[Moto G Q&A, Help & Troubleshooting] aughtnaut:
Fixed Boot Loop on Moto G5 Plus

The /misc partition tip also fixed my Moto G5 Plus always booting to TWRP. I used the "adb shell" command to find the directory, which for me was /dev/block/platform/soc/7824900.sdhci/by-name/misc.

adb shell dd if=/dev/zero of=/dev/block/platform/soc/7824900.sdhci/by-name/misc

I'm going to be explicit in how I found the directory. To poke around, I used the "ls" command, which lists the directories and files on the device:

adb shell
ls /dev/block/platform
ls /dev/block/platform/soc
ls /dev/block/platform/soc/7824900.sdhci
ls /dev/block/platform/soc/7824900.sdhci/by-name
exit

I got this output, but it still worked:

dd: writing '/dev/block/platform/soc/7824900.sdhci/by-name/misc': No space left on device
2049+0 records in
2048+0 records out
1048576 bytes (1.0MB) copied, 0.095814 seconds, 10.4MB/s

Thanks to demlak, the original poster of the dd command. I never would have found that on my own.
[Moto G Q&A, Help & Troubleshooting] Krunal:
I'm having the same recovery bootloop problem on my nexus 5x. I tried this method and got the same output as urs but its still booting into TWRP :crying:

Please help
[Moto G Q&A, Help & Troubleshooting] shmp30:
Thank you sir, this help me and solved my problem on Moto Z :highfive::highfive::highfive::highfive::highfive::highfive:
[Moto G Q&A, Help & Troubleshooting] MineMasterHD:
Thanks! My Moto G5 Plus had the same issue and this was the only thing that fixed it.
[Moto G Q&A, Help & Troubleshooting] cyanogen_fan:
that worked like charm.......

i was trying to install ota update and ended up with my moto g5+ booting repeatedly into recovery.. but u saved me from the trouble of having to start from a scratch.. thanx a tonn....
[Moto G Q&A, Help & Troubleshooting] Sterben113:
If your phone is booting into recovery automatically...you can reboot to bootloader and start the device by pressing power button!

You have to do this on each restart as it boots into recovery.

Trying the above fixes .. let's see if this gets fixed!
[Moto G Q&A, Help & Troubleshooting] Ankit1187:
I tried this on my phoe Lenovo Zuk Z1, but now my phone is booting to download mode.

PLZZ some one help.

---------- Post added at 08:38 PM ---------- Previous post was at 08:36 PM ----------

I tried this on my phone Lenovo Zuk Z1, but now my phone is booting to download mode.

PLZZ someone help.

---------- Post added at 08:42 PM ---------- Previous post was at 08:38 PM ----------

I tried this on my phoe Lenovo Zuk Z1, but now my phone is booting to download mode.

PLZZ some one help.
[Moto G Q&A, Help & Troubleshooting] cacus7:
Thank you! this worked perfectly!
[Moto G Q&A, Help & Troubleshooting] Vs1607:
Heyy !! Did you install a custom kernel ....?? Like ElementalX Kernal ...... Coz the stock kernal doesn't work on rooted device..... You probably won't have to do anything hecktik..... Just flash the EX Kernal and your device must boot up.....

Lemmi knw if it works !! ?

---------- Post added at 06:29 AM ---------- Previous post was at 06:25 AM ----------

Heyy !! Did you install a custom kernel ....?? Like ElementalX Kernal ...... Coz the stock kernal doesn't work on rooted device..... You probably won't have to do anything hecktik..... Just flash the EX Kernal and your device must boot up fine....

Back then I too had the same problem .... So instead all I did was i flash the ex kernal .... And guess what !! It finally worked

Lemmi knw if it works !! :D :D
[Moto G Q&A, Help & Troubleshooting] Datamagi:
OMG this was driving me NUTS. Thanks for this. It worked! Moto g5 Plus XT1681
[Moto G Q&A, Help & Troubleshooting] jhorn85:
Worked great on g4 xt1625!
[Moto G Q&A, Help & Troubleshooting] marvynmesquita:
Something that solved to me was flashing lastest version of twrp and lastest RR rom.

The problem here was a update script.

But when i go back to stock, it keeps happening.
[Moto G Q&A, Help & Troubleshooting] analistasp:
Perfect solution

This path is correct in my g4 athene.

Finally I kicked this problem whit occurred in all boot time.

Thanks a lot!!!
[Moto G Q&A, Help & Troubleshooting] Medsic:
Oh god thank you sooo much for this one, i owe you a beer man
[Moto G Q&A, Help & Troubleshooting] h3sh11:
Any solution for this ?
[Moto G Q&A, Help & Troubleshooting] Fiksdal:
I have the exact same problem (occured for the same reason also) with the Moto Z2 Play. I figured this solution may help for me also.

adb shell dd if=/dev/zero of=/dev/block/platform/msm_sdcc.1/by-name/misc

did not work for me, as I got the output "no such file or directory". So it appears that the directory of /misc is different on my device. I used the shell and ls to find that it appears the directory for my device is

/dev/block/platform/soc/7824900.sdhci/by-name/misc

So it went like this

./adb shell dd if=/dev/block/platform/soc/7824900.sdhci/by-name/misc
boot-recoveryrecovery
--wipe_data
--reason=wipe_data_via_recovery
qe 1/112048+0 records in
2048+0 records out
1048576 bytes (1.0MB) copied, 0.080846 seconds, 12.4MB/s

However, this did nothing. My phone always still boots into recovery. Is there anything else I need to do?
[Moto G Q&A, Help & Troubleshooting] beevk:
I do have same problem. When I press REBOOT & then REBOOT SYSTEM, it boots right back to TWRP Recovery. But if I reboot it back to BOOTLOADER and select start, it boots to system. I have backup of OEM and have restored it. Nothing at this time seems to work. Any help would be appreciated.
[Moto G Q&A, Help & Troubleshooting] FTXE07:
Try flashing the stock firmware. I had the same problem with my moto c plus. When I flashed the stock firmware with SP Flash Tool, it fixed itself. Now it's booting to stock rom like it was never even bricked. Notice! You will lose twrp. (stock recovery reinstall)
[Moto G Q&A, Help & Troubleshooting] beevk:
Mine boots to system when I reboot it to bootloader and select start. Else, it always starts to TWRP by default. It was working fine before I restored OEM(I was on pixelExperience prior to restoring). I've tried

( It throws error: file not found ) or most of other things recommended here. BTW I'm using Moto G5 plus(potter). Any help would be appreciated.
[Moto G Q&A, Help & Troubleshooting] dilgreen:
Tx- sorted it for me (Moto G5 - lineage)

Thanks for this - previous fix didn't work for me.
[Moto G Q&A, Help & Troubleshooting] RobiRobs:
Thanks, this worked on my Moto Z Play too :good:
[Moto G Q&A, Help & Troubleshooting] InfinitiGuy:
Thanks for your detailed steps, this specific post finally fixed my issue as it pointed to the correct location of the /misc path on my G5 Plus.
[Moto G Q&A, Help & Troubleshooting] garethrees20:
I get the following output "dd: /dev/block/platform/soc/7824900.sdhci/by-name/misc: Permission denied"

my device when restarting/starting will always boot into recovery, the only way to enter system is to boot into bootloader and select 'start'

Any ideas?

:eek:
[Moto G Q&A, Help & Troubleshooting] John1660:
Thanks so much for this information. My G4 plus has been doing this and nothing else worked. It was really annoying if my phone rebooted while driving and I had to pull over to get it to boot into Android from the recovery.
[Moto G Q&A, Help & Troubleshooting] Illuvitar:
My solution was to do:

mfastboot oem fb_mode_set

This means that the phone will boot to the bootloader.

After power on, I have to tap the power one more button time to select 'Start' in the bootloader.

My finger is already on the button after long pressing the power button, so it's an easy work-around.
[Moto G Q&A, Help & Troubleshooting] CDVVB:
Tnx

Sounds ok... For now.

But we need to find a better solution for us that don't have an unlocked bootloader.
[Moto G Q&A, Help & Troubleshooting] gavelis:
I got the same error on Athene (G4) when I sent the command from PC. But then I booted TWRP, and went to "Advanced" - "Terminal" and then manually typed:

dd if=/dev/zero of=/dev/block/platform/soc.0/7824900.sdhci/by-name/misc

followed by an "enter/ok-button"

And that did it for me. Now my Moto G4 is always (directly) booting into Android (standard bootloader)

Thanks for your help guys :good: Now I got mine fixed too,,, And also got the Moto G4 on Android 9 Pie (AOSP Extended)
[Moto G Q&A, Help & Troubleshooting] honhon1977:
I need help

I have the same problem with Moto Z and I tried the method and did not work with me :confused::confused:
[Moto G Q&A, Help & Troubleshooting] giovannipaquier:
I am receiving the following

C:\adb> adb shell dd if=/dev/zero of=/dev/block/platform/soc.0/7824900.sdhci/by-name/misc
dd: /dev/block/platform/soc.0/7824900.sdhci/by-name/misc: write error: No space left on device

what should i do? can i just delete the "misc" file?
[Moto G Q&A, Help & Troubleshooting] Mac2132:
When I use the guide and it says to try this code:

I get the code: "Permission denied" and on my phone in SuperSU it says that I don't have permission to do that and that I need Supersu Pro?

I am using Moto G (falcon) XT1032, with Custom Rom, Android 7.1 and newest Supersu and Twrp 3.4.0.0

Could someone please help. My phones boots always in twrp recovery

EDIT: Now works. Had to write "adb root" before I could have permission to use the code
[Moto G Q&A, Help & Troubleshooting] e-bert:
Hi! Thank you very much for this solution, it fixed a Moto G5S XT1799-2. I just want to say that I've used the built-in terminal in TWRP (Advanced Menu) and directly typed the command:

dd if=/dev/zero of=/dev/block/platform/soc.0/7824900.sdhci/by-name/misc

It worked!!! Thanks again.