我对fdisk和mkfs有点困惑。
所以-这是典型的USB闪存驱动器分区和格式化:
umount /dev/sdb
fdisk fdisk /dev/sdb
Command (m for help): d
Selected partition 1
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-960, default 1): ↵
Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-960, default 960): ↵
Using default value 960
Command (m for help): t
Selected partition 1
Hex code (type L to list codes): 6
Changed system type of partition 1 to 6 (FAT16)
Command (m for help): a
Partition number (1-4): 1
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
WARNING: If you have created or modified any DOS 6.x
partitions, please see the fdisk manual page for additional
information.
mkfs -t vfat /dev/sdb1
我的问题是:
为什么在执行fdisk步骤时甚至必须使用t选项指定分区类型?它如何影响一切?它会在USB驱动器上创建一些标记,意味着仅应该是vfat分区吗?或者是它的安全跳过牛逼步骤来彻底?AFAIK-分区仅将磁盘分成多个区域-是吗?
只是想了解它为何以其工作方式运行:)