Partitions on OpenWRT


Device and firmware version

Found this instruction:


Step 1: Identify the SD Card Device

Identify the device name of the SD card. Typically, it is /dev/mmcblk0. You can use the lsblk command to list all block devices and find the SD card:


Step 2: Create a New Partition Table

Use the fdisk command to create a new partition table on the SD card:

fdisk /dev/mmcblk0

Step 3: Create the First Partition

Create the first partition by typing n and pressing Enter. Set the start sector to 1 and the end sector to +4G (to create a 4GB partition).

Step 4: Create the Second Partition

Create the second partition by typing n and pressing Enter. Set the start sector to the next available sector (usually the sector after the end of the first partition) and the end sector to the end of the SD card (usually the last sector).

Step 5: Write the Changes to the Partition Table

Write the changes to the partition table by typing w and pressing Enter.

Step 6: Format the Partitions

Format the partitions using the mkfs command:

mkfs.ext4 /dev/mmcblk0p1
mkfs.ext4 /dev/mmcblk0p2

Step 7: Mount the Partitions

Mount the partitions as separate disks using the mount command:

mount /dev/mmcblk0p1 /mnt/sda1
mount /dev/mmcblk0p2 /mnt/sda2


Verify that the partitions have been created successfully by running the lsblk command again:


You should see two separate partitions, each with a size of approximately 4GB.

Important: Make sure to update your OpenWRT configuration to reflect the new partition layout. You may need to modify your /etc/config/fstab file to mount the partitions automatically on boot.

What I need:
Split 16GB SD to three separate partitions (5 GB as overlay for plugins and 10GB for file storage and 1GB for additional content (like backups, etc))

Can I use this instruction? Or you know better way?

Please post output of

ubus call system board