summaryrefslogtreecommitdiff
path: root/usr/src/man/man4/format.dat.4
blob: 010ece499c2b11b1031cb15f968315764c465a4b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
'\" te
.\"  Copyright (c) 1999, Sun Microsystems, Inc.  All Rights Reserved
.\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License").  You may not use this file except in compliance with the License.
.\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing.  See the License for the specific language governing permissions and limitations under the License.
.\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE.  If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
.TH FORMAT.DAT 4 "Apr 19, 2001"
.SH NAME
format.dat \- disk drive configuration for the format command
.SH DESCRIPTION
.sp
.LP
\fBformat.dat\fR enables you to use your specific disk drives with
\fBformat\fR(1M). On Solaris 2.3 and compatible systems, \fBformat\fR will
automatically configure and label SCSI drives, so that they need not be defined
in \fBformat.dat\fR. Three things can be defined in the data file:
.RS +4
.TP
.ie t \(bu
.el o
search paths
.RE
.RS +4
.TP
.ie t \(bu
.el o
disk types
.RE
.RS +4
.TP
.ie t \(bu
.el o
partition tables.
.RE
.SS "Syntax"
.sp
.LP
The following syntax rules apply to the data file:
.RS +4
.TP
.ie t \(bu
.el o
The pound \fB#\fR sign is the comment character. Any text on a line after a
pound sign is not interpreted by \fBformat\fR.
.RE
.RS +4
.TP
.ie t \(bu
.el o
Each definition in the \fBformat.dat\fR file appears on a single logical line.
If the definition is more than one line long, all but the last line of the
definition must end with a backslash (\e).
.RE
.RS +4
.TP
.ie t \(bu
.el o
A definition consists of a series of assignments that have an identifier on the
left side and one or more values on the right side. The assignment operator is
the equal sign (=). Assignments within a definition must be separated by a
colon (:).
.RE
.RS +4
.TP
.ie t \(bu
.el o
White space is ignored by \fBformat\fR(1M). If you want an assigned value to
contain white space, enclose the entire value in double quotes ("). This will
cause the white space within quotes to be preserved as part of the assignment
value.
.RE
.RS +4
.TP
.ie t \(bu
.el o
Some assignments can have multiple values on the right hand side. Separate
values by a comma (,).
.RE
.SS "Keywords"
.sp
.LP
The data file contains disk definitions that are read in by \fBformat\fR(1M)
when it starts up. Each definition starts with one of the following keywords:
\fBsearch_path\fR, \fBdisk_type\fR, and \fBpartition\fR.
.sp
.ne 2
.na
\fB\fBsearch_path\fR\fR
.ad
.RS 15n
4.x: Tells \fBformat\fR which disks it should search for when it starts up. The
list in the default data file contains all the disks in the GENERIC
configuration file. If your system has disks that are not in the GENERIC
configuration file, add them to the \fBsearch_path\fR definition in your data
file. The data file can contain only one \fBsearch_path\fR definition. However,
this single definition lets you specify all the disks you have in your system.
.sp
5.x: By default, \fBformat\fR(1M) understands all the logical devices that are
of the form \fB/dev/rdsk/cntndnsn\fR; hence \fBsearch_path\fR is not normally
defined on a 5.x system.
.RE

.sp
.ne 2
.na
\fB\fBdisk_type\fR\fR
.ad
.RS 15n
Defines the controller and disk model. Each \fBdisk_type\fR definition contains
information concerning the physical geometry of the disk. The default data file
contains definitions for the controllers and disks that the Solaris operating
environment supports. You need to add a new \fBdisk_type\fR only if you have an
unsupported disk. You can add as many \fBdisk_type\fR definitions to the data
file as you want.
.sp
The following controller types are supported by \fBformat\fR(1M):
.sp
.ne 2
.na
\fBXY450\fR
.ad
.RS 10n
Xylogics 450 controller (SMD)
.RE

.sp
.ne 2
.na
\fBXD7053\fR
.ad
.RS 10n
Xylogics 7053 controller (SMD)
.RE

.sp
.ne 2
.na
\fBSCSI\fR
.ad
.RS 10n
True SCSI (CCS or SCSI-2)
.RE

.sp
.ne 2
.na
\fBISP-80\fR
.ad
.RS 10n
IPI panther controller
.RE

The keyword itself is assigned the name of the disk type. This name appears in
the disk's label and is used to identify the disk type whenever
\fBformat\fR(1M) is run. Enclose the name in double quotes to preserve any
white space in the name.
.sp
Below are lists of identifiers for supported controllers. Note that an asterisk
('*') indicates the identifier is mandatory for that controller -- it is not
part of the keyword name.
.sp
The following identifiers are assigned values in all \fBdisk_type\fR
definitions:
.sp
.ne 2
.na
\fB\fBacyl*\fR\fR
.ad
.RS 12n
alternate cylinders
.RE

.sp
.ne 2
.na
\fB\fBasect\fR\fR
.ad
.RS 12n
alternate sectors per track
.RE

.sp
.ne 2
.na
\fB\fBatrks\fR\fR
.ad
.RS 12n
alternate tracks
.RE

.sp
.ne 2
.na
\fB\fBfmt_time\fR\fR
.ad
.RS 12n
formatting time per cylinder
.RE

.sp
.ne 2
.na
\fB\fBncyl*\fR\fR
.ad
.RS 12n
number of logical cylinders
.RE

.sp
.ne 2
.na
\fB\fBnhead*\fR\fR
.ad
.RS 12n
number of logical heads
.RE

.sp
.ne 2
.na
\fB\fBnsect*\fR\fR
.ad
.RS 12n
number of logical sectors per track
.RE

.sp
.ne 2
.na
\fB\fBpcyl*\fR\fR
.ad
.RS 12n
number of physical cylinders
.RE

.sp
.ne 2
.na
\fB\fBphead\fR\fR
.ad
.RS 12n
number of physical heads
.RE

.sp
.ne 2
.na
\fB\fBpsect\fR\fR
.ad
.RS 12n
number of physical sectors per track
.RE

.sp
.ne 2
.na
\fB\fBrpm*\fR\fR
.ad
.RS 12n
drive RPM
.RE

These identifiers are for SCSI and MD-21 Controllers
.sp
.ne 2
.na
\fB\fBread_retries\fR\fR
.ad
.RS 17n
page 1 byte 3 (read retries)
.RE

.sp
.ne 2
.na
\fB\fBwrite_retries\fR\fR
.ad
.RS 17n
page 1 byte 8 (write retries)
.RE

.sp
.ne 2
.na
\fB\fBcyl_skew\fR\fR
.ad
.RS 17n
page 3 bytes 18-19 (cylinder skew)
.RE

.sp
.ne 2
.na
\fB\fBtrk_skew\fR\fR
.ad
.RS 17n
page 3 bytes 16-17 (track skew)
.RE

.sp
.ne 2
.na
\fB\fBtrks_zone\fR\fR
.ad
.RS 17n
page 3 bytes 2-3 (tracks per zone)
.RE

.sp
.ne 2
.na
\fB\fBcache\fR\fR
.ad
.RS 17n
page 38 byte 2 (cache parameter)
.RE

.sp
.ne 2
.na
\fB\fBprefetch\fR\fR
.ad
.RS 17n
page 38 byte 3 (prefetch parameter)
.RE

.sp
.ne 2
.na
\fB\fBmax_prefetch\fR\fR
.ad
.RS 17n
page 38 byte 4 (minimum prefetch)
.RE

.sp
.ne 2
.na
\fB\fBmin_prefetch\fR\fR
.ad
.RS 17n
page 38 byte 6 (maximum prefetch)
.RE

Note: The Page 38 values are device-specific. Refer the user to the particular
disk's manual for these values.
.sp
For SCSI disks, the following geometry specifiers may cause a mode select on
the byte(s) indicated:
.sp
.ne 2
.na
\fB\fBasect\fR\fR
.ad
.RS 9n
page 3 bytes 4-5 (alternate sectors per zone)
.RE

.sp
.ne 2
.na
\fB\fBatrks\fR\fR
.ad
.RS 9n
page 3 bytes 8-9 (alt. tracks per logical unit)
.RE

.sp
.ne 2
.na
\fB\fBphead\fR\fR
.ad
.RS 9n
page 4 byte 5 (number of heads)
.RE

.sp
.ne 2
.na
\fB\fBpsect\fR\fR
.ad
.RS 9n
page 3 bytes 10-11 (sectors per track)
.RE

And these identifiers are for SMD Controllers Only
.sp
.ne 2
.na
\fB\fBbps*\fR\fR
.ad
.RS 8n
bytes per sector (SMD)
.RE

.sp
.ne 2
.na
\fB\fBbpt*\fR\fR
.ad
.RS 8n
bytes per track (SMD)
.RE

Note: under SunOS 5.x, bpt is only required for SMD disks. Under SunOS 4.x, bpt
was required for all disk types, even though it was only used for SMD disks.
.sp
And this identifier is for XY450 SMD Controllers Only
.sp
.ne 2
.na
\fB\fBdrive_type*\fR\fR
.ad
.RS 15n
drive type (SMD) (just call this "xy450 drive type")
.RE

.RE

.sp
.ne 2
.na
\fB\fBpartition\fR\fR
.ad
.RS 15n
Defines a partition table for a specific disk type. The partition table
contains the partitioning information, plus a name that lets you refer to it in
\fBformat\fR(1M). The default data file contains default partition definitions
for several kinds of disk drives. Add a partition definition if you
repartitioned any of the disks on your system. Add as many partition
definitions to the data file as you need.
.sp
Partition naming conventions differ in SunOS 4.x and in SunOS 5.x.
.sp
4.x: the partitions are named as \fBa\fR, \fBb\fR, \fBc\fR, \fBd\fR, \fBe\fR,
\fBf\fR, \fBg\fR, \fBh\fR.
.sp
5.x: the partitions are referred to by numbers \fB0\fR, \fB1\fR, \fB2\fR,
\fB3\fR, \fB4\fR, \fB5\fR, \fB6\fR, \fB7\fR.
.RE

.SH EXAMPLES
.LP
\fBExample 1 \fRA sample \fBdisk_type\fR and \fBpartition\fR.
.sp
.LP
Following is a sample \fBdisk_type\fR and \fBpartition\fR definition in
\fBformat.dat\fR file for SUN0535 disk device.

.sp
.in +2
.nf
disk_type = "SUN0535" \e
	: ctlr = SCSI : fmt_time = 4 \e
	: ncyl = 1866 : acyl = 2 : pcyl = 2500 : nhead = 7 : nsect = 80 \e
	: rpm = 5400
partition = "SUN0535" \e
	: disk = "SUN0535" : ctlr = SCSI \e
      : 0 = 0, 64400 : 1 = 115, 103600 : 2 = 0, 1044960 : 6 = 300, 876960
.fi
.in -2
.sp

.SH FILES
.sp
.ne 2
.na
\fB\fB/etc/format.dat\fR\fR
.ad
.RS 19n
default data file if \fBformat\fR \fB-x\fR is not specified, nor is there a
\fBformat.dat\fR file in the current directory.
.RE

.SH SEE ALSO
.sp
.LP
\fBformat\fR(1M)
.sp
.LP
\fISystem Administration Guide: Basic Administration\fR