rip out mention of default file system, list options in synopsis
[unix-history] / usr / src / usr.sbin / diskpart / diskpart.8
CommitLineData
b9984f54
KM
1.\" Copyright (c) 1983 Regents of the University of California.
2.\" All rights reserved. The Berkeley software License Agreement
3.\" specifies the terms and conditions for redistribution.
4.\"
a171a6d5 5.\" @(#)diskpart.8 6.3 (Berkeley) %G%
b9984f54 6.\"
bb053bc6 7.TH DISKPART 8 ""
b9984f54
KM
8.UC 4
9.SH NAME
10diskpart \- calculate default disk partition sizes
11.SH SYNOPSIS
12.B /etc/diskpart
13[
14.B \-p
15] [
16.B \-d
17]
18disk-type
19.SH DESCRIPTION
20.I Diskpart
21is used to calculate the disk partition sizes based on the
22default rules used at Berkeley. If the
23.B \-p
24option is supplied, tables suitable for inclusion in a device driver
25are produced. If the
26.B \-d
27option is supplied, an entry suitable for inclusion in the disk
28description file
29.I /etc/disktab
30is generated; c.f.
31.IR disktab (5).
a171a6d5
MK
32On disks that use
33.IR bad144 \|-style
34bad-sector forwarding,
35space is left in the last partition on the disk
b9984f54
KM
36for a bad sector forwarding table. The space reserved
37is one track for the replicated copies of the table and
38sufficient tracks to hold a pool of 126 sectors to which bad sectors
39are mapped. For more information, see
40.IR bad144 (8).
41.PP
42The disk partition sizes are based on the total amount of
a171a6d5 43space on the disk as given in the table below (all values
b9984f54 44are supplied in units of 512 byte sectors). The `c' partition
a171a6d5
MK
45is, by convention, used to access the entire physical disk.
46The device driver tables include
47the space reserved for the bad sector forwarding table in the `c' partition;
48those used in the disktab and default formats exclude reserved tracks.
b9984f54
KM
49In normal operation, either the `g' partition is used, or the
50`d', `e', and `f' partitions are used. The `g' and `f' partitions
a171a6d5 51are variable-sized, occupying whatever space remains after allocation
b9984f54
KM
52of the fixed sized partitions.
53If the disk is smaller than 20 Megabytes, then
54.I diskpart
55aborts with the message ``disk too small, calculate by hand''.
56.in +0.5i
57.nf
58
59.ta \w'Partition 'u +\w'20-60 MB 'u +\w'61-205 MB 'u +\w'206-355 MB 'u +\w'356+ MB'u
60Partition 20-60 MB 61-205 MB 206-355 MB 356+ MB
61a 15884 15884 15884 15884
62b 10032 33440 33440 66880
63d 15884 15884 15884 15884
64e unused 55936 55936 307200
65h unused unused 291346 291346
66
67.fi
68.in -0.5i
69.PP
70If an unknown disk type is specified,
71.I diskpart
72will prompt for the required disk geometry information.
73.SH SEE ALSO
74disktab(5),
75bad144(8)
76.SH BUGS
77Certain default partition sizes are based on historical artifacts
78(e.g. RP06), and may result in unsatisfactory layouts.
79.PP
80When using the \-d flag, alternate disk names are not included
81in the output.