[Lenovo A6000/Plus ROMs, Kernels, Recoveries, & Oth] Milaika:
Hello,

First of all, thanks for all these roms and tools for our Android devices.

I'm trying to flash this ROM on my lenovo k30-w.

I have the last twrp 3.2.2 20180708.

My lemon is on cyanogenmod 12.1 currently.

Here is my problem:

When I try to flash lineageos (or even aospEX) I have error message e1001 error 7.

I read that it should work on this device.

In any case I can not understand what is happening, I do well system formatting, cache ..., as explain, I try to flash a new kernel, then the boot.img ROM.

I deleted the assert and getprop lines.

Nothing worked for me.

No problem to reflash and return to cm12.1 with twrp .3.2.2

Edit : I read in the log that the problem is "BLKDISCARD ioctl failed: Invalid argument"

here is the twrp log

I:Set page: 'action_complete'

I:operation_end - status=0

I:Set page: 'clear_vars'

I:Set page: 'advancedwipe'

I:Set page: 'wipe'

I:Set page: 'main'

I:Set page: 'clear_vars'

I:Set page: 'main2'

I:Set page: 'install'

I:Set overlay: 'select_storage'

I:Backup folder set to '/external_sd/TWRP/BACKUPS/c571d631'

I:Set overlay: ''

I:Set page: 'clear_vars'

I:Set page: 'install'

I:Set page: 'flash_confirm'

I:Set page: 'flash_zip'

I:operation_start: 'Flashing'

Installing zip file '/external_sd/sdcard/lineage-16.0-20190808-UNOFFICIAL-a6000.zip'

Checking for Digest file...

Skipping Digest check: no Digest file found

Verifying zip signature...

Zip signature verified successfully.

I:Update binary zip

I:Zip does not contain SELinux file_contexts file in its root.

I:Legacy property environment not used in updater.

No path given to file labeling backend

selinux_android_file_context: Error getting file context handle (No such file or directory)

Target: Lenovo/Kraft-A6000/Kraft-A6000:5.0.2/LRX22G/Kraft-A6000_S061_160727:user/release-keys

Warning: No file_contextsTarget: Lenovo/Kraft-A6000/Kraft-A6000:5.0.2/LRX22G/Kraft-A6000_S061_160727:user/release-keysExtracted file "/tmp/install/bin/backuptool.functions"

Extracted file "/tmp/install/bin/backuptool.sh"

Extracted 2 file(s)

detected filesystem ext4 for /dev/block/bootdevice/by-name/systemdetected filesystem ext4 for /dev/block/bootdevice/by-name/system

about to run program [/tmp/install/bin/backuptool.sh] with 3 args

run_program: child exited with status 127

Patching system image unconditionally...

performing update

Patching system image unconditionally...blockimg version is 4

maximum stash entries 0

creating stash /cache/recovery/2bdde8504898ccfcd2c59f20bb8c9c25f73bb524/

125165568 bytes free on /cache (0 needed)

/cache/recovery/last_command doesn't exist.

erasing 229371 blocks

BLKDISCARD ioctl failed: Invalid argument

failed to execute command [erase 6,845,6832,236390,294400,295426,460800]

new data receiver is still available after executing all commands.

script aborted: E1001: Failed to update system image.

E1001: Failed to update system image.error: 1001

Updater process ended with ERROR: 7

I:Install took 0 second(s).

Error installing zip file '/external_sd/sdcard/lineage-16.0-20190808-UNOFFICIAL-a6000.zip'

Updating partition details...

I:Data backup size is 0MB, free: 12624MB.

...done

I:Set page: 'flash_done'

I:operation_end - status=1

I:Set page: 'confirm_action'

I:Set page: 'clear_vars'

I:Set page: 'flash_done'

I:Set page: 'clear_vars'

I:Set page: 'install'

I:Set page: 'main'

I:Set page: 'clear_vars'

I:Set page: 'main2'

I:Set page: 'advanced'

I:Set page: 'copylog'

I:Set page: 'action_page'

I:operation_start: 'Copy Log'

I:Copying file /tmp/recovery.log to /external_sd/recovery.log

Have a good day.