After an attempt to install Lineageos+Magisk on a Xiaomi Mi A1, ended in a boot loop,
- I installed stock from
tissot_images_V10.0.9.0.PDHMIXM_20190514.0000.00_9.0_3ded3e7b82.tgz
with containingflash_all.sh
which appliesfastboot
. I got a working starting point with a tidy a/b partitioning. - I flashed Lineage, addonsu and stock camera with a temporary (unflashed) TWRP
Everything works well but there is too little storage, Lineage displays a size of 32GB instead of 64GB
df
tells me: /dev/block/mmcblk0p49 19092180 15660496 3431684 83% /data
but blockdev --getsize64 /dev/block/mmcblk0p49
reports 55087439360
(bytes)
I mounted the userdata.img from the stock firmware mentioned above on my Linux PC and df
showed me
/dev/loop1 19092180 118172 18762328 1% /mnt/...
This seems to be the source of the problem, isn't it?
(How) can I resize the partition / file system (preferably) without loosing data)?