Commit | Line | Data |
---|---|---|
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 | |
10 | diskpart \- calculate default disk partition sizes | |
11 | .SH SYNOPSIS | |
12 | .B /etc/diskpart | |
13 | [ | |
14 | .B \-p | |
15 | ] [ | |
16 | .B \-d | |
17 | ] | |
18 | disk-type | |
19 | .SH DESCRIPTION | |
20 | .I Diskpart | |
21 | is used to calculate the disk partition sizes based on the | |
22 | default rules used at Berkeley. If the | |
23 | .B \-p | |
24 | option is supplied, tables suitable for inclusion in a device driver | |
25 | are produced. If the | |
26 | .B \-d | |
27 | option is supplied, an entry suitable for inclusion in the disk | |
28 | description file | |
29 | .I /etc/disktab | |
30 | is generated; c.f. | |
31 | .IR disktab (5). | |
a171a6d5 MK |
32 | On disks that use |
33 | .IR bad144 \|-style | |
34 | bad-sector forwarding, | |
35 | space is left in the last partition on the disk | |
b9984f54 KM |
36 | for a bad sector forwarding table. The space reserved |
37 | is one track for the replicated copies of the table and | |
38 | sufficient tracks to hold a pool of 126 sectors to which bad sectors | |
39 | are mapped. For more information, see | |
40 | .IR bad144 (8). | |
41 | .PP | |
42 | The disk partition sizes are based on the total amount of | |
a171a6d5 | 43 | space on the disk as given in the table below (all values |
b9984f54 | 44 | are supplied in units of 512 byte sectors). The `c' partition |
a171a6d5 MK |
45 | is, by convention, used to access the entire physical disk. |
46 | The device driver tables include | |
47 | the space reserved for the bad sector forwarding table in the `c' partition; | |
48 | those used in the disktab and default formats exclude reserved tracks. | |
b9984f54 KM |
49 | In normal operation, either the `g' partition is used, or the |
50 | `d', `e', and `f' partitions are used. The `g' and `f' partitions | |
a171a6d5 | 51 | are variable-sized, occupying whatever space remains after allocation |
b9984f54 KM |
52 | of the fixed sized partitions. |
53 | If the disk is smaller than 20 Megabytes, then | |
54 | .I diskpart | |
55 | aborts 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 | |
60 | Partition 20-60 MB 61-205 MB 206-355 MB 356+ MB | |
61 | a 15884 15884 15884 15884 | |
62 | b 10032 33440 33440 66880 | |
63 | d 15884 15884 15884 15884 | |
64 | e unused 55936 55936 307200 | |
65 | h unused unused 291346 291346 | |
66 | ||
67 | .fi | |
68 | .in -0.5i | |
69 | .PP | |
70 | If an unknown disk type is specified, | |
71 | .I diskpart | |
72 | will prompt for the required disk geometry information. | |
73 | .SH SEE ALSO | |
74 | disktab(5), | |
75 | bad144(8) | |
76 | .SH BUGS | |
77 | Certain default partition sizes are based on historical artifacts | |
78 | (e.g. RP06), and may result in unsatisfactory layouts. | |
79 | .PP | |
80 | When using the \-d flag, alternate disk names are not included | |
81 | in the output. |