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
|
'\" te
.\" Copyright 2001, 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 FDFORMAT 1 "Feb 28, 2007"
.SH NAME
fdformat \- format floppy diskette or PCMCIA memory card
.SH SYNOPSIS
.LP
.nf
\fBfdformat\fR [\fB-dDeEfHlLmMUqvx\fR] [\fB-b\fR \fIlabel\fR] [\fB-B\fR \fIfilename\fR]
[\fB-t\fR \fIdostype\fR] [\fIdevname\fR]
.fi
.SH DESCRIPTION
.sp
.LP
The \fBfdformat\fR utility has been superseded by \fBrmformat\fR(1), which
provides most but not all of \fBfdformat\fR's functionality.
.sp
.LP
\fBfdformat\fR is used to format diskettes and \fBPCMCIA\fR memory cards. All
new blank diskettes or \fBPCMCIA\fR memory cards must be formatted before they
can be used.
.sp
.LP
\fBfdformat\fR formats and verifies the media and indicates whether any bad
sectors were encountered. All existing data on the diskette or \fBPCMCIA\fR
memory card, if any, is destroyed by formatting. If no device name is given,
\fBfdformat\fR uses the diskette as a default.
.sp
.LP
By default, \fBfdformat\fR uses the configured capacity of the drive to format
the diskette. A \fB3.5\fR inch high-density drive uses diskettes with a
formatted capacity of \fB1.44MB\fR. A \fB5.25\fR inch high-density drive uses
diskettes with a formatted capacity of \fB1.2MB\fR. In either case, a density
option does not have to be specified to \fBfdformat\fR. However, a density
option must be specified when using a diskette with a lower capacity than the
drive's default. Use the \fB-H\fR option to format high-density diskettes
(\fB1.44MB\fR capacity) in an extra-high-density (\fBED\fR) drive. Use the
\fB-D\fR option, the \fB-l\fR option, or the \fB-L\fR option to format double-
density (or low-density) diskettes (\fB720KB\fR capacity) in an \fBHD\fR or
\fBED\fR drive. To format medium-density diskettes (\fB1.2MB\fR capacity), use
the \fB-M\fR option with \fB-t\fR \fBnec\fR (this is the same as using the
\fB-m\fR option with \fB-t\fR \fBnec\fR).
.sp
.LP
Extended density uses double-sided, extended-density or extra-high-density
(\fBDS\fR/\fBED\fR) diskettes. Medium and high densities use the same media:
double-sided, high-density (\fBDS\fR/\fBHD\fR) diskettes. Double (low) density
uses double-sided, double-density (\fBDS\fR/\fBDD\fR
.sp
.LP
\fBD\fR) diskettes. Substituting diskettes of one density for diskettes of
either a higher or lower density generally does not work. Data integrity cannot
be assured whenever a diskette is formatted to a capacity not matching its
density.
.sp
.LP
A \fBPCMCIA\fR memory card with densities from \fB512KB\fR to \fB64MB\fR may be
formatted.
.sp
.LP
\fBfdformat\fR writes new identification and data fields for each sector on all
tracks unless the \fB-x\fR option is specified. For diskettes, each sector is
verified if the \fB-v\fR option is specified.
.sp
.LP
After formatting and verifying, \fBfdformat\fR writes an operating-system label
on block \fB0\fR. Use the \fB-t\fR \fBdos\fR option (same as the \fB-d\fR
option) to put an \fBMS-DOS\fR file system on the diskette or \fBPCMCIA\fR
memory card after the format is done. Use the \fB-t\fR \fBnec\fR option with
the \fB-M\fR option (same as the \fB-m\fR option) to put an \fBNEC-DOS\fR file
system on a diskette. Otherwise, \fBfdformat\fR writes a \fBSunOS\fR label in
block \fB0\fR.
.SH OPTIONS
.sp
.LP
The following options are supported:
.sp
.ne 2
.na
\fB\fB-b\fR \fIlabel\fR\fR
.ad
.RS 15n
Labels the media with volume label. A SunOS volume label is restricted to 8
characters. A \fBDOS\fR volume label is restricted to 11 upper-case characters.
.RE
.sp
.ne 2
.na
\fB\fB-B\fR \fIfilename\fR\fR
.ad
.RS 15n
Installs special boot loader in filename on an \fBMS-DOS\fR diskette. This
option is only meaningful when the \fB-d\fR option (or \fB-t\fR \fBdos\fR) is
also specified.
.RE
.sp
.ne 2
.na
\fB\fB-D\fR\fR
.ad
.RS 15n
Formats a \fB720KB\fR (3.5 inch) or \fB360KB\fR (5.25 inch) double-density
diskette (same as the \fB-l\fR or \fB-L\fR options). This is the default for
double-density type drives. It is needed if the drive is a high- or
extended-density type.
.RE
.sp
.ne 2
.na
\fB\fB-e\fR\fR
.ad
.RS 15n
Ejects the diskette when done. This feature is not available on all systems.
.RE
.sp
.ne 2
.na
\fB\fB-E\fR\fR
.ad
.RS 15n
Formats a \fB2.88MB\fR (3.5 inch) extended-density diskette. This is the
default for extended-density type drives.
.RE
.sp
.ne 2
.na
\fB\fB-f\fR\fR
.ad
.RS 15n
Forces formatting, that is, this option does not ask for confirmation before
starting format.
.RE
.sp
.ne 2
.na
\fB\fB-H\fR\fR
.ad
.RS 15n
Formats a \fB1.44MB\fR (3.5 inch) or \fB1.2MB\fR (5.25 inch) high-density
diskette. This is the default for high-density type drives; it is needed if the
drive is the extended-density type.
.RE
.sp
.ne 2
.na
\fB\fB-M\fR\fR
.ad
.RS 15n
Writes a \fB1.2MB\fR (3.5 inch) medium-density format on a high-density
diskette (use only with the -t nec option). This is the same as using \fB-m\fR.
.sp
This feature is not available on all systems.
.RE
.sp
.ne 2
.na
\fB\fB-q\fR\fR
.ad
.RS 15n
Quiet; does not print status messages.
.RE
.sp
.ne 2
.na
\fB\fB-t\fR \fBdos\fR\fR
.ad
.RS 15n
Installs an \fBMS-DOS\fR file system and boot sector formatting. This is
equivalent to the \fBDOS\fR format command or the \fB-d\fR option.
.RE
.sp
.ne 2
.na
\fB\fB-t\fR \fBnec\fR\fR
.ad
.RS 15n
Installs an \fBNEC-DOS\fR file system and boot sector on the disk after
formatting. This should be used only with the \fB-M\fR option. This feature is
not available on all systems.
.RE
.sp
.ne 2
.na
\fB\fB-U\fR\fR
.ad
.RS 15n
Performs \fBumount\fR on any file systems and then formats. See
\fBmount\fR(1M).
.RE
.sp
.ne 2
.na
\fB\fB-v\fR\fR
.ad
.RS 15n
Verifies each block of the diskette after the format.
.RE
.sp
.ne 2
.na
\fB\fB-x\fR\fR
.ad
.RS 15n
Skips the format and only writes a SunOS label or an \fBMS-DOS\fR file system.
.RE
.SH OPERANDS
.sp
.LP
The following operands are supported:
.sp
.ne 2
.na
\fB\fIdevname\fR\fR
.ad
.RS 11n
Replaces \fIdevname\fR with \fBrdiskette0\fR (systems without volume
management) or \fBfloppy0\fR (systems with volume management) to use the first
drive or rdiskette1 (systems without volume management) or \fBfloppy1\fR
(systems with volume management) to use the second drive. If \fIdevname\fR is
omitted, the first drive, if one exists, is used. For \fBPCMCIA\fR memory
cards, replace \fIdevname\fR with the device name for the \fBPCMCIA\fR memory
card which resides in \fB/dev/rdsk/c\fIN\fRt\fIN\fRd\fIN\fRs\fIN\fR\fR or
/dev/dsk/c\fIN\fRt\fIN\fRd\fIN\fRs\fIN\fR. If \fIdevname\fR is omitted, the
default diskette drive, if one exists, is used.
.sp
If devname is omitted, the default diskette drive, if one exists, will be used.
\fIN\fR represents a decimal number and can be specified as follows:
.sp
.ne 2
.na
\fBc\fIN\fR\fR
.ad
.RS 6n
Controller \fIN\fR
.RE
.sp
.ne 2
.na
\fBt\fIN\fR\fR
.ad
.RS 6n
Technology type \fIN\fR:
.sp
.in +2
.nf
0x1 ROM
0x2 OTPROM
0x3 EPROM
0x4 EEPROM
0x5 FLASH
0x6 SRAM
0x7 DRAM
.fi
.in -2
.sp
.RE
.sp
.ne 2
.na
\fBd\fIN\fR\fR
.ad
.RS 6n
Technology region in type \fIN\fR.
.RE
.sp
.ne 2
.na
\fBs\fIN\fR\fR
.ad
.RS 6n
Slice \fIN\fR.
.RE
The following options are provided for compatibility with previous versions of
\fBfdformat\fR. Their use is discouraged.
.sp
.ne 2
.na
\fB\fB-d\fR\fR
.ad
.RS 6n
Formats an \fBMS-DOS\fR floppy diskette or \fBPCMCIA\fR memory card (same as
\fB-t\fR \fBdos\fR). This is equivalent to the \fBMS-DOS FORMAT\fR command.
.RE
.sp
.ne 2
.na
\fB\fB-l\fR\fR
.ad
.RS 6n
Formats a \fB720KB\fR (3.5 inch) or \fB360KB\fR (5.25 inch) double-density
diskette (same as \fB-D\fR or \fB-L\fR). This is the default for double-density
type drives; it is needed if the drive is the high- or extended-density type.
.RE
.sp
.ne 2
.na
\fB\fB-L\fR\fR
.ad
.RS 6n
Formats a \fB720KB\fR (3.5 inch) or \fB360KB\fR (5.25 inch) double-density
diskette (same as \fB-l\fR or \fB-D\fR). This is the default for double-density
type drives.
.RE
.sp
.ne 2
.na
\fB\fB-m\fR\fR
.ad
.RS 6n
Writes a \fB1.2 MB\fR (3.5 inch) medium- density format on a high-density
diskette (use only with the \fB-t\fR \fBnec\fR option). This is the same as
using \fB-M\fR. This feature is not available on all systems.
.RE
.RE
.SH FILES
.sp
.ne 2
.na
\fB/dev/diskette0\fR
.ad
.RS 24n
Directory providing block device access for the media in floppy drive \fB0\fR.
.RE
.sp
.ne 2
.na
\fB/dev/diskette0\fR
.ad
.RS 24n
Directory providing character device access for the media in floppy drive
\fB0\fR.
.RE
.sp
.ne 2
.na
\fB/dev/aliases/floppy0\fR
.ad
.RS 24n
Symbolic link to the character device for the media in floppy drive \fB0\fR.
.RE
.sp
.ne 2
.na
\fB/dev/rdiskette\fR
.ad
.RS 24n
Directory providing character device access for the media in the primary floppy
drive, usually drive \fB0\fR.
.RE
.sp
.ne 2
.na
\fB/dev/dsk/c\fIN\fRt\fIN\fRd\fIN\fRs\fIN\fR\fR
.ad
.RS 24n
Directory providing block device access for the \fBPCMCIA\fR memory card. See
OPERANDS for a description of \fIN\fR.
.RE
.sp
.ne 2
.na
\fB/dev/rdsk/c\fIN\fRt\fIN\fRd\fIN\fRs\fIN\fR\fR
.ad
.RS 24n
Directory providing character device access for the \fBPCMCIA\fR memory card.
See OPERANDS for a description of \fIN\fR.
.RE
.sp
.ne 2
.na
\fB/dev/aliases/pcmem\fIS\fR\fR
.ad
.RS 24n
Symbolic link to the character device for the \fBPCMCIA\fR memory card in
socket \fIS\fR where \fIS\fR represents a \fBPCMCIA\fR socket number.
.RE
.sp
.ne 2
.na
\fB/dev/rdsk/c\fIN\fRt\fIN\fRd\fIN\fRs\fIN\fR\fR
.ad
.RS 24n
Directory providing character device access for the \fBPCMCIA\fR memory card.
See OPERANDS for a description of \fIN\fR.
.RE
.sp
.ne 2
.na
\fB/dev/dsk/c\fIN\fRt\fIN\fRd\fIN\fRs\fIN\fR\fR
.ad
.RS 24n
Directory providing block device access for the \fBPCMCIA\fR memory card. See
OPERANDS for a description of \fIN\fR.
.RE
.SH SEE ALSO
.sp
.LP
\fBcpio\fR(1), \fBeject\fR(1), \fBrmformat\fR(1), \fBtar\fR(1),
\fBvolcheck\fR(1), \fBvolrmmount\fR(1), \fBmount\fR(1M), \fBnewfs\fR(1M),
\fBprtvtoc\fR(1M), \fBattributes\fR(5), \fBpcfs\fR(7FS)
.SS "x86 Only"
.sp
.LP
\fBfd\fR(7D)
.SH NOTES
.sp
.LP
A diskette or \fBPCMCIA\fR memory card containing a \fBufs\fR file system
created on a SPARC based system (by using \fBfdformat\fR and \fBnewfs\fR(1M)),
is not identical to a diskette or \fBPCMCIA\fR memory card containing a ufs
file system created on an x86 based system. Do not interchange ufs diskettes or
memory cards between these platforms. Use \fBcpio\fR(1) or \fBtar\fR(1) to
transfer files on diskettes or memory cards between them. A diskette or
\fBPCMCIA\fR memory card formatted using the \fB-t\fR \fBdos\fR option (or
\fB-d\fR) for \fBMS-DOS\fR does not have the necessary system files, and is
therefore not bootable. Trying to boot from it on a \fBPC\fR produces the
following message:
.sp
.in +2
.nf
Non-System disk or disk error.
Replace and strike any key when ready
.fi
.in -2
.sp
.SH BUGS
.sp
.LP
Currently, bad sector mapping is not supported on floppy diskettes or
\fBPCMCIA\fR memory cards. Therefore, a diskette or memory card is unusable if
\fBfdformat\fR finds an error (bad sector).
|