OpenWRT expansion

Address of this article: blog.lucien.ink/archives/535

The original overlay on the official website is only 100M, which is not enough. This article only discusses the situation of new installation, and the scenario of expansion of installed capacity is not covered in this article.

step

Assume that the file downloaded from the official website is named openwrt-22.03.2-x86-64-generic-squashfs-combined.img.gz.

# 解压
gzip -kd openwrt-22.03.2-x86-64-generic-squashfs-combined.img.gz
# 重命名,方便操作
mv openwrt-22.03.2-x86-64-generic-squashfs-combined.img op.img
# 在尾部增加 4096M
dd if=/dev/zero bs=1M count=4096 >> op.img
# 进入分区工具
parted op.img

partedExecute in the console of :

print # 打印当前分区
resizepart 2 100% # 将剩余空间分配给分区 2
print # 再次打印分区
qiut # 退出

reference article

  1. Soft Routing Exploration Journey Part 3: Expanding overlay for openwrt Updated on March 30

Guess you like

Origin blog.csdn.net/xs18952904/article/details/128483795