LineageOS not detecting correctly available storage.

Expected Behavior

The system should show correctly the size of the partitions:

OnePlus3:/ # cat /proc/partitions | grep sda15
8 15 56238572 sda15

OnePlus3:/ # cat /proc/partitions | grep sde20
259 4 3080192 sde20

Current Behavior

df -h shows sda15 as 30GB

Filesystem       Size  Used Avail Use% Mounted on
rootfs           2.7G  3.4M  2.7G   1% /
tmpfs            2.7G  696K  2.7G   1% /dev
/dev/block/sde20 2.8G  1.2G  1.5G  44% /system
tmpfs            2.7G     0  2.7G   0% /mnt
/dev/block/sda15  30G  344M   30G   2% /data
/dev/block/sda3  248M  192K  248M   1% /cache
/dev/block/sde12  12M  4.1M  7.5M  36% /dsp
/dev/block/sde11  95M   84M   11M  89% /firmware
/dev/block/sde23 1.0G  128K  1.0G   1% /bt_firmware
/dev/block/sda2   27M  508K   27M   2% /persist
/data/media       30G  344M   30G   2% /mnt/runtime/default/emulated

While from the Setting's interface on Storage : It shows 32.89GB Used of 64GB (this directly after installation) with the System partition consuming all.

Possible Solution

I have tried as well to wipe everything (TWRP) and change /system filesystem as f2fs thinking that it was a filesystem issue, but it's the same behavior with both ext4 and f2fs

Steps to Reproduce

  1. On a OnePlus3
  2. Follow exactly https://wiki.lineageos.org/devices/oneplus3/install
  3. use https://mirrorbits.lineageos.org/full/oneplus3/20190129/lineage-15.1-20190129-nightly-oneplus3-signed.zip
  4. and https://mirrorbits.lineageos.org/su/20180912/addonsu-15.1-arm-signed.zip

I have read the directions.

Edited by igpg