[Moto G5 Plus Guides, News, & Discussion] kash664:
Error while locking Bootloader

I've flashed the stock ROM without an error but while locking bootloader I'm facing the following error.

>fastboot oem lock

...

(bootloader) WARNING: This command erases all user data.

(bootloader) Please re-run this command to continue.

OKAY [ 0.016s]

finished. total time: 0.031s

C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot oem lock

...

(bootloader) Check 'Allow OEM Unlock' in Android Settings > Developer

(bootloader) Options

OKAY [ 0.016s]

finished. total time: 0.022s

C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot flash oem oem.img

target didn't report max-download-size

sending 'oem' (104608 KB)...

FAILED (command write failed (Unknown error))

finished. total time: 0.000s

C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot oem lock

...

(bootloader) WARNING: This command erases all user data.

(bootloader) Please re-run this command to continue.

OKAY [ -0.000s]

finished. total time: -0.000s

C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot oem lock

...

(bootloader) Check 'Allow OEM Unlock' in Android Settings > Developer

(bootloader) Options

OKAY [ 0.031s]

finished. total time: 0.038s

C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot flash oem oem.img

target didn't report max-download-size

sending 'oem' (104608 KB)...

FAILED (command write failed (Unknown error))

finished. total time: 0.000s

C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot flash system system.img_sparsechunk.0

target didn't report max-download-size

sending 'system' (258396 KB)...

FAILED (command write failed (No error))

finished. total time: 0.016s

C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot flash system system.img_sparsechunk.1

target didn't report max-download-size

sending 'system' (256514 KB)...

FAILED (command write failed (No error))

finished. total time: 0.016s

C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot flash system system.img_sparsechunk.2

target didn't report max-download-size

sending 'system' (246302 KB)...

FAILED (command write failed (No error))

finished. total time: 0.016s

C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot flash system system.img_sparsechunk.3

target didn't report max-download-size

sending 'system' (262141 KB)...

FAILED (command write failed (No error))

finished. total time: -0.000s

C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot flash system system.img_sparsechunk.4

target didn't report max-download-size

sending 'system' (262141 KB)...

FAILED (command write failed (No error))

finished. total time: 0.008s

C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot flash system system.img_sparsechunk.5

target didn't report max-download-size

sending 'system' (262141 KB)...

FAILED (command write failed (No error))

finished. total time: 0.000s

C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot flash system system.img_sparsechunk.6

target didn't report max-download-size

sending 'system' (250531 KB)...

FAILED (command write failed (No error))

finished. total time: -0.000s

C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot flash system system.img_sparsechunk.7

target didn't report max-download-size

sending 'system' (262059 KB)...

FAILED (command write failed (No error))

finished. total time: -0.000s

C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot flash system system.img_sparsechunk.8

target didn't report max-download-size

sending 'system' (254142 KB)...

FAILED (command write failed (No error))

finished. total time: 0.016s

C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot flash boot boot.img

target didn't report max-download-size

sending 'boot' (16384 KB)...

FAILED (command write failed (No error))

finished. total time: 0.016s

C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot oem lock

...

FAILED (command write failed (No error))

finished. total time: -0.000s