nathanpc@mars ~/Downloads> dd if=/dev/zero of=2G_CF.img bs=512 count=4098528 status=progress 2045784576 bytes (2.0 GB, 1.9 GiB) copied, 29 s, 70.5 MB/s 4098528+0 records in 4098528+0 records out 2098446336 bytes (2.1 GB, 2.0 GiB) copied, 29.8942 s, 70.2 MB/s nathanpc@mars ~/Downloads> sudo losetup -f -P 2G_CF.img nathanpc@mars ~/Downloads> sudo fdisk -l Disk /dev/sda: 80 GiB, 85899345920 bytes, 167772160 sectors Disk model: VMware Virtual S Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: gpt Disk identifier: 0E3645C0-AF1A-4826-A443-7C2BD36F9167 Device Start End Sectors Size Type /dev/sda1 2048 1050623 1048576 512M EFI System /dev/sda2 1050624 165771263 164720640 78.5G Linux filesystem /dev/sda3 165771264 167770111 1998848 976M Linux swap Disk /dev/loop0: 1.95 GiB, 2098446336 bytes, 4098528 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes nathanpc@mars ~/Downloads> sudo fdisk /dev/loop0 Welcome to fdisk (util-linux 2.38.1). Changes will remain in memory only, until you decide to write them. Be careful before using the write command. Device does not contain a recognized partition table. Created a new DOS (MBR) disklabel with disk identifier 0x3461f211. Command (m for help): n Partition type p primary (0 primary, 0 extended, 4 free) e extended (container for logical partitions) Select (default p): p Partition number (1-4, default 1): 1 First sector (2048-4098527, default 2048): 2048 Last sector, +/-sectors or +/-size{K,M,G,T,P} (2048-4098527, default 4098527): 4098527 Created a new partition 1 of type 'Linux' and of size 2 GiB. Command (m for help): t Selected partition 1 Hex code or alias (type L to list all): 06 Changed type of partition 'Linux' to 'FAT16'. Command (m for help): a Selected partition 1 The bootable flag on partition 1 is enabled now. Command (m for help): c DOS Compatibility flag is set (DEPRECATED!) Command (m for help): p Disk /dev/loop0: 1.95 GiB, 2098446336 bytes, 4098528 sectors Geometry: 255 heads, 63 sectors/track, 255 cylinders Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: dos Disk identifier: 0x3461f211 Device Boot Start End Sectors Size Id Type /dev/loop0p1 * 2048 4098527 4096480 2G 6 FAT16 Command (m for help): w The partition table has been altered. Calling ioctl() to re-read partition table. Syncing disks. nathanpc@mars ~/Downloads> sudo mkfs.fat -D 0x80 -F 16 --mbr=yes -n POCKET386 -v /dev/loop0p1 mkfs.fat 4.2 (2021-01-31) Adding MBR table /dev/loop0p1 has 64 heads and 63 sectors per track, hidden sectors 0x0800; logical sector size is 512, using 0xf8 media descriptor, with 4096449 sectors; drive number 0x80; filesystem has 2 16-bit FATs and 64 sectors per cluster. FAT size is 256 sectors, and provides 63997 clusters. There are 64 reserved sectors. Root directory contains 1024 slots and uses 64 sectors. Volume ID is 0c51c171, volume label POCKET386. nathanpc@mars ~/Downloads> sudo sync nathanpc@mars ~/Downloads> sudo losetup -d /dev/loop0