Page 1 of 1

How do you make a .img file from a rootfs?

Posted: Wed Aug 10, 2016 10:09 pm
by davef
NanoPi-fuser-win32 requires a .img file. Could you explain how to generate a .img file from a rootfs or rootfs.tgz file?

I how found a utility called make_ext4fs but an usage example would be helpful, say for a 8G microSD card.

Thank you,
Dave

Re: How do you make a .img file from a rootfs?

Posted: Thu Aug 11, 2016 1:11 am
by davef
More searching ... and I think running the mkimage.sh file in the sd-fuse_nanopi folder, after you apt-get install kpartx is the solution.