Little Faye, a 6yo girl, asked me yesterday: How many cartoons can this tvbox keep?
I checked its free space and dound out it has a little bit over 4.5gb, with nothing it it but le and a couple of kodi addons. It seems weird for a device that has 8gb of storage, so I decided to investigate it further.
Here is what I found using various commands, since fdisk and lsblk are not available in le. Blkid reports 3 partitions, although I thought there were only 2, for flash and storage respectively
# blkid
/dev/loop0: TYPE="squashfs"
/dev/cache: UUID="57f8f4bc-abf4-655f-bf67-946fc0f9f25b" TYPE="ext4"
/dev/system: UUID="0c757ab5-f929-46a0-854d-3c2c6bf1ac14" TYPE="ext4"
/dev/data: UUID="a9e78873-d2e1-4262-afd0-acb94fb7d766" TYPE="ext4"
I assume /dev/cache is on tmpfs, because df -h reports
# df -h
Filesystem Size Used Available Use% Mounted on
devtmpfs 302.7M 4.0K 302.7M 0% /dev
/dev/system 975.9M 158.6M 801.3M 17% /flash
/dev/loop0 157.5M 157.5M 0 100% /
/dev/data 4.6G 199.7M 4.3G 4% /storage
These sum up to ~5.5bg. But in parted > print, the entire 8gb of space are shown
(parted) print
print
Error: /dev/rsv: unrecognised disk label
Model: Unknown (unknown)
Disk /dev/rsv: 8389kB
Sector size (logical/physical): 512B/524288B
Partition Table: unknown
Disk Flags:
So what happened to those missing ~2.5gb? Can I resize the /storage partition so as to use them too?
Relevant outputs from le 10 x86 running from an 8gb usb stick (persistent installation)
# blkid
/dev/sda1: SEC_TYPE="msdos" LABEL_FATBOOT="LIBREELEC" LABEL="LIBREELEC" UUID="1008-0301" BLOCK_SIZE="512" TYPE="vfat" PARTLABEL="system" PARTUUID="98a01279-96ec-4231-b15f-1f4ccda52b53"
/dev/sda2: LABEL="STORAGE" UUID="4a9679c7-fc56-47ed-8780-61a4f0a3914a" BLOCK_SIZE="1024" TYPE="ext4" PARTLABEL="storage" PARTUUID="fd6ecfc9-f42c-4fe8-872f-7c6afe3c4967"
/dev/loop0: TYPE="squashfs"
# df -h
Filesystem Size Used Available Use% Mounted on
devtmpfs 806.5M 4.0K 806.5M 0% /dev
tmpfs 375.9M 8.8M 367.1M 2% /run
/dev/sda1 511.7M 263.1M 248.6M 51% /flash
/dev/loop0 243.0M 243.0M 0 100% /
/dev/sda2 6.7G 178.9M 6.5G 3% /storage
(parted) print
print
Model: SanDisk Cruzer Fit (scsi)
Disk /dev/sda: 8004MB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:
Number Start End Size File system Name Flags
1 4194kB 541MB 537MB fat16 system legacy_boot, msftdata
2 541MB 8004MB 7463MB ext4 storage
Display More
Notice that bottom part of parted that mentions the partitions and their sizes? Why is it missing from the le of the tvbox?