根目录内存扩容 #288
wyxdlz54188
started this conversation in
奇技淫巧
根目录内存扩容
#288
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
与上一篇改为ext4类似


有道原厂镜像大小和预分配大小不符,这给我们创造了空间进行扩容 (扩容为原厂最大值)
首先看图
第一张是扩容前的 第二张是扩容后的,已经把根目录最大值吃满了
首先需要dd出rootfs镜像a b都可需要知道adb密码
然后查看boot镜像内的内存分配我这里是1280M
那么输入这串命令扩容rootfs
truncate -s 1280M rootfs.img #这里大小填boot镜像里的大小
e2fsck -f rootfs.img
resize2fs rootfs.img
这样就得到一个1.25G的包了
我们再dd回去就能吃满了,在测试页面看分区如果是a就刷rootfs_b如果是b就刷a
Beta Was this translation helpful? Give feedback.
All reactions