Files
linux-wiki/content/deepin折腾笔记/第五章/5.12.md
2021-10-21 14:57:58 +08:00

14 lines
1.1 KiB
Markdown
Executable File
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 5.12 跨平台可读写文件系统 exfat 的格式化
首先,通过“分区编辑器(GParted)”右键卸载相应分区后为U盘创建GPT分区表然后创建两个fat32主分区并应用。
其次需要用sudo fdisk -l查看磁盘或者分区信息例如
Disk /dev/sdb: 28.7 GiB, 30752000000 bytes, 60062500 sectors...
Device Start End Sectors Size Type
/dev/sdb1 2048 59447295 59445248 28.4G Microsoft basic data
/dev/sdb2 59447296 60061695 614400 300M Microsoft basic data
建议把第一个分区sdb1格式化成exfat格式以便在Windows、macOS和Linux都可以支持大文件读写。建议把第二个分区sdb2分区作为EFI引导分区大小300MB即可将来做启动盘使用。
最后将第一分区sdb1格式化成exfat磁盘格式
`sudo mkfs.exfat /dev/sdb1 -n USB`
注意1sdb1中的b和1因磁盘和分区数量不同而异不要照搬实际运用时需要酌情变更。
注意2如果将整个U盘格式化为exfat格式则可以
`sudo mkfs.exfat /dev/sdb`