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