source: trunk/minix/man/man8/partition.8@ 22

Last change on this file since 22 was 9, checked in by Mattia Monga, 14 years ago

Minix 3.1.2a

File size: 1.9 KB
RevLine 
[9]1.TH PARTITION 8
2.SH NAME
3partition \- make a partition table
4.SH SYNOPSIS
5.B partition
6.RB [ \-mfn ]
7.I device
8[\fItype\fP:]\fIlength\fP[\fB+*\fP] ...
9.SH DESCRIPTION
10.B Partition
11makes a partition table on
12.I device
13using the types and sizes given. It may be used in combination with
14.BR repartition (8)
15for automatic installation of MINIX 3.
16.PP
17You may give up to four \fItype\fP:\fIlength\fP[\fB+*\fP] specifications
18for the partitions. You may also specify holes before, between, and after
19the partitions. A hole differs from a partition specification by not having
20a type.
21.PP
22The first hole is by default 1 sector to make space for the primary
23bootstrap and the partition table. The other holes are 0.
24.PP
25The
26.I type
27field is the type of the partitition in hexadecimal. The
28.I length
29field is the partition's size in sectors. The
30.B +
31or
32.B *
33may optionally be added to indicate that the partition must be expanded
34to contain any leftover space on the device or to mark the partition active.
35.PP
36Instead of a length you may use the word
37.B exist
38to indicate that an existing partition of the given type must be kept
39from the old partition table.
40.PP
41Partitions are padded out to cylinder boundaries, except for the first one,
42it starts on track 1. Some operating systems care about this. MINIX 3 and
43MS-DOS do not.
44.SH OPTIONS
45.TP
46.B \-m
47MINIX 3 only, no need to pad partitions. This is the default for subpartition
48tables.
49.TP
50.B \-f
51Force making a partition table even if the device is too small.
52.TP
53.B \-n
54Play-act, don't write the new table, just show what it would look like.
55.SH EXAMPLE
56.B "partition /dev/hd0 01:16384 81:40000 81:2880* 06:20000+"
57.PP
58Partitions disk 0 into an 8 Mb DOS partition, 20 Mb MINIX 3 /usr, 1.44 Mb MINIX 3
59/ (active), and a DOS partition of at least 10 Mb at the end of the disk.
60(06:0+ would have been ok too, it's just a sanity check.)
61.SH "SEE ALSO"
62.BR hd (4),
63.BR part (8),
64.BR repartition (8).
65.SH AUTHOR
66Kees J. Bot (kjb@cs.vu.nl)
Note: See TracBrowser for help on using the repository browser.