Omit EEROMS and resize STORAGE and CE and EE will share the 27G STORAGE partiton. All these could be done on the box through SSH directly (for 4GB drives, EEROMS will always be automatically omitted). The following should be done on Hybird/CE since on EE the EEROMS partition will be mounted to roms and bind-mounted to .update, then ports will be mounted on top of it. Umounting it on EE will be more complex for you:
The following is extremely dangerous as we are operating on a running system. You are suggested to modify it offline on a Linux machine if possible. If you fail at any of the step, do not continue as you’ll brick your installation
- Run
mount
to check for which partition is mounted, you’ll see many lines
devtmpfs on /dev type devtmpfs (rw,relatime,size=494488k,nr_inodes=123622,mode=755)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)
tmpfs on /run type tmpfs (rw,nosuid,nodev,size=200244k,nr_inodes=819200,mode=755)
/dev/mmcblk1p1 on /flash type vfat (ro,noatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,errors=remount-ro)
/dev/loop0 on / type squashfs (ro,relatime)
/dev/mmcblk1p2 on /data type ext4 (rw,noatime,data=ordered)
/dev/mmcblk1p2 on /storage type ext4 (rw,noatime,data=ordered)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,size=4096k,nr_inodes=1024,mode=755)
cgroup2 on /sys/fs/cgroup/unified type cgroup2 (rw,nosuid,nodev,noexec,relatime)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,name=systemd)
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
bpf on /sys/fs/bpf type bpf (rw,nosuid,nodev,noexec,relatime)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/pids type cgroup (rw,nosuid,nodev,noexec,relatime,pids)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct)
cgroup on /sys/fs/cgroup/debug type cgroup (rw,nosuid,nodev,noexec,relatime,debug)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
mqueue on /dev/mqueue type mqueue (rw,nosuid,nodev,noexec,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,nosuid,nodev,noexec,relatime)
tracefs on /sys/kernel/tracing type tracefs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /var type tmpfs (rw,relatime)
configfs on /sys/kernel/config type configfs (rw,nosuid,nodev,noexec,relatime)
fusectl on /sys/fs/fuse/connections type fusectl (rw,nosuid,nodev,noexec,relatime)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,nr_inodes=409600)
sunrpc on /run/nfs/rpc_pipefs type rpc_pipefs (rw,relatime)
nfsd on /proc/fs/nfsd type nfsd (rw,relatime)
/dev/mmcblk1p3 on /var/media/EEROMS type vfat (rw,nosuid,nodev,noexec,noatime,fmask=0133,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro)
- In which, you can see one mounted at
/var/media/EEROMS
, usually the last one, it could be named /dev/mmcblk1p3
if you’re booting from SDcard, or /dev/sda3
if you’re booting from USB drive. Record the drive name on paper here: /dev/mmcblk1
(without p3) for SD, /dev/sda
(without 3) for USB
- Unmount the EEROMS partition so we can safely delete it:
umount /var/media/EEROMS
- Open your drive with GNU/parted:
parted /dev/mmcblk1
or parted /dev/sda
depending on you’re booting from SD or USB
- Print the partitions, make sure there’s 3 of them, otherwise maybe you’re operating on the wrong dirve:
print
Results should be like this:
CoreELEC:~ # parted /dev/mmcblk1
GNU Parted 3.4
Using /dev/mmcblk1
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) print
print
Model: SD SD (sd/mmc)
Disk /dev/mmcblk1: 31.7GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:
Number Start End Size Type File system Flags
1 4194kB 2152MB 2147MB primary fat32 lba
2 2152MB 4295MB 2143MB primary ext4
3 4295MB 31.7GB 27.4GB primary fat32 lba
(parted)
- Delete the 3rd partiton:
rm 3
- Print the partition table again, make sure only the 3rd one (EEROMS) is removed:
print
(parted) print
print
Model: SD SD (sd/mmc)
Disk /dev/mmcblk1: 31.7GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:
Number Start End Size Type File system Flags
1 4194kB 2152MB 2147MB primary fat32 lba
2 2152MB 4295MB 2143MB primary ext4
- Resize the 2nd partition (STORAGE) to fit all the remaining space, and say Yes to confirm to resize it even it’s in use:
resizepart 2 100%
then Yes
(parted) resizepart 2 100%
resizepart 2 100%
Warning: Partition /dev/mmcblk1p2 is being used. Are you sure you want to
continue?
Yes/No? Yes
Yes
- Print the new partition table, make sure the 2nd one’s size has increased:
print
(parted) print
print
Model: SD SD (sd/mmc)
Disk /dev/mmcblk1: 31.7GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:
Number Start End Size Type File system Flags
1 4194kB 2152MB 2147MB primary fat32 lba
2 2152MB 31.7GB 29.5GB primary ext4
- Quit GNU/parted,
(parted) quit
quit
Information: You may need to update /etc/fstab.
- Resize the EXT4 FS on the 2nd partition:
resize2fs /dev/mmcblk1p2
for SD boot, resize2fs /dev/sda2
for USB boot
CoreELEC:~ # resize2fs /dev/mmcblk1p2
resize2fs 1.45.7 (28-Jan-2021)
Filesystem at /dev/mmcblk1p2 is mounted on /data; on-line resizing required
old_desc_blocks = 1, new_desc_blocks = 4
The filesystem on /dev/mmcblk1p2 is now 7205888 (4k) blocks long.
- Check the disk space with
df -h
CoreELEC:~ # df -h
Filesystem Size Used Available Use% Mounted on
devtmpfs 482.9M 4.0K 482.9M 0% /dev
tmpfs 195.6M 13.2M 182.4M 7% /run
/dev/mmcblk1p1 2.0G 1.2G 815.6M 60% /flash
/dev/loop0 199.0M 199.0M 0 100% /
/dev/mmcblk1p2 27.3G 503.3M 26.8G 2% /data
/dev/mmcblk1p2 27.3G 503.3M 26.8G 2% /storage
tmpfs 488.9M 0 488.9M 0% /dev/shm
tmpfs 4.0M 0 4.0M 0% /sys/fs/cgroup
tmpfs 488.9M 2.2M 486.6M 0% /var
tmpfs 488.9M 0 488.9M 0% /tmp
Now the STORAGE partition takes all the remaining space, and there’s no EEROMS anymore. You gave up the convinience of plug the drive to Windows PC and copy roms, but you can utilize more disk space now