This guide can be applied to my S805, S905 and S912 builds. It won't work on devices with native dual-boot, e.g. WeTek. It won't work with official LE or any other build that does not use partition labels for dual booting.
WARNING: Before proceeding, remember to backup your SD card that you boot LE from. Backup the whole card using "Win 32 Disk Imager" or "dd".
If you want to keep Android on your box for any reason but don't have/want to buy/want to use a fast and big SD card for LibreELEC, it is possible to load LE from SD card and use internal memory to store your data. This way internal data partition can be shared with Android.
Advantages:
+ system responding faster - most of the times internal memory is better with random read/writes
+ no need to overwrite Android
+ you can use SD card as small as 1GB for LE (perhaps even 256MB but this guide won't cover it)
Disadvantages:
- data partition shared with Android
- LE boot time does not improve
wrxtasy edit
LE/CE 8.9 Leia additional instructions in Post #63
Basically all references to LIBREELEC_DISK posted below need to be changed to STORAGE for LE/CE 8.9
1. Identify partition that you boot from and change its label.
Login over SSH and use blkid to list disk partitions and their labels. Find a partition called LIBREELEC_DISK:
/dev/loop0: TYPE="squashfs"
/dev/cache: UUID="57f8f4bc-abf4-655f-bf67-946fc0f9f25b" TYPE="ext4"
/dev/system: LABEL="system" UUID="da594c53-9beb-f85c-85c5-cedf76546f7a" TYPE="ext4"
/dev/data: UUID="57f8f4bc-abf4-655f-bf67-946fc0f9f25b" TYPE="ext4"
/dev/mmcblk1: PTUUID="0969ebc9" PTTYPE="dos"
/dev/mmcblk1p1: SEC_TYPE="msdos" LABEL="LIBREELEC" UUID="090C-41E0" TYPE="vfat" PARTUUID="0969ebc9-01"
/dev/mmcblk1p2: LABEL="LIBREELEC_DISK" UUID="637a27c5-a4af-4919-b692-949a67ded223" TYPE="ext4" PARTUUID="0969ebc9-02"
In my case it is /dev/mmcblk1p2. Remove label from this partition:
2. Apply a label to data partition
Apply LIBREELEC_DISK partition label to internal data partition:
3. Verify partition labels
Verify that partition label was correctly applied using blkid:
/dev/loop0: TYPE="squashfs"
/dev/cache: UUID="57f8f4bc-abf4-655f-bf67-946fc0f9f25b" TYPE="ext4"
/dev/system: LABEL="system" UUID="da594c53-9beb-f85c-85c5-cedf76546f7a" TYPE="ext4"
/dev/data: LABEL="LIBREELEC_DISK" UUID="57f8f4bc-abf4-655f-bf67-946fc0f9f25b" TYPE="ext4"
/dev/mmcblk1p1: SEC_TYPE="msdos" LABEL="LIBREELEC" UUID="090C-41E0" TYPE="vfat" PARTUUID="0969ebc9-01"
/dev/mmcblk1p2: UUID="637a27c5-a4af-4919-b692-949a67ded223" TYPE="ext4" PARTUUID="0969ebc9-02"
/dev/mmcblk1: PTUUID="0969ebc9" PTTYPE="dos"
4. (Optional) Copy your data to internal memory
If you omit this step, after reboot you will have a clean system.