首页
首页 » 磁盘维护 » mpartition

mpartition

mpartition
功能说明:建立或删除MS-DOS的分区。
语  法:mpartition [-acdfIprv][-b <磁区数>][-h <磁头数>][l <磁区数>][-s <磁区数>][-t <柱面数>][驱动器代号]
补充说明:mpartition为mtools工具指令,可建立或删除磁盘分区。
参  数:
  -a   将分区设置为可开机分区。
  -b<磁区数>   建立分区时,指定要从第几个磁区开始建立分区。
  -c   建立分区。
  -d   将分区设置为无法开机的分区。
  -f   强制地修改分区而不管检查时发生的错误信息。
  -h<磁头数>   建立分区时,指定分区的磁头数。
  -I   删除全部的分区。
  -l<磁区数>   建立分区时,指定分区的容量大小,单位为磁区数。
  -p   当要重新建立分区时,显示命令列。
  -r   删除分区。
  -s<磁区数>   建立分区时,指定每个磁轨的磁区数。
  -t<柱面数>   建立分区时,指定分区的柱面数。
  -v   与-p参数一并使用,若没有同时下达修改分区的命令,则显示目前分区的状态。

mpartition

mpartition [options] drive

Create the MS-DOS partition specified by drive; used mostly on proprietary Unix systems where fdisk is unavailable. See mtools for more information. When a partition is being created, the default is for the number of sectors and heads and the length to be automatically determined, but they can also be specified as options.

Options

-a

Activate the partition, making it the bootable partition.

-b offset

The starting offset of the partition to be created, in sectors. The default is the start of the disk (partition 1) or immediately after the end of the previous partition.

-B bootsector

Read the template master boot record from the file specified by bootsector. Can be specified with -I.

-c

Create the partition.

-d

Deactivate the partition, making it nonbootable.

-f

Allow overriding of safeguards that perform consistency checking before any change is made to a partition. Can be specified with any operation that modifies the partition table.

-h heads

The number of heads for a partition being created.

-I

Initialize the partition table and remove all partitions.

-l length

The size of the partition to be created, in sectors.

-p

Print a command line to re-create the partition. With -v, print the current partition table.

-r

Remove the partition.

-s sectors

The number of sectors per track of the partition to be created.

-t cylinders

The number of cylinders of the partition to be created.

-v

With -p, print the current partition table; otherwise, for commands that modify the partition table, print it after it has been modified.

-vv

Print a hexadecimal dump of the partition table when reading and writing it.