Howto maximise eMCC space?

Installed ubuntu server into eMCC. But utilized only 3.4 gb of my total 16 gb.
How to expand usable space ?

1 Like

Just run ‘resize2fs’:

root@Khadas:~# resize2fs /dev/rootfs 
resize2fs 1.42.13 (17-May-2015)
The filesystem is already 15050752 (1k) blocks long.  Nothing to do!

root@Khadas:~# df -hl
Filesystem      Size  Used Avail Use% Mounted on
udev            802M     0  802M   0% /dev
tmpfs           181M   10M  171M   6% /run
/dev/rootfs      14G  3.6G  9.8G  27% /
tmpfs           905M  224K  904M   1% /dev/shm
tmpfs           5.0M  4.0K  5.0M   1% /run/lock
tmpfs           905M     0  905M   0% /sys/fs/cgroup
tmpfs           181M  4.0K  181M   1% /run/user/107
tmpfs           181M   24K  181M   1% /run/user/1000
/dev/mmcblk0p2  7.2G  4.6G  2.5G  66% /media/khadas/rootfs
/dev/mmcblk0p1  128M   23M  106M  18% /media/khadas/boot
tmpfs           181M     0  181M   0% /run/user/0
root@Khadas:~# 

BTW: If your problem has been fixed, please follow the Problem Solved Button to mark it as solved

Thanks!

2 Likes

Many thanks, it’s solved.