Here is a new method to allow you to set the partition sizes when using NOOBS Lite Extra.
This is great when you have multiple OS's and want one OS to have much larger space than others.
Enjoy!
This is great when you have multiple OS's and want one OS to have much larger space than others.
How to
Step 1
We will be switching the URL that NOOBS uses to a new proxy URL that will generate the new partition files from our supplied sizes.
The base URL is:
http://files.matthuisman.nz/noobs.php?url=http://downloads.raspberrypi.org/os_list_v3.json%20http://files.matthuisman.nz/pinn.json
It's pretty long - and it's about to get a bit longer...
We now need to find the os_name of the system we want to modify.
Open the above file and you will be able to see the os_name for each available system.
Find the names for all the systems you want to set the partition sizes for.
For this example, I want to install LibreELEC + Recalbox + Lakka.
Normally they would split the free space between them.
For my 16GB Card, I want Recalbox to have 8GB and Lakka have 4GB and LibreELEC the rest.
So LibreELEC will be kept to expand and I want Recalbox to be 8000MB (8GB) & Lakka to be 4000MB (4GB).
All we need to do is append &{os_name}={size in MB}to the above URL for each system size we want to change.
Therefore my final URL is:
http://files.matthuisman.nz/noobs.php?url=http://downloads.raspberrypi.org/os_list_v3.json%20http://files.matthuisman.nz/pinn.json&recalboxOS-rpi3=8000&Lakka_RPi2=4000
If you open that URL, you will see it has modified the Recalbox & Lakka systems.
It's pretty long - and it's about to get a bit longer...
We now need to find the os_name of the system we want to modify.
Open the above file and you will be able to see the os_name for each available system.
Find the names for all the systems you want to set the partition sizes for.
For this example, I want to install LibreELEC + Recalbox + Lakka.
Normally they would split the free space between them.
For my 16GB Card, I want Recalbox to have 8GB and Lakka have 4GB and LibreELEC the rest.
So LibreELEC will be kept to expand and I want Recalbox to be 8000MB (8GB) & Lakka to be 4000MB (4GB).
All we need to do is append &{os_name}={size in MB}to the above URL for each system size we want to change.
Therefore my final URL is:
http://files.matthuisman.nz/noobs.php?url=http://downloads.raspberrypi.org/os_list_v3.json%20http://files.matthuisman.nz/pinn.json&recalboxOS-rpi3=8000&Lakka_RPi2=4000
If you open that URL, you will see it has modified the Recalbox & Lakka systems.
And let's see what that new linked partitions.json file looks like.
Great!
It will no longer try to maximise but instead set it's size to our supplied 4000MB.Once you have your correct URL, move onto the next step.
Step 2
Follow THIS post to install NOOBS Lite Extra to your SD card.(Don't eject the SD card just yet)
Step 3
We now need to edit recovery.cmdline on the root of the SD card.
Simply open it with your favourite text editor.
It will look like this
Now change alt_image_source to point to the new URL from step 1.
It should now look like thisMake sure all the text is on the first line.
Finally, we just need to tell NOOBS not to use the default OS file (as we proxy it).
This is done by adding no_default_source to the cmdline.
Therefore, the final file should look like this
That's it!
Save the file, eject the SD card and put it in your Pi and boot.Select your OS's and install.
They will use your specified sizes.Note:
The proxy script will only change partitions that have want_maximised set to true.
It will then change this to false and then set the nominal size to your specified size.
You can not use it to change the size of other partitions.