Partition and Storage Configuration

By default, only 8 GB of the total eMMC storage on the ESN904 SmartNIC is allocated to the system partition. You can expand this partition to use the full available capacity, ensuring sufficient space for software packages and future updates.

Installation Steps

Before you start, make sure::

  • The operating system is already installed and booted successfully.

  • You have root or sudo privileges on the system.

  • The growpart and resize2fs utilities are available (commonly pre-installed in most Linux distributions).

Procedure

1

Remove reserved partition (mmcblk0p3)

  • It is an unused partition, reserved for data store purpose or other usage.

  • It needs to remove it firstly, then system partition(mmcblk0p2) can be extended

sudo fdisk /dev/mmcblk0 d

3

w

2

Check mmcblk0p3 already be removed

  • Only keeps mmcblk0p1 (for boot), mmcblk0p2 (for system)

lsblk

3

Extend mmcblk0p2 partition

  • ‘growpart’ is one of the utilities to extend the last partition of the disk to fill the available free space on the disk. It changes the sector’s position to the end sector of the disk.

sudo growpart /dev/mmcblk0 2

4

Resize filesystem

The ‘resize2fs’ program will resize ext2, ext3, or ext4 file systems. It can be used to enlarge or shrink an unmounted file system located on device. If the filesystem is mounted, it can be used to expand the size of the mounted filesystem

sudo resize2fs /dev/mmcblk0p2 <Size>
 
<Ex-1>: Extend to 20G
sudo resize2fs /dev/mmcblk0p2 20G
 
<Ex-2>: Extend to all of available space (no specify size = full) sudo resize2fs /dev/mmcblk0p2
5

Check the extension result

df -h

Last updated