【笔记】OpenWRT给Overlay扩容

Preface

Expanding Overlay in OpenWRT to download more third-party plugins

Preparation

  • Update software source
1
opkg update
  • Install fdisk
1
opkg install fdisk
  • Install cfdisk
1
opkg install cfdisk

View partition mount points

  • View all partition mount points to find the disk that needs to be expanded
1
fdisk -l

  • Get the mount point path

Create a new partition

  • Create a partition using cfdisk

/dev/mmcblk0: The mount point that needs to be partitioned

1
cfdisk /dev/mmcblk0
  • Use the up and down keys to select Free space->Use the left and right keys to select New

  • Set the size of the partition to be created, the default is the maximum available size->Press the return key (or the enter key on Windows) to confirm

  • Select primary and press the return key (or the enter key on Windows) to confirm, as the primary partition

primary: Primary partition
extended: Extended partition

  • Use the left and right keys to select Write and press the return key (or the enter key on Windows) to write the partition table

  • Type yes and press the return key (or the enter key on Windows) to confirm again

  • Take note of the mount point of the new partition and use the left and right keys to select Quit and press the return key (or the enter key on Windows) to exit cfdisk

Or directly press q to exit cfdisk

Format the new partition

  • System->Mount Points->Click Add in the Mount Points section

  • Set the UUID to the newly added partition, and set the mount point to /overlay->Save

  • Save & Apply

  • System->Reboot->Perform Reboot

Completion

  • Take a screenshot as a memento

References

Bilibili - GGBIOS
Zhihu - hepingfly
title: 【笔记】OpenWRT给Overlay扩容
categories:
- null
tags:
- SoftRouting
sticky: 0
lang: en
date: 2023-09-16 13:29:49

Introduction

Expanding Overlay in OpenWRT to download additional third-party plugins

Preparations

  • Update software sources
1
opkg update
  • Install fdisk
1
opkg install fdisk
  • Install cfdisk
1
opkg install cfdisk

View partition mounting points

  • View all partition mounting points and find the disk that needs to be expanded
1
fdisk -l

  • Obtain the mounting point path

Create a new partition

  • Partition using cfdisk

/dev/mmcblk0: The mounting point that needs to be partitioned

1
cfdisk /dev/mmcblk0
  • Use up and down arrows to select “Free space” -> Use left and right arrows to select “New”

  • Set the size of the partition to be created, default to the maximum available space -> Press return key (or enter key for Windows) to confirm

  • Select “primary” and press return key (or enter key for Windows) to confirm, as the primary partition

primary: Primary partition
extended: Logical partition

  • Use left and right arrows to select “Write” and press return key (or enter key for Windows) to confirm, write the partition table

  • Enter “yes” and press return key (or enter key for Windows) to confirm again

  • Take note of the mounting point of the new partition -> Use left and right arrows to select “Quit” and press return key (or enter key for Windows) to confirm, exit cfdisk

Or simply press q to exit cfdisk

Prepare the new partition

  • Format the new partition
1
2
umount /dev/mmcblk0p3
mkfs.ext4 /dev/mmcblk0p3
  • Wait for the formatting to complete

  • Mount the new partition
1
mount /dev/mmcblk0p3 /mnt/mmcblk0p3
  • Migrate the configuration files in Overlay
1
cp -r /overlay/* /mnt/mmcblk0p3

Format the new partition

  • System -> Mount Points -> Click Add in the Mount Points section

  • Set the UUID to the newly added partition and set the mounting point to /overlay -> Save

  • Save and Apply

  • System -> Reboot -> Perform Reboot

Completion

  • Capture screenshot as a commemoration

References

Bilibili - GGBIOS
Zhihu - hepingfly
title: 【笔记】OpenWRT给Overlay扩容
categories:
- null
tags:
- SoftRouting
sticky: 0
lang: en
date: 2023-09-16 13:29:49

Introduction

Expanding Overlay in OpenWRT to download more third-party plugins.

Preparation

  • Update software source
1
opkg update
  • Install fdisk
1
opkg install fdisk
  • Install cfdisk
1
opkg install cfdisk

View partition mount points

  • View all partition mount points and find the disk to be expanded
1
fdisk -l

  • Obtain the mount point path

Create a new partition

  • Create a partition using cfdisk

/dev/mmcblk0: the mount point that needs to be partitioned

1
cfdisk /dev/mmcblk0
  • Use the up and down keys to select Free space-> Use the left and right keys to select New

  • Set the size of the partition to be created, default to the maximum free size -> Press return key (or enter key on Windows) to confirm

  • Select primary and press return key (or enter key on Windows) to confirm, as the primary partition

primary: primary partition
extended: logical partition

  • Use the left and right keys to select Write and press return key (or enter key on Windows) to confirm, write the partition table

  • Input yes and press return key (or enter key on Windows) to confirm again

  • Record the mount point of the new partition-> Use the left and right keys to select Quit and press return key (or enter key on Windows) to confirm, exit cfdisk

Or directly press q to exit cfdisk

Prepare the new partition

  • Format the new partition
1
2
umount /dev/mmcblk0p3
mkfs.ext4 /dev/mmcblk0p3
  • Wait for the formatting to complete

  • Mount the new partition
1
mount /dev/mmcblk0p3 /mnt/mmcblk0p3
  • Migrate the configuration files in Overlay
1
cp -r /overlay/* /mnt/mmcblk0p3

Format the new partition

  • System->Mount Points->Click Add in the Mount Points section

  • Set the UUID to the newly added partition, set the mount point to /overlay->Save

  • Save and Apply

  • System->Reboot->Perform Reboot

Completion

  • Take a screenshot for memory

References

Bilibili - GGBIOS
Zhihu - hepingfly