Linux command
mkfs.exfat 命令
安全
权限或系统影响较大,执行前请核对目标。
常用示例
Example
sudo mkfs.exfat /dev/sdXY
Example
sudo mkfs.exfat -L [name] /dev/sdXY
Example
sudo mkfs.exfat -c [32K] /dev/sdXY
Example
sudo mkfs.exfat -f /dev/sdXY
Example
sudo mkfs.exfat -q /dev/sdXY
说明
mkfs.exfat creates an exFAT filesystem on a device. exFAT is designed for flash drives and supports large files (>4GB) while being compatible with Windows, macOS, and Linux. It is part of the exfatprogs package.
参数
- -L, --volume-label=LABEL
- Set volume label
- -U, --volume-guid=GUID
- Set volume GUID
- -c, --cluster-size=SIZE
- Set cluster size in bytes (must be a power of two); supports k/K for kibibytes and m/M for mebibytes
- -s, --sector-size=SIZE
- Set sector size in bytes (512, 1024, 2048, or 4096)
- -b, --boundary-align=SIZE
- Alignment for the FAT and the start of the cluster heap
- -f, --full-format
- Perform a full format, zeroing the entire disk device
- -K, --no-discard
- Do not attempt to discard blocks
- -C, --verify-written
- Verify filesystem metadata by reading it back after writing
- --pack-bitmap
- Relocate the allocation bitmap so it ends at the alignment boundary following the FAT
- -q, --quiet
- Print only error messages
- -v, --verbose
- Print verbose debugging information
- -h, --help
- Display help and exit
- -V, --version
- Display version and exit
FAQ
What is the mkfs.exfat command used for?
mkfs.exfat creates an exFAT filesystem on a device. exFAT is designed for flash drives and supports large files (>4GB) while being compatible with Windows, macOS, and Linux. It is part of the exfatprogs package.
How do I run a basic mkfs.exfat example?
Run `sudo mkfs.exfat /dev/sdXY` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -L, --volume-label=LABEL do in mkfs.exfat?
Set volume label