↧
Answer by Luis Lavaire for How to create a file of the exact size of a...
The right tool for this task is du. mkfs.vfat -C $BOOT_IMG \ $(( ($(stat -c %s $BOOT_IMG_DATA) / 1024 + 511) / 1024 )) That command will create the file $BOOT_IMG, which will have enough size to keep...
View ArticleHow to create a file of the exact size of a directory (and its files), to...
I'm trying to create a file with the minimum-enough size to contain a FAT32 filesystem, which, in turn, mirrors the contents of a directory (an ESP structure). This is needed to create an...
View Article