1format.dat(4) File Formats format.dat(4)
2
3
4
6 format.dat - disk drive configuration for the format command
7
9 format.dat enables you to use your specific disk drives with for‐
10 mat(1M). On Solaris 2.3 and compatible systems, format will automati‐
11 cally configure and label SCSI drives, so that they need not be defined
12 in format.dat. Three things can be defined in the data file:
13
14 o search paths
15
16 o disk types
17
18 o partition tables.
19
20 Syntax
21 The following syntax rules apply to the data file:
22
23 o The pound # sign is the comment character. Any text on a
24 line after a pound sign is not interpreted by format.
25
26 o Each definition in the format.dat file appears on a single
27 logical line. If the definition is more than one line long,
28 all but the last line of the definition must end with a
29 backslash (\).
30
31 o A definition consists of a series of assignments that have
32 an identifier on the left side and one or more values on the
33 right side. The assignment operator is the equal sign (=).
34 Assignments within a definition must be separated by a colon
35 (:).
36
37 o White space is ignored by format(1M). If you want an
38 assigned value to contain white space, enclose the entire
39 value in double quotes ("). This will cause the white space
40 within quotes to be preserved as part of the assignment
41 value.
42
43 o Some assignments can have multiple values on the right hand
44 side. Separate values by a comma (,).
45
46 Keywords
47 The data file contains disk definitions that are read in by format(1M)
48 when it starts up. Each definition starts with one of the following
49 keywords: search_path, disk_type, and partition.
50
51 search_path 4.x: Tells format which disks it should search for when
52 it starts up. The list in the default data file contains
53 all the disks in the GENERIC configuration file. If your
54 system has disks that are not in the GENERIC configura‐
55 tion file, add them to the search_path definition in
56 your data file. The data file can contain only one
57 search_path definition. However, this single definition
58 lets you specify all the disks you have in your system.
59
60 5.x: By default, format(1M) understands all the logical
61 devices that are of the form /dev/rdsk/cntndnsn; hence
62 search_path is not normally defined on a 5.x system.
63
64
65 disk_type Defines the controller and disk model. Each disk_type
66 definition contains information concerning the physical
67 geometry of the disk. The default data file contains
68 definitions for the controllers and disks that the
69 Solaris operating environment supports. You need to add
70 a new disk_type only if you have an unsupported disk.
71 You can add as many disk_type definitions to the data
72 file as you want.
73
74 The following controller types are supported by for‐
75 mat(1M):
76
77 XY450 Xylogics 450 controller (SMD)
78
79
80 XD7053 Xylogics 7053 controller (SMD)
81
82
83 SCSI True SCSI (CCS or SCSI-2)
84
85
86 ISP-80 IPI panther controller
87
88 The keyword itself is assigned the name of the disk
89 type. This name appears in the disk's label and is used
90 to identify the disk type whenever format(1M) is run.
91 Enclose the name in double quotes to preserve any white
92 space in the name.
93
94 Below are lists of identifiers for supported con‐
95 trollers. Note that an asterisk ('*') indicates the
96 identifier is mandatory for that controller -- it is not
97 part of the keyword name.
98
99 The following identifiers are assigned values in all
100 disk_type definitions:
101
102 acyl* alternate cylinders
103
104
105 asect alternate sectors per track
106
107
108 atrks alternate tracks
109
110
111 fmt_time formatting time per cylinder
112
113
114 ncyl* number of logical cylinders
115
116
117 nhead* number of logical heads
118
119
120 nsect* number of logical sectors per track
121
122
123 pcyl* number of physical cylinders
124
125
126 phead number of physical heads
127
128
129 psect number of physical sectors per track
130
131
132 rpm* drive RPM
133
134 These identifiers are for SCSI and MD-21 Controllers
135
136 read_retries page 1 byte 3 (read retries)
137
138
139 write_retries page 1 byte 8 (write retries)
140
141
142 cyl_skew page 3 bytes 18-19 (cylinder skew)
143
144
145 trk_skew page 3 bytes 16-17 (track skew)
146
147
148 trks_zone page 3 bytes 2-3 (tracks per zone)
149
150
151 cache page 38 byte 2 (cache parameter)
152
153
154 prefetch page 38 byte 3 (prefetch parameter)
155
156
157 max_prefetch page 38 byte 4 (minimum prefetch)
158
159
160 min_prefetch page 38 byte 6 (maximum prefetch)
161
162 Note: The Page 38 values are device-specific. Refer the
163 user to the particular disk's manual for these values.
164
165 For SCSI disks, the following geometry specifiers may
166 cause a mode select on the byte(s) indicated:
167
168 asect page 3 bytes 4-5 (alternate sectors per zone)
169
170
171 atrks page 3 bytes 8-9 (alt. tracks per logical unit)
172
173
174 phead page 4 byte 5 (number of heads)
175
176
177 psect page 3 bytes 10-11 (sectors per track)
178
179 And these identifiers are for SMD Controllers Only
180
181 bps* bytes per sector (SMD)
182
183
184 bpt* bytes per track (SMD)
185
186 Note: under SunOS 5.x, bpt is only required for SMD
187 disks. Under SunOS 4.x, bpt was required for all disk
188 types, even though it was only used for SMD disks.
189
190 And this identifier is for XY450 SMD Controllers Only
191
192 drive_type* drive type (SMD) (just call this "xy450
193 drive type")
194
195
196
197 partition Defines a partition table for a specific disk type. The
198 partition table contains the partitioning information,
199 plus a name that lets you refer to it in format(1M). The
200 default data file contains default partition definitions
201 for several kinds of disk drives. Add a partition defi‐
202 nition if you repartitioned any of the disks on your
203 system. Add as many partition definitions to the data
204 file as you need.
205
206 Partition naming conventions differ in SunOS 4.x and in
207 SunOS 5.x.
208
209 4.x: the partitions are named as a, b, c, d, e, f, g, h.
210
211 5.x: the partitions are referred to by numbers 0, 1, 2,
212 3, 4, 5, 6, 7.
213
214
216 Example 1 A sample disk_type and partition.
217
218
219 Following is a sample disk_type and partition definition in format.dat
220 file for SUN0535 disk device.
221
222
223 disk_type = "SUN0535" \
224 : ctlr = SCSI : fmt_time = 4 \
225 : ncyl = 1866 : acyl = 2 : pcyl = 2500 : nhead = 7 : nsect = 80 \
226 : rpm = 5400
227 partition = "SUN0535" \
228 : disk = "SUN0535" : ctlr = SCSI \
229 : 0 = 0, 64400 : 1 = 115, 103600 : 2 = 0, 1044960 : 6 = 300, 876960
230
231
232
234 /etc/format.dat default data file if format -x is not specified, nor
235 is there a format.dat file in the current directory.
236
237
239 format(1M)
240
241
242 System Administration Guide: Basic Administration
243
244
245
246SunOS 5.11 19 Apr 2001 format.dat(4)