summaryrefslogtreecommitdiff
path: root/mpartition.1
diff options
context:
space:
mode:
authorDongHun Kwak <dh0128.kwak@samsung.com>2022-01-14 10:51:39 +0900
committerDongHun Kwak <dh0128.kwak@samsung.com>2022-01-14 10:51:39 +0900
commit1ea7079704c2a2306017fda5db6df95f5d7c073f (patch)
tree532f750ae22a3efacf682694fa2418a870bb6fbe /mpartition.1
parent57c203fa603f351578ba486428af9f1e099c7ef1 (diff)
downloadmtools-1ea7079704c2a2306017fda5db6df95f5d7c073f.tar.gz
mtools-1ea7079704c2a2306017fda5db6df95f5d7c073f.tar.bz2
mtools-1ea7079704c2a2306017fda5db6df95f5d7c073f.zip
Imported Upstream version 4.0.19upstream/4.0.19
Diffstat (limited to 'mpartition.1')
-rw-r--r--mpartition.144
1 files changed, 43 insertions, 1 deletions
diff --git a/mpartition.1 b/mpartition.1
index 1796fc8..b3f1c16 100644
--- a/mpartition.1
+++ b/mpartition.1
@@ -1,5 +1,5 @@
'\" t
-.TH mpartition 1 "09Jan13" mtools-4.0.18
+.TH mpartition 1 "29Sep18" mtools-4.0.19
.SH Name
mpartition - partition an MSDOS hard disk
'\" t
@@ -122,6 +122,48 @@ The following option is available for partition table initialization:
\&\fR\&\f(CWB\ \fIbootSector\fR\&\f(CW\fR\
Reads the template master boot record from file \fIbootSector\fR.
.PP
+.SH Choice\ of\ partition\ type
+.PP
+Mpartition proceeds as follows to pick a type for the partition:
+.TP
+-\ \
+FAT32 partitions are assigned type 0x0C (``\fR\&\f(CWWin95 FAT32, LBA\fR'')
+.TP
+-\ \
+For all others, if the partition fits entirely within the 65536 sector of the disk, assign 0x01 (``\fR\&\f(CWDOS FAT12, CHS\fR'') for FAT12 partition and 0x04 (``\fR\&\f(CWDOS FAT16, CHS\fR'') for FAT16 partitions
+.TP
+-\ \
+If not covered by the above, assign 0x06 (``\fR\&\f(CWDOS BIG FAT16 CHS\fR'') if partition fits entirely within the first 1024 cylinders (CHS mode)
+.TP
+-\ \
+All remaining cases get 0x0E (``\fR\&\f(CWWin95 BIG FAT16, LBA\fR'')
+.PP
+If number of fat bits is not known (not specified in drive's
+definition), then FAT12 is assumed for all drives with less than 4096
+sectors, and FAT16 for those with more than 4096 sectors.
+.PP
+This corresponds more or less to the definitions outlined at \fR\&\f(CWhttps://en.wikipedia.org/wiki/Partition_type#List_of_partition_IDs\fR
+and
+\&\fR\&\f(CWhttps://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-2000-server/cc977219(v=technet.10)\fR,
+with two notable differences:
+.TP
+-\ \
+If fat bits are unknown, the reference documents consider drives with
+less than 32680 sectors to be FAT12. Mtools uses 4096 sectors as the
+cutoff point, as older versions of DOS only support FAT12 on disks
+with less than 4096 sectors (and these older versions are the ones
+which would be most likely to use FAT12 in the first place).
+.TP
+-\ \
+The reference documents use a 8GB (wikipedia) or a 4GB (Microsoft)
+cutoff between 0x06 (\fR\&\f(CWDOS BIG FAT16 CHS\fR) and 0x0E. Mtools uses
+1024 cylinders. This is because any partition beyond 1024 cylinders
+must be LBA and cannot be CHS. 8GB works out to be the biggest
+capacity which can be represented as CHS (63 sectors, 255 heads and
+1024 cylinders). 4GB is the capacity limit for windows 2000, so it
+makes sense that a documentation for windows 2000 would specify this
+as the upper limit for any partition type.
+.PP
.SH See\ Also
Mtools' texinfo doc
.SH Viewing\ the\ texi\ doc