1. Name

mpartition - partition an MSDOS hard disk
     .tr (is' .tr (if` .tr (pd"

2. Note of warning

This manpage has been automatically generated from mtools's texinfo documentation, and may not be entirely accurate or complete. See the end of this man page for details.

3. Description

The \fR\f(CWmpartition\fR command is used to create MS-DOS filesystems as partitions. This is intended to be used on non-Linux systems, i.e. systems where fdisk and easy access to Scsi devices are not available. This command only works on drives whose partition variable is set.

 
Sélectionnez
\fR\f(CWmpartition\fR \fR\f(CW-p\fR drive
\fR\f(CWmpartition\fR \fR\f(CW-r\fR drive
\fR\f(CWmpartition\fR \fR\f(CW-I\fR [\fR\f(CW-B\fR bootSector] drive
\fR\f(CWmpartition\fR \fR\f(CW-a\fR drive
\fR\f(CWmpartition\fR \fR\f(CW-d\fR drive
\fR\f(CWmpartition\fR \fR\f(CW-c\fR [\fR\f(CW-s\fR sectors] [\fR\f(CW-h\fR heads]
[\fR\f(CW-t\fR cylinders] [\fR\f(CW-v\fR [\fR\f(CW-T\fR type] [\fR\f(CW-b\fR
begin] [\fR\f(CW-l\fR length] [\fR\f(CW-f\fR]

Mpartition supports the following operations:

  • \fR\f(CWp\fR 
        Prints a command line to recreate the partition for the drive. Nothing is printed if the partition for the drive is not defined, or an inconsistency has been detected. If verbose (\fR\f(CW-v\fR) is also set, prints the current partition table.
  • \fR\f(CWr\fR 
        Removes the partition described by drive.
  • \fR\f(CWI\fR 
        Initializes the partition table, and removes all partitions.
  • \fR\f(CWc\fR 
        Creates the partition described by drive.
  • \fR\f(CWa\fR 
        "Activates" the partition, i.e. makes it bootable. Only one partition can be bootable at a time.
  • \fR\f(CWd\fR 
        "Deactivates" the partition, i.e. makes it unbootable.

If no operation is given, the current settings are printed.

For partition creations, the following options are available:

  • \fR\f(CWs sectors\f(CW\fR 
        The number of sectors per track of the partition (which is also the number of sectors per track for the whole drive).
  • \fR\f(CWh heads\f(CW\fR 
        The number of heads of the partition (which is also the number of heads for the whole drive). By default, the geometry information (number of sectors and heads) is figured out from neighbouring partition table entries, or guessed from the size.
  • \fR\f(CWt cylinders\f(CW\fR 
        The number of cylinders of the partition (not the number of cylinders of the whole drive.
  • \fR\f(CWb begin\f(CW\fR 
        The starting offset of the partition, expressed in sectors. If begin is not given, mpartition lets the partition begin at the start of the disk (partition number 1), or immediately after the end of the previous partition.
  • \fR\f(CWl length\f(CW\fR 
        The size (length) of the partition, expressed in sectors. If end is not given, mpartition figures out the size from the number of sectors, heads and cylinders. If these are not given either, it gives the partition the biggest possible size, considering disk size and start of the next partition.

The following option is available for all operation which modify the partition table:

  • \fR\f(CWf\fR 
        Usually, before writing back any changes to the partition, mpartition performs certain consistency checks, such as checking for overlaps and proper alignment of the partitions. If any of these checks fails, the partition table is not changes. The \fR\f(CW-f\fR allows you to override these safeguards.

The following options are available for all operations:

  • \fR\f(CWv\fR 
        Together with \fR\f(CW-p\fR prints the partition table as it is now (no change operation), or as it is after it is modified.
  • \fR\f(CWvv\fR 
        If the verbosity flag is given twice, mpartition will print out a hexdump of the partition table when reading it from and writing it to the device.

The following option is available for partition table initialization:

  • \fR\f(CWB bootSector\f(CW\fR 
        Reads the template master boot record from file bootSector.

4. See Also

Mtools' texinfo doc

5. Viewing the texi doc

This manpage has been automatically generated from mtools's texinfo documentation. However, this process is only approximative, and some items, such as crossreferences, footnotes and indices are lost in this translation process. Indeed, these items have no appropriate representation in the manpage format. Moreover, not all information has been translated into the manpage version. Thus I strongly advise you to use the original texinfo doc. See the end of this manpage for instructions how to view the texinfo doc.

  • *   
        To generate a printable copy from the texinfo doc, run the following commands:
 
Sélectionnez
   ./configure; make dvi; dvips mtools.dvi

\fR

  • *   
        To generate a html copy, run:
 
Sélectionnez
   ./configure; make html

\fRA premade html can be found at \fR\f(CW(ifhttp://www.gnu.org/software/mtools/manual/mtools.html(is\fR

  • *   
        To generate an info copy (browsable using emacs' info mode), run:
 
Sélectionnez
   ./configure; make info

\fR

The texinfo doc looks most pretty when printed or as html. Indeed, in the info version certain examples are difficult to read due to the quoting conventions used in info.