How to Create a disk image in FAT format

Source: Internet
Author: User

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:

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.