mformat
mformat功能说明:对MS-DOS文件系统的磁盘进行格式化。
语 法:mformat [-1aCFIKX][-0 <数据传输率>][-2 <磁区数>][-A <数据传输率>][-B <开机区文件>][-c <丛集大小>][-h <磁头数>][-H <隐藏磁区数>][-l <磁盘标签>][-M <磁区大小>][-n <序号>][-r <根目录大小>][-s <磁区数>][-S <磁区大小>][-t <柱面数>][驱动器代号]
补充说明:mformat为mtools工具指令,模拟MS-DOS的format指令,可将指定的磁盘或硬盘分区格式化为MS-DOS文件系统。
参 数:
-0<数据传输率> 指定第0磁轨的数据传输率。
-1 不使用2M格式。
-2<磁区数> 指定在第0磁轨的第0个磁头的磁区数,也就是所谓的2M格式。
-a 指定产生Atari格式的序号。
-A<数据传输率> 指定第0磁轨以外所有磁轨的数据传输率。
-B<开机区文件> 从指定的文件来建立开机区。
-c<丛集大小> 指定丛集大小,单位为磁区。
-C 建立磁盘MS-DOS文件系统的映像文件。
-F 以FAT32来格式化磁盘。
-H<隐藏磁区数> 指定隐藏磁区的数目。
-I 指定FAT32的frVersion编号。
-k 尽可能地保留原有的开机区。
-l<磁盘标签> 指定磁盘标签名称。
-M<磁区大小> 指定MS-DOS文件系统所使用的磁区大小,预设应该与硬体磁区大小相同,单位为字节。
-n<序号> 指定序号。
-r<根目录大小> 指定根目录的大小,单位为磁区。
-s<磁区数> 指定每一磁轨所包含的磁区数目。
-S<磁区大小> 指定硬件磁区大小。
-t<柱面数> 指定柱面数目。
-X 格式化XDF磁盘。
mformat
mformat [options] drive
Format a blank disk in MS-DOS format. See mtools for more information about how to handle MS-DOS filesystems. After using mformat to format a disk, you should use mbadblocks to check for bad blocks.
Options
The mformat command accepts many of the same options as the MS-DOS FORMAT command.
Format a single side. Equivalent to -h 1.
Format a 360K double-sided disk. Equivalent to -f 360.
Format with eight sectors per track.
Choose a label for this volume. Maximum length is 11 characters.
If you are using a floppy disk, use this flag and note the size of the disk in kilobytes as 160, 180, 320, 360, 720, 1200, 1440, or 2280. For most relatively recent systems, only the last two are relevant. If you are not using a floppy, you must use the -h, -t, or -n flags.
The number of tracks on the disk.
The number of heads, or sides, on the disk (either 1 or 2).
The number of sectors per track.
You can also use a number of option flags that are not included in the MS-DOS version of FORMAT, including:
Format as a FAT32 partition.
Size code. You are defining a sector that is the (n+7)th power of two.
Format as an XDF (OS/2) disk.
Data transfer rate on track 0.
Use a 2m format.
Don't use a 2m format, even if the disk looks like a 2m disk.
Data transfer rate on all tracks other than track 0.
Use the boot sector stored in the specified file.
Set the cluster size to n sectors.
Create a disk image file. Useful only for virtual disks.
Set the number of hidden sectors.
Keep the existing boot sector as much as possible.
Set the length of the File Allocation Table (FAT).
Set the software sector size to n. The default is the physical sector size. Possible values of n are 512, 1024, 2048, or 4096.
Choose a serial number. Use -a for an Atari-style serial number, stored in the OEM label.
Set the root directory size to n sectors for 12- and 16-bit FAT formats.