烧录img,如何实现自动调整磁盘容量

我使用rockpis的img文件,虽然文件只有900M,但是烧录后,SD卡或emmc有多大,rootfs就会被扩展为多大。
我在rockpis的img上做了写改动,将rootfs空间扩大到2G,img文件也顺便被增大了,烧录后正常运行,但是rootfs就是固定的2G,不能动态调整
期待能调整到SD卡或emmc的大小
请问有什么建议吗?

Hi,

To enlarge the root partition, out your sdcard into a sdcard reader. Use the application gparted on Linux. If you want to do it from the Linux command line, run fdisk first then resize2fs.

Matt

使用resize2fs已经解决,谢谢