Install to Internal v2?


#1

So as some of you are aware when we buy our devices they come pre-loaded with the most hideous copy of Android known to man, Android in it’s nature requires many different partitions due to how it is setup.

On CoreELEC when using installtointernal we format some of these partitions and make use of them, however there is still a number of partitions that are sat there doing nothing.

I recently tried OSMC on one of my devices using a modified Vero3 image, the partition layout of the Vero3 is the exact same as your typical Android Amlogic box with 10-11 (can’t remember the exact number) different partitions, but the guys over there have done something really clever.

They have used LVM to combine all usable Android partitions into 1 big single partition for use by their users, the result is 14/16 GB of internal storage being made available to the user.

I began to wonder if we could do the same as this is something that has always irked me.

So with a few hours of tinkering with CoreELEC this evening, I managed to make some headway on it.

Pasted%20image%20at%202018_07_02%2004_28%20AM

The end result is an extra 2 GB of usable /storage data on a 16GB device.

Now is it worth bringing this to CoreELEC? I will let you guys decide.


#2

So I presume CoreELEC does now recommend / support installtointernal :crazy_face:
But only v2 ?


#3

This would seem to be a very good way of using all available space without the hassle of a user dealing directly with existing partitions.
Have you come up with any negative side to doing this?
Would it prevent a reinstall of the original OS at some future time … maybe by potentially overwriting something the original would expect to be present?
If so it might be worth a re-think.


#4

I think the AML USB Burning tool restores all, providing critical blocks are left alone.
I would be surprised if @adamg has overlooked that fact (especially after removing installtointernal from LE due to the complications that might arise from it, only a few months ago)


#5

i have two devices running ce on internal so its a yes for me.


#6

Same here, three devices using CE on internal. My vote is for yes.


#7

Here is a YES from my side also.


#8

An extra 2gb is not a lot. I suspect most users are watching movies, so they will be using external storage.
So I don’t think it’s worth the effort, but then I find running from usb is fast enough.


#9

It’s free and cleans up the partitions - why not?


#10

Why not? It’s extra work for someone. But if they don’t mind, then thats ok.


#11

The script would work the exact same way it does now where you enter installtointernal on the console and all the magic happens automatically with no extra headache for users.

The only downside would be that it wouldn’t work on older releases and only newer ones.


#12

I have no intention of ever using android on any of my devices, so this change is fine by me.


#13

Yes here! I only install to EMMC on devices that I dedicate to LE/CE anyway.


#14

The script would work the exact same way it does now where you enter installtointernal on the console and all the magic happens automatically with no extra headache for users.

The only downside would be that it wouldn’t work on older releases and only newer ones.

If there is no downside going forward then definitely yes from me.


#15

image

Update: I finally finished implementing the idea, total usable space is now 13.4GB as opposed to 12.1GB on a 16GB device, this is only 600MB shy of using a 16GB USB flash drive/SD card.

It is possible to squeeze a little more out of the usable space by using the uboot logo + recovery partitions but it didn’t seem worth it.

Updating works fine and there is no regressions for people installed with the original method or on external media.

It’s not a great deal more space but there is more room for all your thumbnails and add-ons now I guess. :slight_smile:


#16

i wonder if CE 8.90.4 will run on my vero 4K with installtointernal

If yes how to install CE on vero 4K with installtointernal


#17

I guess it would be the same as any other Chinese device.


#18

+1 voting for such a approach, either SD way (dual boot) or clean install with only necessary files and partitions required to run CoreELEC


#19

Hi AdamG

I’m a bit confused, has the new type of installtointernal (“ITI”) been implemented in 8.90.5? If yes how do I use it compared to the previous type of ITI? Does it have a new name like ITIv2? Or has it just replaced the previous ITI, so I just run it in the same way?

Thanks and very useful by the way!


#20

Do we now have installtointernal v2 on 8.95.* latest builds?

I am assuming there is no effect on Android stock reinstall using Amlogic burning tool.