Mount image file.
losetup -f
losetup /dev/loop0 $(pwd)/out.bin
dd if=/dev/urandom of=out.bin bs=1M count=1024
losetup -d /dev/loop0
mkfs.ext4 -N 272175 /dev/loop0
mount /dev/loop0 /mnt
Mount image file.
losetup -f
losetup /dev/loop0 $(pwd)/out.bin
dd if=/dev/urandom of=out.bin bs=1M count=1024
losetup -d /dev/loop0
mkfs.ext4 -N 272175 /dev/loop0
mount /dev/loop0 /mnt