5
OpenWRT 扩容
source link: https://blog.lucien.ink/archives/535/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
OpenWRT 扩容
本文地址:blog.lucien.ink/archives/535
官网原生的 overlay 只有 100M,不够用。本文只讨论新安装的情形,已安装扩容的场景在本文不涉及。
假设从官网下载的文件名为 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
在 parted
的 console 里执行:
print # 打印当前分区
resizepart 2 100% # 将剩余空间分配给分区 2
print # 再次打印分区
qiut # 退出
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK