How to Create a disk image in FAT format
This file is a FAT format disk partition image file, the size is 20 MB.
For the FAT file format, creating a 2 gb fat image will have 2 GB size, but because it is only an empty file system (the specific file is not stored), only the previous part makes sense, including the Boot Record and the part of the FAT table, so the first 20 mb can represent the entire FAT file system.
Take creating a 1 GB udisk. binfile as an example. Run the following two commands in Linux:
Mkfs. vfat-n "Internal SD"-F 32-c usb disk. tmp 1048576
Dd if = usbdisk. tmp of = udisk. img bs = 1024 count = 20480
Where:
-N "Internal SD" specifies the volume label
1048576 is the disk space, measured in KB.
The purpose of the dd command is to extract the previous 20 mb content.
Application of Linux dd command in SWAP partition Expansion
Linux dd command to create a USB flash drive
This article permanently updates the link address: