Format 实用程序是用于管理磁盘的核心工具。此实用程序可用于执行一系列任务:从发现磁盘的类型到验证这些磁盘对系统是否已知。
可通过发出 format 命令启动该实用程序。此命令将显示系统上磁盘的列表,并提示您选择一个磁盘。选择磁盘后,将显示如下所示的 Format 菜单:
FORMAT MENU: disk – select a disk type – select (define) a disk type partition – select (define) a partition table current – describe the current disk format – format and analyze the disk fdisk – run the fdisk program (x86 only) repair – repair a defective sector label – write label to the disk analyze – surface analysis defect – defect list management backup – search for backup labels verify – read and display labels save – save new disk/partition definitions inquiry – show vendor, product and revision volname – set 8-character volume name !<cmd> – execute <cmd>, then return format>
在 format > 提示符下键入要执行的操作。根据所选择的操作,将提示您键入进一步的操作。要退出,请键入 quit。
有关更多信息,请参见 format(1M) 手册页和Chapter 10, Format 实用程序参考信息。
通过 format –e 命令启动的实用程序,您可以写入符合 EFI 标准的磁盘标签以支持容量大于 1 TB 的磁盘。但对于许多软件组件,所允许的大小仍限制为 1 TB 或更少。因此,请谨慎使用此命令语法。有关如何使用 format –e 命令的示例,请参见创建磁盘标签。
以下其他命令也可用于管理磁盘(例如显示磁盘信息):
fdisk(1M),适用于 x86 系统