fdisk.8 (d0353b836e88609b9400851d32e0aa6645ff9be3) | fdisk.8 (c2d03ea87913b49c09051746bb4ab5b45c80c49a) |
---|---|
1.\" $FreeBSD$ 2.\" 3.Dd October 4, 1996 4.Dt FDISK 8 5.Os FreeBSD 6.Sh NAME 7.Nm fdisk 8.Nd PC partition table maintenance program --- 265 unchanged lines hidden (view full) --- 274option is given, a disk's partition table can be written using values 275from a 276.Ar configfile . 277The syntax of this file is very simple. Each line is either a comment or 278a specification, and whitespace (except for newlines) are ignored: 279.Bl -tag -width Ds 280.It Xo 281.Ic # | 1.\" $FreeBSD$ 2.\" 3.Dd October 4, 1996 4.Dt FDISK 8 5.Os FreeBSD 6.Sh NAME 7.Nm fdisk 8.Nd PC partition table maintenance program --- 265 unchanged lines hidden (view full) --- 274option is given, a disk's partition table can be written using values 275from a 276.Ar configfile . 277The syntax of this file is very simple. Each line is either a comment or 278a specification, and whitespace (except for newlines) are ignored: 279.Bl -tag -width Ds 280.It Xo 281.Ic # |
282.No Ar comment ... | 282.Ar comment ... |
283.Xc 284Lines beginning with a "#" are comments and are ignored. 285.It Xo 286.Ic g | 283.Xc 284Lines beginning with a "#" are comments and are ignored. 285.It Xo 286.Ic g |
287.No Ar spec1 288.No Ar spec2 289.No Ar spec3 | 287.Ar spec1 288.Ar spec2 289.Ar spec3 |
290.Xc 291Set the BIOS geometry used in partition calculations. There must be 292three values specified, with a letter preceding each number: 293.Bl -tag -width Ds 294.Sm off | 290.Xc 291Set the BIOS geometry used in partition calculations. There must be 292three values specified, with a letter preceding each number: 293.Bl -tag -width Ds 294.Sm off |
295.It Cm c No Ar num | 295.It Cm c Ar num |
296.Sm on 297Set the number of cylinders to 298.Ar num . 299.Sm off | 296.Sm on 297Set the number of cylinders to 298.Ar num . 299.Sm off |
300.It Cm h No Ar num | 300.It Cm h Ar num |
301.Sm on 302Set the number of heads to 303.Ar num . 304.Sm off | 301.Sm on 302Set the number of heads to 303.Ar num . 304.Sm off |
305.It Cm s No Ar num | 305.It Cm s Ar num |
306.Sm on 307Set the number of sectors/track to 308.Ar num . 309.El 310.Pp 311These specs can occur in any order, as the leading letter determines 312which value is which; however, all three must be specified. 313.Pp --- 18 unchanged lines hidden (view full) --- 33239 heads, and 63 sectors: 333.Bd -literal -offset indent 334g c1019 h39 s63 335g h39 c1019 s63 336g s63 h39 c1019 337.Ed 338.It Xo 339.Ic p | 306.Sm on 307Set the number of sectors/track to 308.Ar num . 309.El 310.Pp 311These specs can occur in any order, as the leading letter determines 312which value is which; however, all three must be specified. 313.Pp --- 18 unchanged lines hidden (view full) --- 33239 heads, and 63 sectors: 333.Bd -literal -offset indent 334g c1019 h39 s63 335g h39 c1019 s63 336g s63 h39 c1019 337.Ed 338.It Xo 339.Ic p |
340.No Ar partition 341.No Ar type 342.No Ar start 343.No Ar length | 340.Ar partition 341.Ar type 342.Ar start 343.Ar length |
344.Xc 345Set the partition given by 346.Ar partition 347(1-4) to type 348.Ar type , 349starting at sector 350.Ar start 351for --- 39 unchanged lines hidden (view full) --- 391downwards to correspond to head and cylinder boundaries): 392.Pp 393.Bd -literal -offset indent 394p 1 165 1 2503871 395.Ed 396.Pp 397.It Xo 398.Ic a | 344.Xc 345Set the partition given by 346.Ar partition 347(1-4) to type 348.Ar type , 349starting at sector 350.Ar start 351for --- 39 unchanged lines hidden (view full) --- 391downwards to correspond to head and cylinder boundaries): 392.Pp 393.Bd -literal -offset indent 394p 1 165 1 2503871 395.Ed 396.Pp 397.It Xo 398.Ic a |
399.No Ar partition | 399.Ar partition |
400.Xc 401Make 402.Ar partition 403the active partition. Can occur anywhere in the config file, but only 404one must be present. 405.Pp 406Example: to make partition 1 the active partition: 407.Bd -literal -offset indent --- 27 unchanged lines hidden --- | 400.Xc 401Make 402.Ar partition 403the active partition. Can occur anywhere in the config file, but only 404one must be present. 405.Pp 406Example: to make partition 1 the active partition: 407.Bd -literal -offset indent --- 27 unchanged lines hidden --- |