Cannot expand root partition

Problem Description
Root partition uses only a fraction of the entire space.

Steps to Reproduce

  1. Login to FreedomBox.
    2, System > storage

Expected Results
Use entire space on emmc

Actual results
Storage: Low disk space:
Low space on system partition: 71% used, 928.1 MiB free.

Screenshot

Code

$ lsblk
NAME         MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
mmcblk2      179:0    0 58,2G  0 disk 
├─mmcblk2p1  179:1    0  256M  0 part /boot/efi
└─mmcblk2p2  179:2    0   58G  0 part /
zram0        253:0    0  1,9G  0 disk [SWAP]
mmcblk2boot0 179:256  0    4M  1 disk 
mmcblk2boot1 179:512  0    4M  1 disk
$ df
Filesystem     1K-blocks    Used Available Use% Mounted on
udev             1928460       0   1928460   0% /dev
tmpfs             395576    1244    394332   1% /run
/dev/mmcblk2p2   3623936 3165976     57224  99% /
tmpfs            1977864       0   1977864   0% /dev/shm
tmpfs               5120       0      5120   0% /run/lock
/dev/mmcblk2p2   3623936 3165976     57224  99% /.snapshots
tmpfs             395572       0    395572   0% /run/user/10000

Information

  • FreedomBox version: 21.7 (cannot upgrade due low disk space)
  • Hardware: Rockpro64
  • How did you install FreedomBox?: download image and wrote to emmc using dd command
1 Like

This looks like the arm64 images that we are recommending for RockPro64. The expectation is that during first boot, the 1) partition is expanded and 2) filesystem is fully expanded into the partition. Looks like step 1 got completed but not step 2. So, after this has happened, the storage app (that checks only for step 1) is reporting that everything is good and not showing an expand storage button in the interface.

Is it possible that the process of expanding got interrupted for some reason? Anyway, to remedy the situation, please run the following command as root user:

btrfs fs resize max /

Also, if you are able to reproduce the problem (perhaps with any SD card) that would be help for us fix the issue for others.

1 Like

Thanks for the answer. I reinstalled the image to emmc using the same process as before and this time it worked.

Also please change the part

FreedomBox does not work when booted from eMMC module

in the Known Issues section in FreedomBox/Hardware/RockPro64 - Debian Wiki
The system boots and works well

1 Like

Thanks, I have updated the wiki page.