BSD 4_1c_2 development
[unix-history] / usr / man / man8 / diskpart.8
CommitLineData
d824bd5b
C
1.TH DISKPART 8 "26 February 1983"
2.UC 4
3.SH NAME
4diskpart \- calculate default disk partition sizes
5.SH SYNOPSIS
6.B diskpart
7[
8.B \-p
9] [
10.B \-d
11]
12disk-type
13.SH DESCRIPTION
14.I Diskpart
15is used to calculate the disk partition sizes based on the
16default rules used at Berkeley. If the
17.B \-p
18option is supplied, tables suitable for inclusion in a device driver
19are produced. If the
20.B \-d
21option is supplied, an entry suitable for inclusion in the disk
22description file
23.I /etc/disktab
24is generated; c.f.
25.IR disktab (5).
26Space is always left in the last physical partition on the disk
27for a bad sector forwarding table. The space reserved for this
28table occupies 3 tracks. For more information, see
29.IR bad144 (8).
30.PP
31The disk partition sizes are based on the total amount of
32space on the disk as give in the table below. The `c' partition
33is, by convention, used to access the entire physical disk, including
34the space reserved for the bad sector forwarding table.
35In normal operation, either the `g' partition is used, or the
36`d', `e', and `f' partitions are used. The `g' and `f' partitions
37are variable sized, occupying whatever space remains after allocation
38of the fixed sized partitions.
39If the disk is smaller than 20 Megabytes, then
40.I diskpart
41aborts with the message ``disk too small, calculate by hand''.
42.in +0.5i
43.nf
44
45.ta \w'Partition 'u +\w'20-60 MB 'u +\w'61-205 MB 'u +\w'206-355 MB 'u +\w'356+ MB'u
46Partition 20-60 MB 61-205 MB 206-355 MB 356+ MB
47a 15884 15884 15884 15884
48b 10032 33440 33440 66880
49d 15884 15884 15884 15884
50e unused 55936 55936 307200
51h unused unused 291346 291346
52
53.fi
54.in -0.5i
55.PP
56If an unknown disk type is specified,
57.I diskpart
58will prompt for the required disk geometry information.
59.SH SEE ALSO
60disktab(5),
61bad144(8)
62.SH BUGS
63Certain default partition sizes are based on historical artifacts
64(e.g. RP06), and may result in unsatisfactory layouts.
65.PP
66When using the \-d flag, alternate disk names are not included
67in the output.