yashsingh1/xdaforums huggingface dataset:
[Moto G5 Guides, News, & Discussion] TheFixItMan:
Are you using a virtual machine or live dvd

If virtual machine make sure the virtual hard drive is big enough or dynamically expandable

If live dvd make sure you have mounted the hard drive you are extracting to - I presume it's formatted as ntfs (fat32 can only support 2gb file sizes)

Check the drive path you are extracting to - drive letters will be different from windows and you may be trying to extract to the live dvd temp storage path

I assume you are using 7zip or equivalent extractor
[Moto G5 Guides, News, & Discussion] somnath911:
worked perfectly

thanks a lot.:D:D:D:laugh::laugh:

you made my day
[Moto G5 Guides, News, & Discussion] manupa14:
Actually I was just trying to regularly extract it on windows and then move it to a portable drive for later use in Linux
[Moto G5 Guides, News, & Discussion] TheFixItMan:
Use 7zip to extract it

As long as the drive is nfts formatted it should extract it
[Moto G5 Guides, News, & Discussion] jeanmiguel:
I used winrar 5.40 64bits en windows 10 for extract and copy the file of 31gb to an external hard drive..

then with linux and the command of page 1, pass the file to microsd memory 32gb sandisk
[Moto G5 Guides, News, & Discussion] manupa14:
It worked! worked perfectly on xt1671. Thank you very much
[Moto G5 Guides, News, & Discussion] K_Orcheski:
as I have not solved my problem, is there a bootloader already unlocked to install on my xt1672?
[Moto G5 Guides, News, & Discussion] TheFixItMan:
To unlock your bootloader if you have never unlocked it you need to follow the process outlined here

https://motorola-global-portal.custhelp.com/app/standalone/bootloader/unlock-your-device-a

However you don't need an unlocked bootloader to flash stock firmware via fastboot or to follow this guide so I don't know why you have posted here

As this is off topic no further support will be given
[Moto G5 Guides, News, & Discussion] ivanliz27:
excellent work thanks, I was able to relive my xt1671, use ubuntu to format the sd and create the booteable, again thanks
[Moto G5 Guides, News, & Discussion] masterbeto:
vc poderia dizer qual imagem vc usou pra unbrick o xt1672, tenho um igual e tentei com a imagem de 32gb e tbm com a imagem de 16gb, nenhuma fez o celular dar boot, tem algum passo diferente q vc tenha usado pra fazer dar o boot?
[Moto G5 Guides, News, & Discussion] TheFixItMan:
As per xda rules all posts MUST be in English or have an English translation with it

Everything is provided for you on the first post - only use the image on the first post & follow the guide
[Moto G5 Guides, News, & Discussion] matheus alves oliveira:
moto g5

I'm going to take the test with 32gb card class 10. My cell phone is the g5 xt1672 bike. I'm already in the teminal doing the commands

:laugh::laugh::laugh:
[Moto G5 Guides, News, & Discussion] matheus alves oliveira:
matheus@matheus-VirtualBox:~/Downloads$ sudo dd bs=4M if=mmcblk0.img of=/dev/sdb status=progress oflag=sync

[sudo] senha para matheus:

31268536320 bytes (31 GB, 29 GiB) copiados, 7984 s, 3,9 MB/s

7455+0 registros de entrada

7455+0 registros de saída

31268536320 bytes (31 GB, 29 GiB) copiados, 7984,49 s, 3,9 MB/s

matheus@matheus-VirtualBox:~/Downloads$

results is completed?:eek:

---------- Post added at 07:53 PM ---------- Previous post was at 07:15 PM ----------

my g5 bike does not turn on the power off, nor power + down, but it recognizes as another name somebody help me pls:crying::crying::crying::crying::crying:
[Moto G5 Guides, News, & Discussion] masterbeto:
i try in my moto g5 xt1672, it no work for me

if i put card sd 32 gb no detect in windows 10, if i remove card sd he detect qualcomm 9008
[Moto G5 Guides, News, & Discussion] Jperaltapolo:
It worked perfect on my XT-1671

but now my 32 Gb memory does not work, as I can format it to work again.
[Moto G5 Guides, News, & Discussion] masterbeto:
in linux mint have app usbformater, use it
[Moto G5 Guides, News, & Discussion] Jperaltapolo:
live my moto g5

Corrijo, just format the sd from the since phone as neither with linux, nor windows recognized, my moto g5 came back to life with 4G LTE ACTIVE.

thank you.
[Moto G5 Guides, News, & Discussion] matheus alves oliveira:
mine too

on windows 7

---------- Post added at 03:06 PM ---------- Previous post was at 02:48 PM ----------

I'll have to wait for a new method to revive my cell phone. xt 1672

celular:crying::crying::crying::crying::crying::crying::crying::crying::crying::crying::crying:
[Moto G5 Guides, News, & Discussion] TheFixItMan:
Obviously windows will not detect your sd card once you have wrote the image - its a Linux image

You can use mini tool in windows to remove the partition & create a new fat32 partition once you have finished

The method on the first post will work on all varients of the Moto G5 Cedric if done correctly

You may need a larger sd card if you don't have the minimum amount of space free after formatting - see requirements in first post
[Moto G5 Guides, News, & Discussion] matheus alves oliveira:
my memory card gives 29.71 gb and the file is 29.1, and ends up leaving space, I thank you for your help.

translated by google translate:legal:

---------- Post added at 02:39 PM ---------- Previous post was at 01:49 PM ----------

how do I make this partition that you spoke for windows 7?
[Moto G5 Guides, News, & Discussion] TheFixItMan:
If your sd card doesn't show at least 31.3gb free after formatting you need a larger sd card!

If you want to create the bootable mmcblk0 image on sd card you must use linux

If you just want to format your sd for use with any device just delete the partition & create a new one & format it as fat32

You can do this in Linux or windows - I gave an example you could use mini tool (3rd party software) to do this in windows - just select sd card - delete partition - create new partition - format fat32
[Moto G5 Guides, News, & Discussion] mohamednashat:
i need CEDRIC_TEFES_NPPS25.137-93-12_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml

my phone moto g5 xt1676

after download Moto G5 1st November 2017 update

the phone not restart after press fast reboot in cmd

my phone not work now

wha should i do

please help
[Moto G5 Guides, News, & Discussion] mohamednashat:
how ? help me

help ?explain
[Moto G5 Guides, News, & Discussion] TheFixItMan:
If you can get into the bootloader menu on your phone flash stock firmware via fastboot commands

If you can't get it into the bootloader menu on your phone follow the entire guide on the first post
[Moto G5 Guides, News, & Discussion] TheFixItMan:
Once you have finished following the guide and have used your sd to boot the phone you can then format it for use with your phone as storage

Either format it with your phone or pc

If using windows use something like minitool to remove the partition on the sd card & create a new fat32 partition
[Moto G5 Guides, News, & Discussion] mohamednashat:
no my phone not working

i have 16 gb sd card not 32gb

---------- Post added at 07:34 AM ---------- Previous post was at 07:30 AM ----------

if u have video give me the link how i make this

after make new fat32 partion i burn the img file by prog like rufus ?

but i dont have sd card ? ihave otg and hard disk 500 gb

if this not work ? i will buy sd card but i want the stock rom link for moto g5 xt1676 because the rom i downloaded bricked my device and the correct command lines

---------- Post added at 07:44 AM ---------- Previous post was at 07:34 AM ----------

did your phone worked?

and sd card give 31.3 because i want buy one
[Moto G5 Guides, News, & Discussion] TheFixItMan:
It must be at least 32gig - buy a 64gig card just to be safe as after formatting it always shows less space available

The image MUST be written to the sdcard using the method on the first post - No other method will work including rufus

The method on the first post has been confirmed working - please read it fully!
[Moto G5 Guides, News, & Discussion] remigiusz.k55:
Will this method in the first post also work also for a Moto G5 XT1676 ? I have also tried downgrade back from stock Oreo 8.1 here from the forum back to the November 2017 CEDRIC_NPP25.137-93 update to get back to Android 7.0 and after rebooting it bricked itself complete to blank black screen :-/ Only the LED blinks when charging or plugged into my PC.

I have tried different blankflash files but nothing works. Either I get a message of wrong package or the standard Error IO. I have also tried the Qualcomm HS-USB QDLoader 9008 method with the QIL (can't remember the name) but still got only errors.

Sadly my SD cards are 32GB but too small for the mmcblk0.img file :-/ I'm really not sure if it this method will do the trick. I would need to get a 64Gb card and try the method in the first post using the linux console. Cause under RUFUS I was able to copy the image on the 32GB sd card without any errors but the Moto G5 did not response when placed the card in the phone and tried to power it up.
[Moto G5 Guides, News, & Discussion] TheFixItMan:
It will work on any moto g5 - it even states on the first post it works with your model

You MUST use the method on the first post and NOT Rufus! I even said this in the post directly above yours

I will no longer be responding to people who obviously haven't read the entire first post as it's just the same questions which have been answered time & time again

All the information is on the first post - just follow it

Feel free to post any errors with detailed information but please don't ask if it will work or about sd card sizes or using other methods other than what is on the first post
[Moto G5 Guides, News, & Discussion] remigiusz.k55:
hehe.. don't get angry the RUFUS method I know it does not work and I have read your first post, don't worry. This was not a question in my post before, just a statement. Sadly also somehow ma USB died today with the Mint Linux and I'm giving it up. So I just asked if it should really work cause I gave up my hopes on the Moto G5 :silly:

But it looks like the big 31.3GB file is needed than so no way around it. Will report when I try it out. :good:
[Moto G5 Guides, News, & Discussion] mohamednashat:
i want the stock rom link for moto g5 xt1676 because the rom i downloaded bricked my

i want the stock rom link for moto g5 xt1676 because the rom i downloaded bricked my device and the correct command ?
[Moto G5 Guides, News, & Discussion] TheFixItMan:
Seriously - commands are on first post!

Google is your friend for firmware & there's also a firmware thread in dev section!
[Moto G5 Guides, News, & Discussion] iagossilva:
this method works with locked bootloader? I accidentally hard bricked my cedric after trying to re-lock bootloader.
[Moto G5 Guides, News, & Discussion] TheFixItMan:
Flashing stock firmware via fastboot doesn't require an unlocked bootloader

You don't need an unlocked bootloader to perform anything written on the first post
[Moto G5 Guides, News, & Discussion] :
What are the rigth files to download now

Have 28 pages of posts in the topic, pages who I can't read and just in the first page have plus 1 link for download other file so, cuz this I am asking the last post with the right files and the right steps to unbrick the cedric.
[Moto G5 Guides, News, & Discussion] carlapazin:
thanks guys!!!

i've got my XT1676 back!

got signal but IMEI still 0

but... if it's working, do not touch
[Moto G5 Guides, News, & Discussion] TheFixItMan:
Everything you need is on the first post! (with the exception of stock firmware as this will vary depending on region & current stock version Google is your friend here)

Just follow the guide!
[Moto G5 Guides, News, & Discussion] remigiusz.k55:
All works fine with the mmcblk0.img file to unbrick the phone and bring back life to it lol :D :)

Don't forget to take out the sd card after it's in the bootloader screen ;)

Don't use the

fastboot erase modemst1
fastboot erase modemst2

commands so you don't get IMEI "0" :p

Thanks a lot and I will stick now with the Android 7 Version cause finally my SD card problem is gone. :good:
[Moto G5 Guides, News, & Discussion] h3sh11:
What size card did you use?
[Moto G5 Guides, News, & Discussion] carlapazin:
used a 64GB micro SD, but it works on 32GB
[Moto G5 Guides, News, & Discussion] isaacfirmo:
XT1676 Type M2675 Dual Sim

Guys, I have been trying to save my XT1676 for a few days.

After much effort, I was able to access Fastboot mode. Now I have a new problem: I can not flash gpt.bin or bootloader.img. I am receiving an error message in preflash validation. I tried the last Stock Roms and Gpt does not work. Any idea?

Roms That I used:

CEDRIC_RETAIL_7.0_NPP25.137-15_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml

CEDRIC_RETAIL_7.0_NPP25.137-33_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml

CEDRIC_RETAIL_7.0_NPP25.137-93_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml

CEDRIC_RETAIL_7.0_NPP25.137-93-2_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml

CEDRIC_RETAIL_7.0_NPPS25.137-33-10_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml

CEDRIC_RETAIL_7.0_NPPS25.137-93-8_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml
[Moto G5 Guides, News, & Discussion] TheFixItMan:
You MUST flash a firmware that is equal or newer to what was already installed on your device

You can try this firmware but it will all depend on what firmware you already had

https://xdaforums.com/showpost.php?p=77225117&postcount=221

If you have flashed the other firmware except gpt & bootloader you can use the sdcard to boot your phone - just select start normally from the bootloader menu but to be able to boot without the image written to sdcard you will need to flash gpt & bootloader

If you can't find the firmware try seeing if there is an ota update from the ota thread in general section or boot the device & see if there is a ota update - the worst that could happen is you hard brick your device again but since you have the sd card image done that doesn't really matter
[Moto G5 Guides, News, & Discussion] isaacfirmo:
TheFixItMan, thank you. I have some details that I should share. The device enters Fastboot Mode but does not display anything on the screen. The screen remains black, but I can access via Fastboot, I see the device via fastboot devices. When I try to flash gpt.bin or bootloader.img I get messages like these below:

GPT:

F:\CEDRIC_NPPS25.137-93-2-5_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml>fas

tboot flash partition gpt.bin

< waiting for device >

target reported max download size of 536870912 bytes

sending 'partition' (45 KB)...

OKAY [ 0.013s]

writing 'partition'...

(bootloader) Validating 'gpt.default.xml'

(bootloader) Image primary_gpt failed validation

(bootloader) Preflash validation failed

(bootloader) Cancelling 'gpt.default.xml'

FAILED (remote failure)

finished. total time: 0.117s

BOOTLOADER:

F:\CEDRIC_RETAIL_7.0_NPP25.137-33_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.x

ml>fastboot flash bootloader bootloader.img

target reported max download size of 536870912 bytes

sending 'bootloader' (5179 KB)...

OKAY [ 0.182s]

writing 'bootloader'...

(bootloader) Validating 'bootloader.default.xml'

(bootloader) Invalid partition name aboot

(bootloader) Invalid partition name rpm

(bootloader) Invalid partition name tz

(bootloader) Invalid partition name devcfg

(bootloader) Invalid partition name cmnlib

(bootloader) Invalid partition name cmnlib64

(bootloader) Invalid partition name keymaster

(bootloader) Invalid partition name prov

(bootloader) Invalid partition name sbl1

(bootloader) Cancelling 'bootloader.default.xml'

FAILED (remote failure)

finished. total time: 0.394s

Some test I could do to identify if I have a corrupted bootloader, a hardware problem or something?

One more thing: this device is not recognized by Rsdlite.

Thanks to the whole XDA community

:cowboy::good:
[Moto G5 Guides, News, & Discussion] TheFixItMan:
So that's not a firmware version problem it's more your device is still not being recognized correctly

I believe you should see the fastboot menu on your screen

My guess is that your sd card image hasn't been correctly written or you have a hardware fault
[Moto G5 Guides, News, & Discussion] iagossilva:
I recovered my XT1672, thank you
[Moto G5 Guides, News, & Discussion] reboko:
How?

Hello, how didi you do? 32Gb sd card? And the command?

I'm having a doubt about this. In the command is written "/dev/mmcblk0" without the "p" too. Is this correct? Or should i set: /dev/mmcblk0p, erasing only the "1" how it was previously said?

I did everything ok with a 32gb, linux mint, terminal command with no errors, but still bricked. Nothing happens when i try to boot or connect on usb. Except the white led blinking.
[Moto G5 Guides, News, & Discussion] TheFixItMan:
sudo dd bs=4M if=mmcblk0.img of=/dev/mmcblk0 status=progress oflag=sync

Is correct - the p is part of the next section - block 0 position 1 so the position 1 needs removing

Your sdcard maybe too small after formatting - you may need a 64bit card
[Moto G5 Guides, News, & Discussion] ponti1994:
hi Fix it man ! i can get into the bootloader menu with 32gb sd card, but when the flashing process has finished my xt1670 dont start.

i have some questions

should i remove the sd card just before put all the fastboot commands on powershell ?

i tried with 3 firmwares (NPPS25.137-93-2-5 and XT1670_XT1677_CEDRIC_NPP25.137-33)

anyway thank u. nice guide. at least i can enter bootloader menu after 4 months of hardbrick.

(sory for the bad english)
[Moto G5 Guides, News, & Discussion] TheFixItMan:
Your phone will only boot without sdcard if you successfully flash gpt & bootloader

If you get a downgrade error then your firmware you are trying to flash is too old

If all other parts flash successfully you might still be able to boot your phone from the fastboot menu but you won't be able to start your phone without the sdcard

Once you have entered the fastboot menu you can remove the sd card but like I said - phone won't boot without it unless you successfully flash gpt & bootloader
[Moto G5 Guides, News, & Discussion] mezooyahya:
hey everyone . i have moto g5 xt1676 it was rooted and work 100% with android 8 then i flash it with his stock rom again after flash it ask for update 226m when i instal this update my g5 become black screen and only led flashing then i use mmcblk0.img flash it on 64gb sdcard and my g5 booting with the card when i flash the stock rom and finsh its back dead again i use 2 roms both same

CEDRIC_NPP25.137-33_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml

CEDRIC_RETAIL_7.0_NPP25.137-93_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml

need help please and ty for this nice work
[Moto G5 Guides, News, & Discussion] TheFixItMan:
Read my post directly above yours
[Moto G5 Guides, News, & Discussion] mezooyahya:
now all my problem if i want my g5 start mast make sd card 64gb in and when powr on get it out or get in bootloard same in recovery same i must use 64gb card always in all .somethings wrong in my bootloader if there fix for my boot thats will help. and sorry for my english .im form eygpt.

and by the way in cmd

(bootloader) Image not signed or corrupt.

i change boot.img from 2 roms and still gave me same error

so that why i use my sd card always in and out to start or get in bootloader.:(

Bootloader Failed remote failure

failed verification
[Moto G5 Guides, News, & Discussion] TheFixItMan:
Read my previous post three posts above yours

Try different firmware - the gpt & bootloader needs to be from the same firmware

Most boot.img will say not signed/corrupt as they have not been signed by Motorola - this is the kernel & will not effect phone booting without sd card

To boot without SD card you need to successfully flash gpt & bootloader

If you get a downgrade error when flashing gpt your firmware is too old

Any other error also try other firmware until you find one that works
[Moto G5 Guides, News, & Discussion] jimmy999x:
good morning, greetings from Argentina, I told them what happened to me, the process worked on my motorola moto g5 (XT1671) the computer started normally when I put the 64gb micro sd, I entered fastboot mode but the problem is that when installing a new firmware (found in this forum) the device stops turning on when I remove the microsd, I guess I'll have to find the stock software for my model and variant (2gb ram, 16 internal and dual sim)

PD: when I started the equipment with the sd, the model of the device had changed to XT1676, I live in Argentina, if someone has the stock software I would appreciate it to pass it to me to try
[Moto G5 Guides, News, & Discussion] TheFixItMan:
This is because you might of flashed firmware from that model (which probably bricked your phone in the first place)

With regards to booting without the SD I've answered that question in about my last 3 posts so I'm not going to repeat myself - all I will say is gpt needs flashing successfully
[Moto G5 Guides, News, & Discussion] fstabman:
Regarding gpt and bootloader issues, you really need to use the latest firmware. Just putting it out there for information, I did two tests:

Test 1: Bootloader unlocked, I used the NPPS25.137-93-2-5 stock nougat firmware on Fedray's guide to install Oreo and then installed the first Oreo soak test OTA. I downgraded and lost my IMEI as normal, but I was able to flash gpt and bootloader just fine with the same firmware (NPPS25.137-93-2-5) and as a result I could also lock the bootloader.

Test 2: Bootloader locked, applied both Oreo soak test OTAs in order, worked just fine, but I was unable (after unlocking the bootloader once again) to flash NPPS25.137-93-2-5 without having problems with gpt and bootloader. I'm guessing I'll need to wait until official 8.1 comes out to fix this. I'm not sure if it was the second OTA update that updated gpt.bin and the bootloader or what else happened but I would suggest people to be a bit more careful with updates
[Moto G5 Guides, News, & Discussion] TheFixItMan:
If the ota updated the bootloader you would have to wait for a firmware to be released that matched that bootloader version (or newer) - you would get a pre-flash validation failure security downgrade error otherwise
[Moto G5 Guides, News, & Discussion] mezooyahya:
only need the rigth cmd for gpt & bootloader in rom

CEDRIC_RETAIL_7.0_NPP25.137-93_cid50_subsidy-DEFAULT_regula

and ty my brother:)

just show me the rigth step after i get sd card out and ready to flash in fast boot

and ty again.
[Moto G5 Guides, News, & Discussion] TheFixItMan:
Steps are on the first post

If you get error flashing gpt & bootloader then your firmware is most likely too old - I've explained this in about my last 5 posts now so I've covered this topic which is why I will just refer you to my previous posts

If you flashed an 8.1 ota & bricked your phone you may have to wait for 8.1 firmware to be released

gpt & bootloader will only flash successfully if it matches or is newer than the version already on your phone!
[Moto G5 Guides, News, & Discussion] mezooyahya:
thats rigth when i back in v 8.1 work 100% and fix imie and have good network

only the bootloard have the problem .so I think I have to wait for 8.1 firmware

released. :good:
[Moto G5 Guides, News, & Discussion] jimmy999x:
Thank you very much, I will continue testing when I buy a micro SD of 64GB (the one I had was borrowed) at least I know that my device can be revived, thank you very much, you saved my life!
[Moto G5 Guides, News, & Discussion] mohamednashat:
your mobile is work or not ?

reply on the message
[Moto G5 Guides, News, & Discussion] mezooyahya:
yes only if mobile power off must get in sd card for boot then get out after that every think normal

calls and network and every things only boot for power on need sd only

thats all my problem .the only think not work rigth it bootoader .

and my g5 run with android v 8.1 and i flash it after flash twrp 3.1.1.img use cmd and

not cmd reboot just volume- to recovery mode then flash rom 8.1 and reboot mobile

he will not pwoer on must use sd card for pwoer on after that every think normal.
[Moto G5 Guides, News, & Discussion] WiserJr:
How to erase the "1"?