Quantcast
Channel: How to create a file of the exact size of a directory (and its files), to hold a FAT32 filesystem? - Super User
Browsing all 2 articles
Browse latest View live

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 Article



How 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
Browsing all 2 articles
Browse latest View live




Latest Images