format for 4.3 documentation
[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.\"
d1fb6e1b 5.\" @(#)diskpart.8 6.2 (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).
32Space is always left in the last partition on the disk
33for a bad sector forwarding table. The space reserved
34is one track for the replicated copies of the table and
35sufficient tracks to hold a pool of 126 sectors to which bad sectors
36are mapped. For more information, see
37.IR bad144 (8).
38.PP
39The disk partition sizes are based on the total amount of
40space on the disk as give in the table below (all values
41are supplied in units of 512 byte sectors). The `c' partition
42is, by convention, used to access the entire physical disk, including
43the space reserved for the bad sector forwarding table.
44In normal operation, either the `g' partition is used, or the
45`d', `e', and `f' partitions are used. The `g' and `f' partitions
46are variable sized, occupying whatever space remains after allocation
47of the fixed sized partitions.
48If the disk is smaller than 20 Megabytes, then
49.I diskpart
50aborts with the message ``disk too small, calculate by hand''.
51.in +0.5i
52.nf
53
54.ta \w'Partition 'u +\w'20-60 MB 'u +\w'61-205 MB 'u +\w'206-355 MB 'u +\w'356+ MB'u
55Partition 20-60 MB 61-205 MB 206-355 MB 356+ MB
56a 15884 15884 15884 15884
57b 10032 33440 33440 66880
58d 15884 15884 15884 15884
59e unused 55936 55936 307200
60h unused unused 291346 291346
61
62.fi
63.in -0.5i
64.PP
65If an unknown disk type is specified,
66.I diskpart
67will prompt for the required disk geometry information.
68.SH SEE ALSO
69disktab(5),
70bad144(8)
71.SH BUGS
72Certain default partition sizes are based on historical artifacts
73(e.g. RP06), and may result in unsatisfactory layouts.
74.PP
75When using the \-d flag, alternate disk names are not included
76in the output.