genext2fs

Generate ext2 filesystems as a non-root user

brewmacoslinux
Try with needOr install directly
Source

About

Generates an ext2 filesystem as a normal (non-root) user

Commands

genext2fs

Examples

Create a 10MB ext2 filesystem image$ genext2fs -b 10240 -d /path/to/files filesystem.img
Generate empty 50MB ext2 filesystem$ genext2fs -b 51200 filesystem.img
Create filesystem with specific inode count$ genext2fs -b 10240 -N 512 -d /path/to/files filesystem.img