Linux mpartition command
The Linux mpartition command is used to create or delete MS-DOS partitions.
mpartition is an mtools utility command that can create or delete disk partitions.
Syntax
mpartition [-acdfIprv][-b <磁区数>][-h <磁头数>][l <磁区数>][-s <磁区数>][-t <柱面数>][驱动器代号]
Parameters:
- -a Set a partition as a bootable partition.
- -b
When creating a partition, specify which sector to start the partition from. - -c Create a partition.
- -d Set a partition as a non-bootable partition.
- -f Force modification of the partition regardless of errors reported during checking.
- -h When creating a partition, specify the number of heads.
- -I Delete all partitions.
- -l
When creating a partition, specify the size of the partition, in sectors. - -p Display the command line when recreating a partition.
- -r Delete a partition.
- -s
When creating a partition, specify the number of sectors per track. - -t
When creating a partition, specify the number of cylinders. - -v Used together with the -p parameter; if no command to modify the partition is given at the same time, the current partition status is displayed.
Linux Command Reference