Name
mpartition
Synopsis
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, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access