Print this page
4023 - Typo in file(1) manpage and various others
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/man/man1m/fdisk.1m
+++ new/usr/src/man/man1m/fdisk.1m
1 1 '\" te
2 2 .\" Copyright (c) 2008, Sun Microsystems, Inc. All Rights Reserved
3 3 .\" 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.
4 4 .\" 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
5 5 .\" the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
6 -.TH FDISK 1M "Jul 2, 2009"
6 +.TH FDISK 1M "Sep 10, 2013"
7 7 .SH NAME
8 8 fdisk \- create or modify fixed disk partition table
9 9 .SH SYNOPSIS
10 10 .LP
11 11 .nf
12 12 \fBfdisk\fR [\fB-o\fR \fIoffset\fR] [\fB-s\fR \fIsize\fR] [\fB-P\fR \fIfill_patt\fR] [\fB-S\fR \fIgeom_file\fR]
13 13 [\fB-w\fR | \fB-r\fR | \fB-d\fR | \fB-n\fR | \fB-I\fR | \fB-B\fR | \fB-t\fR | \fB-T\fR | \fB-g\fR | \fB-G\fR | \fB-R\fR | \fB-E\fR]
14 14 [-\fB-F\fR \fIfdisk_file\fR] [ [\fB-v\fR] \fB-W\fR {\fIfdisk_file\fR | \(mi}]
15 15 [\fB-h\fR] [\fB-b\fR \fImasterboot\fR]
16 16 [\fB-A\fR \fIid\fR : \fIact\fR : \fIbhead\fR : \fIbsect\fR : \fIbcyl\fR : \fIehead\fR : \fIesect\fR :
17 17 \fIecyl\fR : \fIrsect\fR : \fInumsect\fR]
18 18 [\fB-D\fR \fIid\fR : \fIact\fR : \fIbhead:\fR \fIbsect\fR : \fIbcyl\fR : \fIehead:\fR \fIesect\fR :
19 19 \fIecyl\fR : \fIrsect\fR : \fInumsect\fR] \fIrdevice\fR
20 20 .fi
21 21
22 22 .SH DESCRIPTION
23 23 .sp
24 24 .LP
25 25 This command is used to do the following:
26 26 .RS +4
27 27 .TP
28 28 .ie t \(bu
29 29 .el o
30 30 Create and modify an \fBfdisk\fR partition table on x86 systems
31 31 .RE
32 32 .RS +4
33 33 .TP
34 34 .ie t \(bu
35 35 .el o
36 36 Create and modify an \fBfdisk\fR partition table on removable media on SPARC or
37 37 x86 systems
38 38 .RE
39 39 .RS +4
40 40 .TP
41 41 .ie t \(bu
42 42 .el o
43 43 Install the master boot record that is put in the first sector of the fixed
44 44 disk on x86 systems only
45 45 .RE
46 46 .sp
47 47 .LP
48 48 This table is used by the first-stage bootstrap (or firmware) to identify parts
49 49 of the disk reserved for different operating systems, and to identify the
50 50 partition containing the second-stage bootstrap (the \fIactive\fR Solaris
51 51 partition). The \fIrdevice\fR argument must be used to specify the raw device
52 52 associated with the fixed disk, for example, \fB/dev/rdsk/c0t0d0p0\fR.
53 53 .sp
54 54 .LP
55 55 The program can operate in three different modes. The first is interactive
56 56 mode. In interactive mode, the program displays the partition table as it
57 57 exists on the disk, and then presents a menu allowing the user to modify the
58 58 table. The menu, questions, warnings, and error messages are intended to be
59 59 self-explanatory.
60 60 .sp
61 61 .LP
62 62 In interactive mode, if there is no partition table on the disk, the user is
63 63 given the options of creating a default partitioning or specifying the initial
64 64 table values. The default partitioning allocates the entire disk for the
65 65 Solaris system and makes the Solaris system partition active. In either case,
66 66 when the initial table is created, \fBfdisk\fR also writes out the first-stage
67 67 bootstrap (x86 only) code along with the partition table. In this mode, (x86
68 68 only) when creating an entry for a non-EFI partition on a disk that is larger
69 69 than 2 TB (terabytes), \fBfdisk\fR warns that the maximum size of the partition
70 70 is 2 TB. Under these conditions percentages displayed by \fBfdisk\fR are based
71 71 on 2 TB.
72 72 .sp
73 73 .LP
74 74 The second mode of operation is used for automated entry addition, entry
75 75 deletion, or replacement of the entire \fBfdisk\fR table. This mode can add or
76 76 delete an entry described on the command line. In this mode the entire
77 77 \fBfdisk\fR table can be read in from a file replacing the original table.
78 78 \fBfdisk\fR can also be used to create this file. There is a command line
79 79 option that will cause \fBfdisk\fR to replace any \fBfdisk\fR table with the
80 80 default of the whole disk for the Solaris system.
81 81 .sp
82 82 .LP
83 83 The third mode of operation is used for disk diagnostics. In this mode, a
84 84 section of the disk can be filled with a user-specified pattern and mode
85 85 sections of the disk can also be read or written.
86 86 .LP
87 87 Note -
88 88 .sp
89 89 .RS 2
90 90 The third mode of operation is not currently supported for extended partitions
91 91 .RE
92 92 .sp
93 93 .LP
94 94 When \fBfdisk\fR creates a partition, the space is allocated in the \fBfdisk\fR
95 95 partition table, but the allocated disk space is not initialized.
96 96 \fBnewfs\fR(1M) is required to create and write file system metadata to the new
97 97 partition, and \fBformat\fR(1M) is required to write the VTOC or EFI/GPT
98 98 metadata.
99 99 .SS "Menu Options"
100 100 .sp
101 101 .LP
102 102 The menu options for interactive mode given by the \fBfdisk\fR program are:
103 103 .sp
104 104 .ne 2
105 105 .na
106 106 \fB\fBCreate a partition\fR\fR
107 107 .ad
108 108 .sp .6
109 109 .RS 4n
110 110 This option allows the user to create a new partition. The maximum number of
111 111 partitions is 4. The program will ask for the type of the partition (SOLARIS,
112 112 MS-DOS, UNIX, or other). It will then ask for the size of the partition as a
113 113 percentage of the disk. The user may also enter the letter \fBc\fR at this
114 114 point, in which case the program will ask for the starting cylinder number and
115 115 size of the partition in cylinders. If a \fBc\fR is not entered, the program
116 116 will determine the starting cylinder number where the partition will fit. In
117 117 either case, if the partition would overlap an existing partition or will not
118 118 fit, a message is displayed and the program returns to the original menu.
119 119 .RE
120 120
121 121 .sp
122 122 .ne 2
123 123 .na
124 124 \fB\fBChange Active (Boot from) partition\fR\fR
125 125 .ad
126 126 .sp .6
127 127 .RS 4n
128 128 This option allows the user to specify the partition where the first-stage
129 129 bootstrap will look for the second-stage bootstrap, otherwise known as the
130 130 \fIactive\fR partition.
131 131 .RE
132 132
133 133 .sp
134 134 .ne 2
135 135 .na
136 136 \fB\fBDelete a partition\fR\fR
137 137 .ad
138 138 .sp .6
139 139 .RS 4n
140 140 This option allows the user to delete a previously created partition. Note that
141 141 this will destroy all data in that partition.
142 142 .RE
143 143
144 144 .sp
145 145 .ne 2
146 146 .na
147 147 \fB\fBChange between Solaris and Solaris2 Partition IDs\fR\fR
148 148 .ad
149 149 .sp .6
150 150 .RS 4n
151 151 This option allows the user to switch between the current \fBfdisk\fR operating
152 152 system partition identifier and the previous one. This does not affect any data
153 153 in the disk partition and is provided for compatibility with older software.
154 154 .RE
155 155
156 156 .sp
157 157 .ne 2
158 158 .na
159 159 \fB\fBEdit/View extended partitions\fR\fR
160 160 .ad
161 161 .sp .6
162 162 .RS 4n
163 163 This option provides the extended partition menu to the user. Use the extended
164 164 partition menu to add and delete logical drives, change the sysid of the
165 165 logical drives, and display logical drive information. To commit the changes
166 166 made in the extended partition, you must return to the main menu using the
167 167 extended partition submenu option \fBr\fR. There is also an option to display
168 168 the list of options that the extended partition submenu supports. Given below
169 169 is the list:
170 170 .sp
171 171 .ne 2
172 172 .na
173 173 \fB\fBa\fR\fR
174 174 .ad
175 175 .RS 5n
176 176 Add a logical drive.
177 177 .sp
178 178 Use this submenu option to add a logical drive. There are three pieces of
179 179 information that are required: The beginning cylinder, the size (in cylinders
180 180 or in human readable form - KB, MB, or GB), and the partition ID. While
181 181 specifying the partition ID, there is an option (\fBI\fR) that you can use to
182 182 list the supported partitions.
183 183 .RE
184 184
185 185 .sp
186 186 .ne 2
187 187 .na
188 188 \fB\fBd\fR\fR
189 189 .ad
190 190 .RS 5n
191 191 Delete a logical drive.
192 192 .sp
193 193 Use this submenu option to delete a logical drive. The only input required is
194 194 the number of the logical drive that is to be deleted.
195 195 .RE
196 196
197 197 .sp
198 198 .ne 2
199 199 .na
200 200 \fB\fBh\fR\fR
201 201 .ad
202 202 .RS 5n
203 203 Display the help menu.
204 204 .sp
205 205 This submenu option displays the supported operations in the extended partition
206 206 submenu.
207 207 .RE
208 208
209 209 .sp
210 210 .ne 2
211 211 .na
212 212 \fB\fBi\fR\fR
213 213 .ad
214 214 .RS 5n
215 215 Change the id of the logical drive.
216 216 .sp
217 217 Use this submenu option to change the system ID of the existing logical drives.
218 218 A list of supported system IDs is displayed when you use the \fBI\fR option
219 219 when in this submenu.
220 220 .RE
221 221
222 222 .sp
223 223 .ne 2
224 224 .na
225 225 \fB\fBp\fR\fR
226 226 .ad
227 227 .RS 5n
228 228 Display the logical drive layout.
229 229 .sp
230 230 Displays the logical drive information to stdout. This output reflects any
231 231 changes made during the current run of the \fBfdisk\fR program. The changes are
232 232 not committed to the disk until return to the main menu (using the submenu
233 233 \fBr\fR) and choose the option to commit the changes to the disk.
234 234 .RE
235 235
236 236 .sp
237 237 .ne 2
238 238 .na
239 239 \fB\fBr\fR\fR
240 240 .ad
241 241 .RS 5n
242 242 Return to the main \fBfdisk\fR menu.
243 243 .sp
244 244 Exit the extended partition submenu and return to the main menu.
245 245 .RE
246 246
247 247 .RE
248 248
249 249 .sp
250 250 .LP
251 251 Use the following options to include your modifications to the partition table
252 252 at this time or to cancel the session without modifying the table:
253 253 .sp
254 254 .ne 2
255 255 .na
256 256 \fB\fBExit\fR\fR
257 257 .ad
258 258 .RS 10n
259 259 This option writes the new version of the table created during this session
260 260 with \fBfdisk\fR out to the fixed disk, and exits the program.
261 261 .RE
262 262
263 263 .sp
264 264 .ne 2
265 265 .na
266 266 \fB\fBCancel\fR\fR
267 267 .ad
268 268 .RS 10n
269 269 This option exits without modifying the partition table.
270 270 .RE
271 271
272 272 .SH OPTIONS
273 273 .sp
274 274 .LP
275 275 The following options apply to \fBfdisk\fR:
276 276 .sp
277 277 .ne 2
278 278 .na
279 279 \fB\fB-A\fR \fIid:act:bhead:bsect:bcyl:ehead:esect:ecyl:rsect:numsect\fR\fR
280 280 .ad
281 281 .sp .6
282 282 .RS 4n
283 283 Add a partition as described by the argument (see the \fB-F\fR option below for
284 284 the format). Use of this option will zero out the \fBVTOC\fR on the Solaris
285 285 partition if the \fBfdisk\fR table changes.
286 286 .RE
287 287
288 288 .sp
289 289 .ne 2
290 290 .na
291 291 \fB\fB-b\fR \fImaster_boot\fR\fR
292 292 .ad
293 293 .sp .6
294 294 .RS 4n
295 295 Specify the file \fImaster_boot\fR as the master boot program. The default
296 296 master boot program is \fB/usr/lib/fs/ufs/mboot\fR.
297 297 .RE
298 298
299 299 .sp
300 300 .ne 2
301 301 .na
302 302 \fB\fB-B\fR\fR
303 303 .ad
304 304 .sp .6
305 305 .RS 4n
306 306 Default to one Solaris partition that uses the whole disk. On an x86 machine,
307 307 if the disk is larger than 2 TB (terabytes), the default size of the Solaris
308 308 partition will be limited to 2 TB.
309 309 .RE
310 310
311 311 .sp
312 312 .ne 2
313 313 .na
314 314 \fB\fB-d\fR\fR
315 315 .ad
316 316 .sp .6
317 317 .RS 4n
318 318 Turn on verbose \fIdebug\fR mode. This will cause \fBfdisk\fR to print its
319 319 state on stderr as it is used. The output from this option should not be used
320 320 with \fB-F\fR.
321 321 .RE
322 322
323 323 .sp
324 324 .ne 2
325 325 .na
326 326 \fB\fB-D\fR \fIid:act:bhead:bsect:bcyl:ehead:esect:ecyl:rsect:numsect\fR\fR
327 327 .ad
328 328 .sp .6
329 329 .RS 4n
330 330 Delete a partition as described by the argument (see the \fB-F\fR option below
331 331 for the format). Note that the argument must be an exact match or the entry
332 332 will not be deleted! Use of this option will zero out the \fBVTOC\fR on the
333 333 Solaris partition if the \fBfdisk\fR table changes.
334 334 .RE
335 335
336 336 .sp
337 337 .ne 2
338 338 .na
339 339 \fB\fB-E\fR\fR
340 340 .ad
341 341 .sp .6
342 342 .RS 4n
343 343 Create an \fBEFI\fR partition that uses the entire disk.
344 344 .RE
345 345
346 346 .sp
347 347 .ne 2
348 348 .na
349 349 \fB\fB-F\fR \fIfdisk_file\fR\fR
350 350 .ad
351 351 .sp .6
352 352 .RS 4n
353 353 Use fdisk file \fIfdisk_file\fR to initialize table. Use of this option will
354 354 zero out the \fBVTOC\fR on the Solaris partition if the \fBfdisk\fR table
355 355 changes.
356 356 .sp
357 357 The \fIfdisk_file\fR contains four specification lines for the primary
358 358 partitions followed by specification lines for the logical drives. You must
359 359 have four lines for the primary partitions if there is at least one logical
360 360 drive. In this case, if the number of primary partitions to be configured is
361 361 less than four, the remaining lines should be filled with zeros.
362 362 .sp
363 363 Each line is composed of entries that are position-dependent, are separated by
364 364 whitespace or colons, and have the following format:
365 365 .sp
366 366 \fIid act bhead bsect bcyl ehead esect ecyl rsect numsect\fR
367 367 .sp
368 368 \&...where the entries have the following values:
369 369 .sp
370 370 .ne 2
371 371 .na
372 372 \fB\fIid\fR\fR
373 373 .ad
374 374 .RS 11n
375 375 This is the type of partition and the correct numeric values may be found in
376 376 \fBfdisk.h\fR.
377 377 .RE
378 378
379 379 .sp
380 380 .ne 2
381 381 .na
382 382 \fB\fIact\fR\fR
383 383 .ad
384 384 .RS 11n
385 385 This is the active partition flag; \fB0\fR means not active and \fB128\fR means
386 386 active. For logical drives, this flag will always be set to 0 even if specified
387 387 as 128 by the user.
388 388 .RE
389 389
390 390 .sp
391 391 .ne 2
392 392 .na
393 393 \fB\fIbhead\fR\fR
394 394 .ad
395 395 .RS 11n
396 396 This is the head where the partition starts. If this is set to \fB0\fR,
397 397 \fBfdisk\fR will correctly fill this in from other information.
398 398 .RE
399 399
400 400 .sp
401 401 .ne 2
402 402 .na
403 403 \fB\fIbsect\fR\fR
404 404 .ad
405 405 .RS 11n
406 406 This is the sector where the partition starts. If this is set to \fB0\fR,
407 407 \fBfdisk\fR will correctly fill this in from other information.
408 408 .RE
409 409
410 410 .sp
411 411 .ne 2
412 412 .na
413 413 \fB\fIbcyl\fR\fR
414 414 .ad
415 415 .RS 11n
416 416 This is the cylinder where the partition starts. If this is set to \fB0\fR,
417 417 \fBfdisk\fR will correctly fill this in from other information.
418 418 .RE
419 419
420 420 .sp
421 421 .ne 2
422 422 .na
423 423 \fB\fIehead\fR\fR
424 424 .ad
425 425 .RS 11n
426 426 This is the head where the partition ends. If this is set to \fB0\fR,
427 427 \fBfdisk\fR will correctly fill this in from other information.
428 428 .RE
429 429
430 430 .sp
431 431 .ne 2
432 432 .na
433 433 \fB\fIesect\fR\fR
434 434 .ad
435 435 .RS 11n
436 436 This is the sector where the partition ends. If this is set to \fB0\fR,
437 437 \fBfdisk\fR will correctly fill this in from other information.
438 438 .RE
439 439
440 440 .sp
441 441 .ne 2
442 442 .na
443 443 \fB\fIecyl\fR\fR
444 444 .ad
445 445 .RS 11n
446 446 This is the cylinder where the partition ends. If this is set to \fB0\fR,
447 447 \fBfdisk\fR will correctly fill this in from other information.
448 448 .RE
449 449
450 450 .sp
451 451 .ne 2
452 452 .na
453 453 \fB\fIrsect\fR\fR
454 454 .ad
455 455 .RS 11n
456 456 The relative sector from the beginning of the disk where the partition starts.
457 457 This must be specified and can be used by \fBfdisk\fR to fill in other fields.
458 458 For logical drives, you must make sure that there are at least 63 free sectors
459 459 before the \fIrsect\fR specified for a logical drive.
460 460 .RE
461 461
462 462 .sp
463 463 .ne 2
464 464 .na
465 465 \fB\fInumsect\fR\fR
466 466 .ad
467 467 .RS 11n
468 468 The size in sectors of this disk partition. This must be specified and can be
469 469 used by \fBfdisk\fR to fill in other fields.
470 470 .RE
471 471
472 472 .RE
473 473
474 474 .sp
475 475 .ne 2
476 476 .na
477 477 \fB\fB-g\fR\fR
478 478 .ad
479 479 .sp .6
480 480 .RS 4n
481 481 Get the label geometry for disk and display on stdout (see the \fB-S\fR option
482 482 for the format).
483 483 .RE
484 484
485 485 .sp
486 486 .ne 2
487 487 .na
488 488 \fB\fB-G\fR\fR
489 489 .ad
490 490 .sp .6
491 491 .RS 4n
492 492 Get the physical geometry for disk and display on stdout (see the \fB-S\fR
493 493 option for the format).
494 494 .RE
495 495
496 496 .sp
497 497 .ne 2
498 498 .na
499 499 \fB\fB-h\fR\fR
500 500 .ad
501 501 .sp .6
502 502 .RS 4n
503 503 Issue verbose message; message will list all options and supply an explanation
504 504 for each.
505 505 .RE
506 506
507 507 .sp
508 508 .ne 2
509 509 .na
510 510 \fB\fB-I\fR\fR
511 511 .ad
512 512 .sp .6
513 513 .RS 4n
514 514 Forgo device checks. This is used to generate a file image of what would go on
515 515 a disk without using the device. Note that you must use \fB-S\fR with this
516 516 option (see above).
517 517 .RE
518 518
519 519 .sp
520 520 .ne 2
521 521 .na
522 522 \fB\fB-n\fR\fR
523 523 .ad
524 524 .sp .6
525 525 .RS 4n
526 526 Don't update \fBfdisk\fR table unless explicitly specified by another option.
527 527 If no other options are used, \fB-n\fR will only write the master boot record
528 528 to the disk. In addition, note that \fBfdisk\fR will not come up in interactive
529 529 mode if the \fB-n\fR option is specified.
530 530 .RE
531 531
532 532 .sp
533 533 .ne 2
534 534 .na
535 535 \fB\fB-o\fR \fIoffset\fR\fR
536 536 .ad
537 537 .sp .6
538 538 .RS 4n
539 539 Block offset from start of disk. This option is used for \fB-P\fR, \fB-r\fR,
540 540 and \fB-w\fR. Zero is assumed when this option is not used.
541 541 .RE
542 542
543 543 .sp
544 544 .ne 2
545 545 .na
546 546 \fB\fB-P\fR \fIfill_patt\fR\fR
547 547 .ad
548 548 .sp .6
549 549 .RS 4n
550 550 Fill disk with pattern \fIfill_patt\fR. \fIfill_patt\fR can be decimal or hex
551 551 and is used as number for constant long word pattern. If \fIfill_patt\fR is
552 552 \fB#\fR, then pattern is block # for each block. Pattern is put in each block
553 553 as long words and fills each block (see \fB-o\fR and \fB-s\fR).
554 554 .RE
555 555
556 556 .sp
557 557 .ne 2
558 558 .na
559 559 \fB\fB-r\fR\fR
560 560 .ad
561 561 .sp .6
562 562 .RS 4n
563 563 Read from disk and write to stdout. See \fB-o\fR and \fB-s\fR, which specify
564 564 the starting point and size of the operation.
565 565 .RE
566 566
567 567 .sp
568 568 .ne 2
569 569 .na
570 570 \fB\fB-R\fR\fR
571 571 .ad
572 572 .sp .6
573 573 .RS 4n
574 574 Treat disk as read-only. This is for testing purposes.
575 575 .RE
576 576
577 577 .sp
578 578 .ne 2
579 579 .na
580 580 \fB\fB-s\fR \fIsize\fR\fR
581 581 .ad
582 582 .sp .6
583 583 .RS 4n
584 584 Number of blocks to perform operation on (see \fB-o\fR).
585 585 .RE
↓ open down ↓ |
569 lines elided |
↑ open up ↑ |
586 586
587 587 .sp
588 588 .ne 2
589 589 .na
590 590 \fB\fB-S\fR \fIgeom_file\fR\fR
591 591 .ad
592 592 .sp .6
593 593 .RS 4n
594 594 Set the label geometry to the content of the \fIgeom_file\fR. The
595 595 \fIgeom_file\fR contains one specification line. Each line is delimited by a
596 -new-line character (\fB\n\fR). If the first character of a line is an asterisk
596 +new-line character (\fB\en\fR). If the first character of a line is an asterisk
597 597 (*), the line is treated as a comment. Each line is composed of entries that
598 598 are position-dependent, are separated by white space, and have the following
599 599 format:
600 600 .sp
601 601 .in +2
602 602 .nf
603 603 \fIpcyl ncyl acyl bcyl nheads nsectors sectsiz\fR
604 604 .fi
605 605 .in -2
606 606 .sp
607 607
608 608 where the entries have the following values:
609 609 .sp
610 610 .ne 2
611 611 .na
612 612 \fB\fIpcyl\fR\fR
613 613 .ad
614 614 .RS 12n
615 615 This is the number of physical cylinders for the drive.
616 616 .RE
617 617
618 618 .sp
619 619 .ne 2
620 620 .na
621 621 \fB\fIncyl\fR\fR
622 622 .ad
623 623 .RS 12n
624 624 This is the number of usable cylinders for the drive.
625 625 .RE
626 626
627 627 .sp
628 628 .ne 2
629 629 .na
630 630 \fB\fIacyl\fR\fR
631 631 .ad
632 632 .RS 12n
633 633 This is the number of alt cylinders for the drive.
634 634 .RE
635 635
636 636 .sp
637 637 .ne 2
638 638 .na
639 639 \fB\fIbcyl\fR\fR
640 640 .ad
641 641 .RS 12n
642 642 This is the number of offset cylinders for the drive (should be zero).
643 643 .RE
644 644
645 645 .sp
646 646 .ne 2
647 647 .na
648 648 \fB\fInheads\fR\fR
649 649 .ad
650 650 .RS 12n
651 651 The number of heads for this drive.
652 652 .RE
653 653
654 654 .sp
655 655 .ne 2
656 656 .na
657 657 \fB\fInsectors\fR\fR
658 658 .ad
659 659 .RS 12n
660 660 The number of sectors per track.
661 661 .RE
662 662
663 663 .sp
664 664 .ne 2
665 665 .na
666 666 \fB\fIsectsiz\fR\fR
667 667 .ad
668 668 .RS 12n
669 669 The size in bytes of a sector.
670 670 .RE
671 671
672 672 .RE
673 673
674 674 .sp
675 675 .ne 2
676 676 .na
677 677 \fB\fB-t\fR\fR
678 678 .ad
679 679 .sp .6
680 680 .RS 4n
681 681 Adjust incorrect slice table entries so that they will not cross partition
682 682 table boundaries.
683 683 .RE
684 684
685 685 .sp
686 686 .ne 2
687 687 .na
688 688 \fB\fB-T\fR\fR
689 689 .ad
690 690 .sp .6
691 691 .RS 4n
692 692 Remove incorrect slice table entries that span partition table boundaries.
693 693 .RE
694 694
695 695 .sp
696 696 .ne 2
697 697 .na
698 698 \fB\fB-v\fR\fR
699 699 .ad
700 700 .sp .6
701 701 .RS 4n
702 702 Output the HBA (virtual) geometry dimensions. This option must be used in
703 703 conjunction with the \fB-W\fR flag. This option will work for platforms which
704 704 support virtual geometry. (x86 only)
705 705 .RE
706 706
707 707 .sp
708 708 .ne 2
709 709 .na
710 710 \fB\fB-w\fR\fR
711 711 .ad
712 712 .sp .6
713 713 .RS 4n
714 714 Write to disk and read from stdin. See \fB-o\fR and \fB-s\fR, which specify the
715 715 starting point and size of the operation.
716 716 .RE
717 717
718 718 .sp
719 719 .ne 2
720 720 .na
721 721 \fB\fB-W\fR \fB\(mi\fR\fR
722 722 .ad
723 723 .sp .6
724 724 .RS 4n
725 725 Output the disk table to \fBstdout\fR.
726 726 .RE
727 727
728 728 .sp
729 729 .ne 2
730 730 .na
731 731 \fB\fB-W\fR \fIfdisk_file\fR\fR
732 732 .ad
733 733 .sp .6
734 734 .RS 4n
735 735 Create an \fBfdisk\fR file \fIfdisk_file\fR from disk table. This can be used
736 736 with the \fB-F\fR option below.
737 737 .RE
738 738
739 739 .SH FILES
740 740 .sp
741 741 .ne 2
742 742 .na
743 743 \fB\fB/dev/rdsk/c0t0d0p0\fR\fR
744 744 .ad
745 745 .RS 25n
746 746 Raw device associated with the fixed disk.
747 747 .RE
748 748
749 749 .sp
750 750 .ne 2
751 751 .na
752 752 \fB\fB/usr/lib/fs/ufs/mboot\fR\fR
753 753 .ad
754 754 .RS 25n
755 755 Default master boot program.
756 756 .RE
757 757
758 758 .SH ATTRIBUTES
759 759 .sp
760 760 .LP
761 761 See \fBattributes\fR(5) for descriptions of the following attributes:
762 762 .sp
763 763
764 764 .sp
765 765 .TS
766 766 box;
767 767 c | c
768 768 l | l .
769 769 ATTRIBUTE TYPE ATTRIBUTE VALUE
770 770 _
771 771 Architecture x86 and SPARC
772 772 .TE
773 773
774 774 .SH SEE ALSO
775 775 .sp
776 776 .LP
777 777 \fBuname\fR(1), \fBfmthard\fR(1M), \fBformat\fR(1M), \fBnewfs\fR(1M),
778 778 \fBprtvtoc\fR(1M), \fBattributes\fR(5)
779 779 .SH DIAGNOSTICS
780 780 .sp
781 781 .LP
782 782 Most messages will be self-explanatory. The following may appear immediately
783 783 after starting the program:
784 784 .sp
785 785 .ne 2
786 786 .na
787 787 \fB\fBFdisk\fR: \fBcannot open\fR <\fBdevice\fR>\fR
788 788 .ad
789 789 .sp .6
790 790 .RS 4n
791 791 This indicates that the device name argument is not valid.
792 792 .RE
793 793
794 794 .sp
795 795 .ne 2
796 796 .na
797 797 \fB\fBFdisk\fR: \fBunable to get device parameters for device\fR
798 798 <\fBdevice\fR>\fR
799 799 .ad
800 800 .sp .6
801 801 .RS 4n
802 802 This indicates a problem with the configuration of the fixed disk, or an error
803 803 in the fixed disk driver.
804 804 .RE
805 805
806 806 .sp
807 807 .ne 2
808 808 .na
809 809 \fB\fBFdisk\fR: \fBerror reading partition table\fR\fR
810 810 .ad
811 811 .sp .6
812 812 .RS 4n
813 813 This indicates that some error occurred when trying initially to read the fixed
814 814 disk. This could be a problem with the fixed disk controller or driver, or with
815 815 the configuration of the fixed disk.
816 816 .RE
817 817
818 818 .sp
819 819 .ne 2
820 820 .na
821 821 \fB\fBFdisk\fR: \fBerror writing boot record\fR\fR
822 822 .ad
823 823 .sp .6
824 824 .RS 4n
825 825 This indicates that some error occurred when trying to write the new partition
826 826 table out to the fixed disk. This could be a problem with the fixed disk
827 827 controller, the disk itself, the driver, or the configuration of the fixed
828 828 disk.
829 829 .RE
830 830
↓ open down ↓ |
224 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX