[Sony Xperia XZ1 Compact ROMs, Kernels, Recoveries,] munjeni:
This is interesting:

...
02-22 15:35:04.301 797 797 I tad : MiscTA Unit 2405:
02-22 15:35:04.301 797 797 I tad : WRITTEN (Size 3)

I'm searched for that unit inside j4nn trim area dump, it doesn't exist! It seems doind something special since its not public.

---------- Post added at 02:36 PM ---------- Previous post was at 02:30 PM ----------

Regarding this:

ERROR [526] Cannot open device '' (errno=2)
ERROR [64] Couldn't create a disk info
ERROR [183] Unable to create disks info
ERROR [148] dsi is NULL. Double free?
ERROR [343] Unable to destroy disks info
WARN [112] Unknown storage type:N/A
ERROR [203] LUN Error, failed to open device .
ERROR [128] LBM Error, Open LUN for system failed.
WARN [45] LBM partition collect Error, system

and one from j4nn:

Info [596] Primary GPT ok, header crc:0xa5436e26, entries crc: 0xd02818f
Info [613] Secondary GPT ok, header crc:0x8d9d7cbb, entries crc: 0xd02818f
Info [596] Primary GPT ok, header crc:0x192fec7a, entries crc: 0x8b54b583
Info [613] Secondary GPT ok, header crc:0x3bbff83, entries crc: 0x8b54b583
Info [596] Primary GPT ok, header crc:0x6d53394c, entries crc: 0x55574a13
Info [613] Secondary GPT ok, header crc:0x458d2bd1, entries crc: 0x55574a13
Info [232] LUN(fd=8) using: /dev/block/sda (size 31240192 kB)

I realy have no idea what I need to do to make it see my partitions. Seems me failed because I'm using simlinks to the real block device partitions? Anybody give me output of the folowing commands?

ls -l /dev/block/bootdevice/by-name
for TT in `ls /dev/block/bootdevice/by-name`; do blkid /dev/block/bootdevice/by-name/$TT; done

This is my output of above commands:

/dev/block/bootdevice/by-name/abl: PARTLABEL="abl" PARTUUID="32ffaf0d-c42f-424c-a79d-859312da41ad"
/dev/block/bootdevice/by-name/ablbak: PARTLABEL="ablbak" PARTUUID="8303c079-074d-4714-a7ff-85a53a65a6b6"
/dev/block/bootdevice/by-name/apdp: PARTLABEL="apdp" PARTUUID="170a4b89-8a99-48a2-b08f-1e28cd356156"
/dev/block/bootdevice/by-name/appslog: PARTLABEL="appslog" PARTUUID="467947ff-9b77-41a5-859e-bbc839b2b0bd"
/dev/block/bootdevice/by-name/bluetooth: PARTLABEL="bluetooth" PARTUUID="916695c8-335a-44b6-8f22-4027ab9bbe3e"
/dev/block/bootdevice/by-name/boot: PARTLABEL="boot" PARTUUID="2f50dbc8-fc14-93e4-4a9d-496fba338b45"
/dev/block/bootdevice/by-name/cache: PARTLABEL="cache" PARTUUID="a0844021-4cc1-3547-d2cd-0bdcc7b903c3"
/dev/block/bootdevice/by-name/cmnlib: PARTLABEL="cmnlib" PARTUUID="43a8dc60-439c-4fab-8128-d5cd512f2d53"
/dev/block/bootdevice/by-name/cmnlib64: PARTLABEL="cmnlib64" PARTUUID="5705edd6-4d1a-41c4-8bab-50c9e9680205"
/dev/block/bootdevice/by-name/cmnlib64bak: PARTLABEL="cmnlib64bak" PARTUUID="9209fbb1-0534-4c06-9dd5-2f6b3fb1602b"
/dev/block/bootdevice/by-name/cmnlibbak: PARTLABEL="cmnlibbak" PARTUUID="f880a936-1538-4692-9594-a67fd2bab5c7"
/dev/block/bootdevice/by-name/ddr: PARTLABEL="ddr" PARTUUID="bbd669cb-f23d-4213-80d7-076de00ad53d"
/dev/block/bootdevice/by-name/devcfg: PARTLABEL="devcfg" PARTUUID="62578bba-021c-474d-9c88-efef8ae32831"
/dev/block/bootdevice/by-name/devcfgbak: PARTLABEL="devcfgbak" PARTUUID="bfe2a590-a57c-42c6-b586-8eb279748294"
/dev/block/bootdevice/by-name/devinfo: PARTLABEL="devinfo" PARTUUID="b2509e68-b678-46c3-86d7-d05d432d714a"
/dev/block/bootdevice/by-name/diag: PARTLABEL="diag" PARTUUID="d8de1700-8075-11e4-b4a9-0800200c9a66"
/dev/block/bootdevice/by-name/dpo: PARTLABEL="dpo" PARTUUID="a491a307-2df4-467e-814e-9a72ef316df7"
/dev/block/bootdevice/by-name/dsp: PARTLABEL="dsp" PARTUUID="e7bad079-7740-465b-89b0-4c139dc6e83e"
/dev/block/bootdevice/by-name/FOTAKernel: PARTLABEL="FOTAKernel" PARTUUID="dbe0b276-4db9-4a0d-aca7-00684de9c467"
/dev/block/bootdevice/by-name/frp: PARTLABEL="frp" PARTUUID="2a1a70ea-fcd8-49d7-a36d-b8e551f86aab"
/dev/block/bootdevice/by-name/fsc: PARTLABEL="fsc" PARTUUID="addfb402-9749-4e22-b7f3-7a4509c3d29e"
/dev/block/bootdevice/by-name/fsg: PARTLABEL="fsg" PARTUUID="02ce263f-a65f-ffd7-3722-3fc2c04ec394"
/dev/block/bootdevice/by-name/fsmetadata: PARTLABEL="fsmetadata" PARTUUID="8cbd703a-c743-4d3f-acad-eadbea13365c"
/dev/block/bootdevice/by-name/hyp: PARTLABEL="hyp" PARTUUID="fc2f7150-c671-47d7-bd26-20a421e41543"
/dev/block/bootdevice/by-name/hypbak: PARTLABEL="hypbak" PARTUUID="5a0dbf3f-4725-4151-a411-dcc916f4bab7"
/dev/block/bootdevice/by-name/keymaster: PARTLABEL="keymaster" PARTUUID="87e3c1be-715c-45e6-9c99-1d85466db113"
/dev/block/bootdevice/by-name/keymasterbak: PARTLABEL="keymasterbak" PARTUUID="f4d5403b-3817-4882-a660-1a24fbe8bd1d"
/dev/block/bootdevice/by-name/keystore: PARTLABEL="keystore" PARTUUID="c0d43263-191c-4fb3-9cf0-be7f7d16f8df"
/dev/block/bootdevice/by-name/limits: PARTLABEL="limits" PARTUUID="0b1631d4-ef6c-439d-a621-dd8cadd0c3a4"
/dev/block/bootdevice/by-name/logfs: PARTLABEL="logfs" PARTUUID="ac42b4b4-c84a-4e24-8071-0c09b8a6a31b"
/dev/block/bootdevice/by-name/LTALabel: PARTLABEL="LTALabel" PARTUUID="9de21554-8b13-4e7d-b1e4-0371eb92073f"
/dev/block/bootdevice/by-name/misc: PARTLABEL="misc" PARTUUID="2016c355-fad2-4ee2-8a23-bb5aeadf8ec8"
/dev/block/bootdevice/by-name/modem: PARTLABEL="modem" PARTUUID="d8c27b95-60de-4d9e-a5d6-7dc2a89784be"
/dev/block/bootdevice/by-name/modemst1: PARTLABEL="modemst1" PARTUUID="195ff692-dd9f-d3a5-7fa1-5a9e5669ff4b"
/dev/block/bootdevice/by-name/modemst2: PARTLABEL="modemst2" PARTUUID="90d8f5f9-bb0a-f840-a12c-e69b426da474"
/dev/block/bootdevice/by-name/msadp: PARTLABEL="msadp" PARTUUID="651de1ad-a365-4047-a47e-bda1755ec42f"
/dev/block/bootdevice/by-name/oem: PARTLABEL="oem" PARTUUID="c83a6f3f-8b76-4b4d-9276-7b587c690e35"
/dev/block/bootdevice/by-name/persist: PARTLABEL="persist" PARTUUID="b446fbe1-457e-45b5-95a4-79cf8cf6abd1"
/dev/block/bootdevice/by-name/pmic: PARTLABEL="pmic" PARTUUID="7c59bf35-4a72-4d30-8cff-2693a93e93d6"
/dev/block/bootdevice/by-name/pmicbak: PARTLABEL="pmicbak" PARTUUID="343d0ae3-fb8d-4efd-9a45-18fa103919f8"
/dev/block/bootdevice/by-name/Qnovo: PARTLABEL="Qnovo" PARTUUID="8421b5f7-378a-4bf5-a7c2-71e4db82a0f5"
/dev/block/bootdevice/by-name/rdimage: PARTLABEL="rdimage" PARTUUID="0e39165e-9ed8-474a-a93b-b76e27299c29"
/dev/block/bootdevice/by-name/rpm: PARTLABEL="rpm" PARTUUID="2e074246-c42f-f9aa-d4be-c77831f4314b"
/dev/block/bootdevice/by-name/rpmbak: PARTLABEL="rpmbak" PARTUUID="1f2aa189-32a9-42f9-beb4-e768ecb43ce9"
/dev/block/bootdevice/by-name/sec: PARTLABEL="sec" PARTUUID="a74b3b77-77d2-4629-8bb1-c0c0ef02a770"
/dev/block/bootdevice/by-name/splash: PARTLABEL="splash" PARTUUID="249bce0b-4bc6-45f7-9fbe-6cefe557301c"
/dev/block/bootdevice/by-name/ssd: PARTLABEL="ssd" PARTUUID="ff796607-8114-4de7-b33a-daa675328d5f"
/dev/block/bootdevice/by-name/sti: PARTLABEL="sti" PARTUUID="4ac91a28-e417-4546-9503-0e1079ed3d3a"
/dev/block/bootdevice/by-name/storsec: PARTLABEL="storsec" PARTUUID="c5f81e49-38a4-41dd-b19a-159257397185"
/dev/block/bootdevice/by-name/storsecbak: PARTLABEL="storsecbak" PARTUUID="2a285f1b-3592-4285-8a0b-7a2e38ba5355"
/dev/block/bootdevice/by-name/system: UUID="71d999de-e67d-44a1-8153-caf65fdccace" TYPE="ext4" PARTLABEL="system" PARTUUID="f9cdf7ba-b834-a72a-f1c9-d6e0c0983896"
/dev/block/bootdevice/by-name/TA: PARTLABEL="TA" PARTUUID="02841782-0268-44d8-8339-11e9e3e5045c"
/dev/block/bootdevice/by-name/toolsfv: PARTLABEL="toolsfv" PARTUUID="af573771-b23d-4bbc-a806-46f2faeb123e"
/dev/block/bootdevice/by-name/tz: PARTLABEL="tz" PARTUUID="36bf6f26-09c2-0446-dd1d-0410fa887dda"
/dev/block/bootdevice/by-name/tzbak: PARTLABEL="tzbak" PARTUUID="4afce90d-cf6b-437a-9bc4-a308a617a98d"
/dev/block/bootdevice/by-name/tzxfl: PARTLABEL="tzxfl" PARTUUID="a65fc518-83d9-49e3-bb86-eb79aa73e106"
/dev/block/bootdevice/by-name/tzxflattest: PARTLABEL="tzxflattest" PARTUUID="40379b8d-3c7a-46fb-9439-6caa9721cfe0"
/dev/block/bootdevice/by-name/tzxflattestbak: PARTLABEL="tzxflattestbak" PARTUUID="27ae09db-3eea-4519-a120-a9b59f423e48"
/dev/block/bootdevice/by-name/tzxflbak: PARTLABEL="tzxflbak" PARTUUID="2d77e270-cae7-4954-9342-763a283089b9"
/dev/block/bootdevice/by-name/userdata: UUID="943e53df-e4ec-4ae4-ae37-f2d4c584d017" TYPE="ext4" PARTLABEL="userdata" PARTUUID="6ea4c6d3-957a-ab5b-7455-749893e94191"
/dev/block/bootdevice/by-name/vbmeta: PARTLABEL="vbmeta" PARTUUID="87ea1d55-4627-4a22-bfe0-7860349b4659"
/dev/block/bootdevice/by-name/vendor: PARTLABEL="vendor" PARTUUID="af51f270-1648-4538-87bd-c3e7e707cd28"
/dev/block/bootdevice/by-name/xfl: PARTLABEL="xfl" PARTUUID="d28e12ea-2f3d-4c3c-8eb9-2e9cee3f8fcc"
/dev/block/bootdevice/by-name/xflbak: PARTLABEL="xflbak" PARTUUID="4b8ce41b-5d91-42ef-bd53-8d56e5b42d08"
/dev/block/bootdevice/by-name/xflkeystore: PARTLABEL="xflkeystore" PARTUUID="a120550b-af20-477b-b715-aa2ccc349baf"
/dev/block/bootdevice/by-name/xflkeystorebak: PARTLABEL="xflkeystorebak" PARTUUID="1b075f0d-2e66-4b5b-9ad7-c45aba264800"
root@ubuntu:~# ls -l /dev/block/bootdevice/by-name
total 0
lrwxrwxrwx 1 root root 10 Oct 23 13:01 abl -> /dev/vdb11
lrwxrwxrwx 1 root root 10 Oct 23 13:01 ablbak -> /dev/vdb12
lrwxrwxrwx 1 root root 10 Oct 23 13:01 apdp -> /dev/vdb40
lrwxrwxrwx 1 root root 10 Oct 23 13:01 appslog -> /dev/vdb58
lrwxrwxrwx 1 root root 10 Oct 23 13:01 bluetooth -> /dev/vdb39
lrwxrwxrwx 1 root root 10 Oct 23 13:01 boot -> /dev/vdb38
lrwxrwxrwx 1 root root 10 Oct 23 13:01 cache -> /dev/vdb53
lrwxrwxrwx 1 root root 10 Oct 23 13:01 cmnlib -> /dev/vdb16
lrwxrwxrwx 1 root root 10 Oct 23 13:01 cmnlib64 -> /dev/vdb18
lrwxrwxrwx 1 root root 10 Oct 23 13:01 cmnlib64bak -> /dev/vdb19
lrwxrwxrwx 1 root root 10 Oct 23 13:01 cmnlibbak -> /dev/vdb17
lrwxrwxrwx 1 root root 10 Oct 23 13:01 ddr -> /dev/vdb48
lrwxrwxrwx 1 root root 10 Oct 23 13:01 devcfg -> /dev/vdb21
lrwxrwxrwx 1 root root 10 Oct 23 13:01 devcfgbak -> /dev/vdb22
lrwxrwxrwx 1 root root 10 Oct 23 13:01 devinfo -> /dev/vdb13
lrwxrwxrwx 1 root root 10 Oct 23 13:01 diag -> /dev/vdb59
lrwxrwxrwx 1 root root 10 Oct 23 13:01 dpo -> /dev/vdb42
lrwxrwxrwx 1 root root 10 Oct 23 13:01 dsp -> /dev/vdb37
lrwxrwxrwx 1 root root 10 Oct 23 13:01 FOTAKernel -> /dev/vdb47
lrwxrwxrwx 1 root root 10 Oct 23 13:01 frp -> /dev/vdb56
lrwxrwxrwx 1 root root 10 Oct 23 13:01 fsc -> /dev/vdb51
lrwxrwxrwx 1 root root 10 Oct 23 13:01 fsg -> /dev/vdb34
lrwxrwxrwx 1 root root 10 Oct 23 13:01 fsmetadata -> /dev/vdb61
lrwxrwxrwx 1 root root 9 Oct 23 13:01 hyp -> /dev/vdb7
lrwxrwxrwx 1 root root 9 Oct 23 13:01 hypbak -> /dev/vdb8
lrwxrwxrwx 1 root root 10 Oct 23 13:01 keymaster -> /dev/vdb14
lrwxrwxrwx 1 root root 10 Oct 23 13:01 keymasterbak -> /dev/vdb15
lrwxrwxrwx 1 root root 10 Oct 23 13:01 keystore -> /dev/vdb55
lrwxrwxrwx 1 root root 10 Oct 23 13:01 limits -> /dev/vdb44
lrwxrwxrwx 1 root root 10 Oct 23 13:01 logfs -> /dev/vdb46
lrwxrwxrwx 1 root root 9 Oct 23 13:01 LTALabel -> /dev/vdb2
lrwxrwxrwx 1 root root 10 Oct 23 13:01 misc -> /dev/vdb54
lrwxrwxrwx 1 root root 10 Oct 23 13:01 modem -> /dev/vdb36
lrwxrwxrwx 1 root root 10 Oct 23 13:01 modemst1 -> /dev/vdb49
lrwxrwxrwx 1 root root 10 Oct 23 13:01 modemst2 -> /dev/vdb50
lrwxrwxrwx 1 root root 10 Oct 23 13:01 msadp -> /dev/vdb41
lrwxrwxrwx 1 root root 10 Oct 23 13:01 oem -> /dev/vdb63
lrwxrwxrwx 1 root root 10 Oct 23 13:01 persist -> /dev/vdb33
lrwxrwxrwx 1 root root 9 Oct 23 13:01 pmic -> /dev/vdb9
lrwxrwxrwx 1 root root 10 Oct 23 13:01 pmicbak -> /dev/vdb10
lrwxrwxrwx 1 root root 10 Oct 23 13:01 Qnovo -> /dev/vdb60
lrwxrwxrwx 1 root root 10 Oct 23 13:01 rdimage -> /dev/vdb62
lrwxrwxrwx 1 root root 9 Oct 23 13:01 rpm -> /dev/vdb3
lrwxrwxrwx 1 root root 9 Oct 23 13:01 rpmbak -> /dev/vdb4
lrwxrwxrwx 1 root root 10 Oct 23 13:01 sec -> /dev/vdb35
lrwxrwxrwx 1 root root 10 Oct 23 13:01 splash -> /dev/vdb43
lrwxrwxrwx 1 root root 10 Oct 23 13:01 ssd -> /dev/vdb52
lrwxrwxrwx 1 root root 10 Oct 23 13:01 sti -> /dev/vdb20
lrwxrwxrwx 1 root root 10 Oct 23 13:01 storsec -> /dev/vdb23
lrwxrwxrwx 1 root root 10 Oct 23 13:01 storsecbak -> /dev/vdb24
lrwxrwxrwx 1 root root 10 Oct 23 13:01 system -> /dev/vdb65
lrwxrwxrwx 1 root root 9 Oct 23 13:01 TA -> /dev/vdb1
lrwxrwxrwx 1 root root 10 Oct 23 13:01 toolsfv -> /dev/vdb45
lrwxrwxrwx 1 root root 9 Oct 23 13:01 tz -> /dev/vdb5
lrwxrwxrwx 1 root root 9 Oct 23 13:01 tzbak -> /dev/vdb6
lrwxrwxrwx 1 root root 10 Oct 23 13:01 tzxfl -> /dev/vdb29
lrwxrwxrwx 1 root root 10 Oct 23 13:01 tzxflattest -> /dev/vdb27
lrwxrwxrwx 1 root root 10 Oct 23 13:01 tzxflattestbak -> /dev/vdb28
lrwxrwxrwx 1 root root 10 Oct 23 13:01 tzxflbak -> /dev/vdb30
lrwxrwxrwx 1 root root 10 Oct 23 13:01 userdata -> /dev/vdb66
lrwxrwxrwx 1 root root 10 Oct 23 13:01 vbmeta -> /dev/vdb57
lrwxrwxrwx 1 root root 10 Oct 23 13:01 vendor -> /dev/vdb64
lrwxrwxrwx 1 root root 8 Oct 23 13:01 xbl -> /dev/vda
lrwxrwxrwx 1 root root 10 Oct 23 13:01 xfl -> /dev/vdb25
lrwxrwxrwx 1 root root 10 Oct 23 13:01 xflbak -> /dev/vdb26
lrwxrwxrwx 1 root root 10 Oct 23 13:01 xflkeystore -> /dev/vdb31
lrwxrwxrwx 1 root root 10 Oct 23 13:01 xflkeystorebak -> /dev/vdb32

---------- Post added at 02:40 PM ---------- Previous post was at 02:36 PM ----------

[/COLOR]

I didn't created partitions, just created empty virtual disk of 32gb and using dd wrote partition.0.000 file extracted from partitions sin, and after that all partitions is auto created, only which I done after that was mkfs.ext4 system partition, data partiton, cache partition. All partitions is valid and I think have valid guids since I have wrote partiton.0.000 file over block device. I have no idea right now whats going wrong. Not understand what that readlinkat function is doing, need two good examples in ok and bad case to be able to understand that function :(

Edit:

It might be storage type N.A error is because of storage type must be scsi? I'm believing I have fail on readlinkat

Need output of recovery.fstab

Edit:

My output of the blkid didn't print LABEL but only PARTLABEL, seems I need to write it to descriptor and probably many more things is missing there. I need folowing output please:

ls -l /dev/block/bootdevice/by-name
for TT in `ls /dev/block/bootdevice/by-name`; do blkid /dev/block/bootdevice/by-name/$TT; done