[G 2014 General] reisyreinier:
Yes, i delete usercache and datacache before reboot but anyway i run your script and this is the result for option 5

FACTORY RESET

ECHO is off.

erasing 'userdata'...

OKAY [ 0.031s]

formatting 'userdata' partition...

Erase successful, but not automatically formatting.

File system type raw not supported.

OKAY [ 0.016s]

erasing 'cache'...

OKAY [ 0.016s]

formatting 'cache' partition...

Erase successful, but not automatically formatting.

File system type raw not supported.

OKAY [ 0.031s]

finished. total time: 0.094s

Done!.........

Then reboot and nothing happens the phone is still stuck in boot logo.

Is there any pre-condition to run the process(i mean battery fully charged, etc)?

I ask you that becouse all commands return ok but dont do anything.

This is the log for complete process

reisy@desarrollo22:~/Documents/desarrollo_propio/Moviles/Motorola XT 1069/RETBR_XT1069_5.0.2_LXB22.46-28_cid12_CFC.xml$ fastboot flash partition gpt.bin

target reported max download size of 536870912 bytes

sending 'partition' (32 KB)...

OKAY [ 0.019s]

writing 'partition'...

OKAY [ 0.309s]

finished. total time: 0.328s

reisy@desarrollo22:~/Documents/desarrollo_propio/Moviles/Motorola XT 1069/RETBR_XT1069_5.0.2_LXB22.46-28_cid12_CFC.xml$ fastboot flash motoboot motoboot.img

target reported max download size of 536870912 bytes

sending 'motoboot' (2184 KB)...

OKAY [ 0.096s]

writing 'motoboot'...

(bootloader) flashing tz ...

(bootloader) flashing rpm ...

(bootloader) flashing sdi ...

(bootloader) flashing aboot ...

(bootloader) flashing sbl1 ...

OKAY [ 0.991s]

finished. total time: 1.087s

reisy@desarrollo22:~/Documents/desarrollo_propio/Moviles/Motorola XT 1069/RETBR_XT1069_5.0.2_LXB22.46-28_cid12_CFC.xml$ fastboot flash logo logo.bin

target reported max download size of 536870912 bytes

sending 'logo' (697 KB)...

OKAY [ 0.073s]

writing 'logo'...

OKAY [ 0.059s]

finished. total time: 0.131s

reisy@desarrollo22:~/Documents/desarrollo_propio/Moviles/Motorola XT 1069/RETBR_XT1069_5.0.2_LXB22.46-28_cid12_CFC.xml$ fastboot flash boot boot.img

target reported max download size of 536870912 bytes

sending 'boot' (10200 KB)...

OKAY [ 0.362s]

writing 'boot'...

OKAY [ 0.192s]

finished. total time: 0.554s

reisy@desarrollo22:~/Documents/desarrollo_propio/Moviles/Motorola XT 1069/RETBR_XT1069_5.0.2_LXB22.46-28_cid12_CFC.xml$ fastboot flash recovery recovery.img

target reported max download size of 536870912 bytes

sending 'recovery' (10280 KB)...

OKAY [ 0.373s]

writing 'recovery'...

OKAY [ 0.193s]

finished. total time: 0.566s

reisy@desarrollo22:~/Documents/desarrollo_propio/Moviles/Motorola XT 1069/RETBR_XT1069_5.0.2_LXB22.46-28_cid12_CFC.xml$ fastboot flash system system.img_sparsechunk.0

target reported max download size of 536870912 bytes

sending 'system' (257607 KB)...

OKAY [ 8.103s]

writing 'system'...

OKAY [ 4.578s]

finished. total time: 12.681s

reisy@desarrollo22:~/Documents/desarrollo_propio/Moviles/Motorola XT 1069/RETBR_XT1069_5.0.2_LXB22.46-28_cid12_CFC.xml$ fastboot flash system system.img_sparsechunk.1

target reported max download size of 536870912 bytes

sending 'system' (256614 KB)...

OKAY [ 8.071s]

writing 'system'...

OKAY [ 4.911s]

finished. total time: 12.982s

reisy@desarrollo22:~/Documents/desarrollo_propio/Moviles/Motorola XT 1069/RETBR_XT1069_5.0.2_LXB22.46-28_cid12_CFC.xml$ fastboot flash system system.img_sparsechunk.2

target reported max download size of 536870912 bytes

sending 'system' (259672 KB)...

OKAY [ 8.166s]

writing 'system'...

OKAY [ 4.764s]

finished. total time: 12.930s

reisy@desarrollo22:~/Documents/desarrollo_propio/Moviles/Motorola XT 1069/RETBR_XT1069_5.0.2_LXB22.46-28_cid12_CFC.xml$ fastboot flash system system.img_sparsechunk.3

target reported max download size of 536870912 bytes

sending 'system' (240897 KB)...

OKAY [ 7.581s]

writing 'system'...

OKAY [ 3.939s]

finished. total time: 11.520s

reisy@desarrollo22:~/Documents/desarrollo_propio/Moviles/Motorola XT 1069/RETBR_XT1069_5.0.2_LXB22.46-28_cid12_CFC.xml$ fastboot flash system system.img_sparsechunk.4

target reported max download size of 536870912 bytes

sending 'system' (38920 KB)...

OKAY [ 1.269s]

writing 'system'...

OKAY [ 0.658s]

finished. total time: 1.927s

reisy@desarrollo22:~/Documents/desarrollo_propio/Moviles/Motorola XT 1069/RETBR_XT1069_5.0.2_LXB22.46-28_cid12_CFC.xml$ fastboot flash modem NON-HLOS.bin

target reported max download size of 536870912 bytes

sending 'modem' (49356 KB)...

OKAY [ 1.595s]

writing 'modem'...

OKAY [ 0.812s]

finished. total time: 2.406s

reisy@desarrollo22:~/Documents/desarrollo_propio/Moviles/Motorola XT 1069/RETBR_XT1069_5.0.2_LXB22.46-28_cid12_CFC.xml$ fastboot erase modemst1

erasing 'modemst1'...

OKAY [ 0.059s]

finished. total time: 0.059s

reisy@desarrollo22:~/Documents/desarrollo_propio/Moviles/Motorola XT 1069/RETBR_XT1069_5.0.2_LXB22.46-28_cid12_CFC.xml$ fastboot erase modemst2

erasing 'modemst2'...

OKAY [ 0.060s]

finished. total time: 0.060s

reisy@desarrollo22:~/Documents/desarrollo_propio/Moviles/Motorola XT 1069/RETBR_XT1069_5.0.2_LXB22.46-28_cid12_CFC.xml$ fastboot flash fsg fsg.mbn

target reported max download size of 536870912 bytes

sending 'fsg' (1013 KB)...

OKAY [ 0.117s]

writing 'fsg'...

OKAY [ 0.046s]

finished. total time: 0.163s

reisy@desarrollo22:~/Documents/desarrollo_propio/Moviles/Motorola XT 1069/RETBR_XT1069_5.0.2_LXB22.46-28_cid12_CFC.xml$ fastboot erase cache

erasing 'cache'...

OKAY [ 0.063s]

finished. total time: 0.063s

reisy@desarrollo22:~/Documents/desarrollo_propio/Moviles/Motorola XT 1069/RETBR_XT1069_5.0.2_LXB22.46-28_cid12_CFC.xml$ fastboot erase userdata

erasing 'userdata'...

OKAY [ 0.067s]

finished. total time: 0.067s

reisy@desarrollo22:~/Documents/desarrollo_propio/Moviles/Motorola XT 1069/RETBR_XT1069_5.0.2_LXB22.46-28_cid12_CFC.xml$ fastboot -w

erasing 'userdata'...

OKAY [ 0.018s]

formatting 'userdata' partition...

Erase successful, but not automatically formatting.

File system type raw not supported.

OKAY [ 0.068s]

erasing 'cache'...

OKAY [ 0.043s]

formatting 'cache' partition...

Erase successful, but not automatically formatting.

File system type raw not supported.

OKAY [ 0.048s]

finished. total time: 0.178s

reisy@desarrollo22:~/Documents/desarrollo_propio/Moviles/Motorola XT 1069/RETBR_XT1069_5.0.2_LXB22.46-28_cid12_CFC.xml$ fastboot reboot

rebooting...

finished. total time: 0.001s

reisy@desarrollo22:~/Documents/desarrollo_propio/Moviles/Motorola XT 1069/RETBR_XT1069_5.0.2_LXB22.46-28_cid12_CFC.xml$

thanks in advance for your time