version 1 showing authors affecting page license.
.
Rev |
Author |
# |
Line |
1 |
perry |
1 |
mpartition |
|
|
2 |
!!!mpartition |
|
|
3 |
Name |
|
|
4 |
Note of warning |
|
|
5 |
Description |
|
|
6 |
See Also |
|
|
7 |
Viewing the texi doc |
|
|
8 |
---- |
|
|
9 |
!!Name |
|
|
10 |
|
|
|
11 |
|
|
|
12 |
mpartition - partition an MSDOS hard disk |
|
|
13 |
!!Note of warning |
|
|
14 |
|
|
|
15 |
|
|
|
16 |
This manpage has been automatically generated from mtools's |
|
|
17 |
texinfo documentation, and may not be entirely accurate or |
|
|
18 |
complete. See the end of this man page for |
|
|
19 |
details. |
|
|
20 |
!!Description |
|
|
21 |
|
|
|
22 |
|
|
|
23 |
The mpartition command is used to create MS-DOS |
|
|
24 |
filesystems as partitions. This is intended to be used on |
|
|
25 |
non-Linux systems, i.e. systems where fdisk and easy access |
|
|
26 |
to Scsi devices are not available. This command only works |
|
|
27 |
on drives whose partition variable is set. |
|
|
28 |
|
|
|
29 |
|
|
|
30 |
mpartition -p ''drive'' mpartition -r |
|
|
31 |
''drive'' mpartition -I [[-B |
|
|
32 |
''bootSector''] ''drive'' mpartition -a |
|
|
33 |
''drive'' mpartition -d ''drive'' |
|
|
34 |
mpartition -c [[-s ''sectors''] |
|
|
35 |
[[-h ''heads''] [[-t ''cylinders''] |
|
|
36 |
[[-v [[-T ''type''] [[-b |
|
|
37 |
''begin''] [[-l length] |
|
|
38 |
[[-f] |
|
|
39 |
|
|
|
40 |
|
|
|
41 |
Mpartition supports the following operations: |
|
|
42 |
|
|
|
43 |
|
|
|
44 |
p |
|
|
45 |
|
|
|
46 |
|
|
|
47 |
Prints a command line to recreate the partition for the |
|
|
48 |
drive. Nothing is printed if the partition for the drive is |
|
|
49 |
not defined, or an inconsistency has been detected. If |
|
|
50 |
verbose (-v) is also set, prints the current |
|
|
51 |
partition table. |
|
|
52 |
|
|
|
53 |
|
|
|
54 |
r |
|
|
55 |
|
|
|
56 |
|
|
|
57 |
Removes the partition described by |
|
|
58 |
''drive''. |
|
|
59 |
|
|
|
60 |
|
|
|
61 |
I |
|
|
62 |
|
|
|
63 |
|
|
|
64 |
Initializes the partition table, and removes all |
|
|
65 |
partitions. |
|
|
66 |
|
|
|
67 |
|
|
|
68 |
c |
|
|
69 |
|
|
|
70 |
|
|
|
71 |
Creates the partition described by |
|
|
72 |
''drive''. |
|
|
73 |
|
|
|
74 |
|
|
|
75 |
a |
|
|
76 |
|
|
|
77 |
|
|
|
78 |
|
|
|
79 |
|
|
|
80 |
d |
|
|
81 |
|
|
|
82 |
|
|
|
83 |
|
|
|
84 |
|
|
|
85 |
If no operation is given, the current settings are |
|
|
86 |
printed. |
|
|
87 |
|
|
|
88 |
|
|
|
89 |
For partition creations, the following options are |
|
|
90 |
available: |
|
|
91 |
|
|
|
92 |
|
|
|
93 |
s ''sectors'' |
|
|
94 |
|
|
|
95 |
|
|
|
96 |
The number of sectors per track of the partition (which is |
|
|
97 |
also the number of sectors per track for the whole |
|
|
98 |
drive). |
|
|
99 |
|
|
|
100 |
|
|
|
101 |
h ''heads'' |
|
|
102 |
|
|
|
103 |
|
|
|
104 |
The number of heads of the partition (which is also the |
|
|
105 |
number of heads for the whole drive). By default, the |
|
|
106 |
geometry information (number of sectors and heads) is |
|
|
107 |
figured out from neighbouring partition table entries, or |
|
|
108 |
guessed from the size. |
|
|
109 |
|
|
|
110 |
|
|
|
111 |
t ''cylinders'' |
|
|
112 |
|
|
|
113 |
|
|
|
114 |
The number of cylinders of the partition (not the number of |
|
|
115 |
cylinders of the whole drive. |
|
|
116 |
|
|
|
117 |
|
|
|
118 |
b ''begin'' |
|
|
119 |
|
|
|
120 |
|
|
|
121 |
The starting offset of the partition, expressed in sectors. |
|
|
122 |
If begin is not given, mpartition lets the partition begin |
|
|
123 |
at the start of the disk (partition number 1), or |
|
|
124 |
immediately after the end of the previous |
|
|
125 |
partition. |
|
|
126 |
|
|
|
127 |
|
|
|
128 |
l ''length'' |
|
|
129 |
|
|
|
130 |
|
|
|
131 |
The size (length) of the partition, expressed in sectors. If |
|
|
132 |
end is not given, mpartition figures out the size from the |
|
|
133 |
number of sectors, heads and cylinders. If these are not |
|
|
134 |
given either, it gives the partition the biggest possible |
|
|
135 |
size, considering disk size and start of the next |
|
|
136 |
partition. |
|
|
137 |
|
|
|
138 |
|
|
|
139 |
The following option is available for all operation which |
|
|
140 |
modify the partition table: |
|
|
141 |
|
|
|
142 |
|
|
|
143 |
f |
|
|
144 |
|
|
|
145 |
|
|
|
146 |
Usually, before writing back any changes to the partition, |
|
|
147 |
mpartition performs certain consistenct checks, such as |
|
|
148 |
checking for overlaps and proper alignment of the |
|
|
149 |
partitions. If any of these checks fails, the partition |
|
|
150 |
table is not changes. The -f allows you to override |
|
|
151 |
these safeguards. |
|
|
152 |
|
|
|
153 |
|
|
|
154 |
The following options are available for all |
|
|
155 |
operations: |
|
|
156 |
|
|
|
157 |
|
|
|
158 |
v |
|
|
159 |
|
|
|
160 |
|
|
|
161 |
Together with -p prints the partition table as it |
|
|
162 |
is now (no change operation), or as it is after it is |
|
|
163 |
modified. |
|
|
164 |
|
|
|
165 |
|
|
|
166 |
vv |
|
|
167 |
|
|
|
168 |
|
|
|
169 |
If the verbosity flag is given twice, mpartition will print |
|
|
170 |
out a hexdump of the partition table when reading it from |
|
|
171 |
and writing it to the device. |
|
|
172 |
|
|
|
173 |
|
|
|
174 |
The following option is available for partition table |
|
|
175 |
initialization: |
|
|
176 |
|
|
|
177 |
|
|
|
178 |
B ''bootSector'' |
|
|
179 |
|
|
|
180 |
|
|
|
181 |
Reads the template master boot record from file |
|
|
182 |
''bootSector''. |
|
|
183 |
!!See Also |
|
|
184 |
|
|
|
185 |
|
|
|
186 |
Mtools' texinfo doc |
|
|
187 |
!!Viewing the texi doc |
|
|
188 |
|
|
|
189 |
|
|
|
190 |
This manpage has been automatically generated from mtools's |
|
|
191 |
texinfo documentation. However, this process is only |
|
|
192 |
approximative, and some items, such as crossreferences, |
|
|
193 |
footnotes and indices are lost in this translation process. |
|
|
194 |
Indeed, these items have no appropriate representation in |
|
|
195 |
the manpage format. Moreover, not all information has been |
|
|
196 |
translated into the manpage version. Thus I strongly advise |
|
|
197 |
you to use the original texinfo doc. See the end of this |
|
|
198 |
manpage for instructions how to view the texinfo |
|
|
199 |
doc. |
|
|
200 |
|
|
|
201 |
|
|
|
202 |
* |
|
|
203 |
|
|
|
204 |
|
|
|
205 |
To generate a printable copy from the texinfo doc, run the |
|
|
206 |
following commands: |
|
|
207 |
|
|
|
208 |
|
|
|
209 |
__ ./configure; make dvi; dvips mtools.dvi |
|
|
210 |
__ |
|
|
211 |
|
|
|
212 |
|
|
|
213 |
* |
|
|
214 |
|
|
|
215 |
|
|
|
216 |
To generate a html copy, run: |
|
|
217 |
|
|
|
218 |
|
|
|
219 |
__ ./configure; make html |
|
|
220 |
__A premade html can be found at: `http://mtools.linux.lu' and also at: `http://www.tux.org/pub/knaff/mtools' |
|
|
221 |
|
|
|
222 |
|
|
|
223 |
* |
|
|
224 |
|
|
|
225 |
|
|
|
226 |
To generate an info copy (browsable using emacs' info mode), |
|
|
227 |
run: |
|
|
228 |
|
|
|
229 |
|
|
|
230 |
__ ./configure; make info |
|
|
231 |
__ |
|
|
232 |
|
|
|
233 |
|
|
|
234 |
The texinfo doc looks most pretty when printed or as html. |
|
|
235 |
Indeed, in the info version certain examples are difficult |
|
|
236 |
to read due to the quoting conventions used in |
|
|
237 |
info. |
|
|
238 |
---- |