So, you downloaded a preconfigured Lakka image... ...and it wasn't from Lakka
Chance are, when the image you downloaded was made, it was 'frozen' from a small size SD Card Let's say 1GB for this use case
Here's what happened next:
- Burnt the image onto a 32GB card
- Set everything up
- Started uploading ROMs
- The upload failed saying you where out of space!!!
"But it's a 32GB card you say!"
See README.md on how to do this
$ ssh root@[ip_address]
Even loading the pre burnt image onto a 32GB will show you that you only have 1GB (use case) space on your SD Card
$ df -h
$ cd /
$ touch /var/lock/xbmc.disabled
$ killall -9 xbmc.bin
$ umount /storage
mmcblk0 is the default partition in Lakka... ...ALWAYS
$ parted /dev/mmcblk0
Once you start parted, you will see your cursor preceeded by (parted) instead of $ Below, in the next steps you will see (parted), this is NOT something you need to type
(parted) unit s
(parted) p
(parted) rm 2
The numbers below are sectors where to start creating and ending the next partition, the -1 just means all the way to the end
(parted) mkpart primary 258048 -1
We are now DONE in parted, you will be returned to the $ cursor
(parted) quit parted
mmcblk0p2 is the second partition of mmcblk0, which is the partition we worked with in parted
$ e2fsck -f /dev/mmcblk0p2
$ resize2fs /dev/mmcblk0p2
Remeber how we unmounted using parted...
$ mount /dev/mmcblk0p2 /storage
This time around you will notice that the sector labeled /storage has been inflated to the remaining space of your SD card. In this example (the 32GB card) you should have around 30.5GB space
$ df -h
The one we create above
$rm /var/lock/xbmc.disabled