Deleted Added
full compact
fdisk.8 (68575) fdisk.8 (68716)
1.\" $FreeBSD: head/sbin/fdisk_pc98/fdisk.8 68575 2000-11-10 17:46:15Z ru $
1.\" $FreeBSD: head/sbin/fdisk_pc98/fdisk.8 68716 2000-11-14 11:20:58Z ru $
2.\"
3.Dd October 4, 1996
4.Dt FDISK 8
5.\".Os BSD 4
6.Sh NAME
7.Nm fdisk
8.Nd PC partition table maintenance program
9.Sh SYNOPSIS

--- 26 unchanged lines hidden (view full) ---

36you can have one or more partitions with one
37.Em active .
38The DOS
39.Nm
40program can be used to divide space on the disk into partitions and set one
41.Em active .
42.Sh DESCRIPTION
43The
2.\"
3.Dd October 4, 1996
4.Dt FDISK 8
5.\".Os BSD 4
6.Sh NAME
7.Nm fdisk
8.Nd PC partition table maintenance program
9.Sh SYNOPSIS

--- 26 unchanged lines hidden (view full) ---

36you can have one or more partitions with one
37.Em active .
38The DOS
39.Nm
40program can be used to divide space on the disk into partitions and set one
41.Em active .
42.Sh DESCRIPTION
43The
44.Bx Free
44.Fx
45program
46.Nm
47serves a similar purpose to the DOS program. The first form is used to
48display partition information or to interactively edit the partition
49table. The second is used to write a partition table using a
50.Ar configfile
51and is designed to be used by other scripts/programs.
52.Pp

--- 139 unchanged lines hidden (view full) ---

192.Ed
193.Pp
194The disk is divided into three partitions that happen to fill the disk.
195The second partition overlaps the end of the first.
196(Used for debugging purposes)
197.Bl -tag -width "cyl, sector and head"
198.It Em "sysmid"
199is used to label the partition.
45program
46.Nm
47serves a similar purpose to the DOS program. The first form is used to
48display partition information or to interactively edit the partition
49table. The second is used to write a partition table using a
50.Ar configfile
51and is designed to be used by other scripts/programs.
52.Pp

--- 139 unchanged lines hidden (view full) ---

192.Ed
193.Pp
194The disk is divided into three partitions that happen to fill the disk.
195The second partition overlaps the end of the first.
196(Used for debugging purposes)
197.Bl -tag -width "cyl, sector and head"
198.It Em "sysmid"
199is used to label the partition.
200.Bx Free
200.Fx
201reserves the
202magic number 148 decimal (94 in hex).
203.It Em "start and size"
204fields provide the start address
205and size of a partition in sectors.
206.\" !PC98 .It Em "flag 80"
207.\" specifies that this is the active partition.
208.It Em "cyl, sector and head"

--- 58 unchanged lines hidden (view full) ---

267flag is that
268the
269.Fl u
270flag just edits the fields as they appear on the disk.
271While the
272.Fl i
273flag is used to "initialize" sector 0;
274it will setup the last BIOS partition to use the whole disk for
201reserves the
202magic number 148 decimal (94 in hex).
203.It Em "start and size"
204fields provide the start address
205and size of a partition in sectors.
206.\" !PC98 .It Em "flag 80"
207.\" specifies that this is the active partition.
208.It Em "cyl, sector and head"

--- 58 unchanged lines hidden (view full) ---

267flag is that
268the
269.Fl u
270flag just edits the fields as they appear on the disk.
271While the
272.Fl i
273flag is used to "initialize" sector 0;
274it will setup the last BIOS partition to use the whole disk for
275.Bx Free ;
275.Fx ;
276and make it active.
277.Sh NOTES
278The automatic calculation of starting cylinder etc. uses
279a set of figures that represent what the BIOS thinks is the
280geometry of the drive.
281These figures are by default taken from the incore disklabel,
282but the program initially gives you an opportunity to change them.
283This allows the user to create a bootblock that can work with drives
284that use geometry translation under the BIOS.
285.Pp
286If you hand craft your disk layout,
287please make sure that the
276and make it active.
277.Sh NOTES
278The automatic calculation of starting cylinder etc. uses
279a set of figures that represent what the BIOS thinks is the
280geometry of the drive.
281These figures are by default taken from the incore disklabel,
282but the program initially gives you an opportunity to change them.
283This allows the user to create a bootblock that can work with drives
284that use geometry translation under the BIOS.
285.Pp
286If you hand craft your disk layout,
287please make sure that the
288.Bx Free
288.Fx
289partition starts on a cylinder boundary.
290A number of decisions made later may assume this.
291(This might not be necessary later.)
292.Pp
293Editing an existing partition will most likely cause you to
294lose all the data in that partition.
295.Pp
296You should run this program interactively once or twice to see how it

--- 50 unchanged lines hidden (view full) ---

347.Bd -literal -offset indent
3481 <= number of cylinders
3491 <= number of heads <= 256
3501 <= number of sectors/track < 64
351.Ed
352.Pp
353The number of cylinders should be less than or equal to 1024, but this
354is not enforced, although a warning will be output. Note that bootable
289partition starts on a cylinder boundary.
290A number of decisions made later may assume this.
291(This might not be necessary later.)
292.Pp
293Editing an existing partition will most likely cause you to
294lose all the data in that partition.
295.Pp
296You should run this program interactively once or twice to see how it

--- 50 unchanged lines hidden (view full) ---

347.Bd -literal -offset indent
3481 <= number of cylinders
3491 <= number of heads <= 256
3501 <= number of sectors/track < 64
351.Ed
352.Pp
353The number of cylinders should be less than or equal to 1024, but this
354is not enforced, although a warning will be output. Note that bootable
355.Bx Free
355.Fx
356partitions (the "/" filesystem) must lie completely within the
357first 1024 cylinders; if this is not true, booting may fail.
358Non-bootable partitions do not have this restriction.
359.Pp
360Example (all of these are equivalent), for a disk with 1019 cylinders,
36139 heads, and 63 sectors:
362.Bd -literal -offset indent
363g c1019 h39 s63

--- 27 unchanged lines hidden (view full) ---

391set, multiple "p" lines must be specified; one for each partition.
392.Pp
393These partition lines must occur after any geometry specification lines,
394if one is present.
395.Pp
396The
397.Ar type
398is 165 for
356partitions (the "/" filesystem) must lie completely within the
357first 1024 cylinders; if this is not true, booting may fail.
358Non-bootable partitions do not have this restriction.
359.Pp
360Example (all of these are equivalent), for a disk with 1019 cylinders,
36139 heads, and 63 sectors:
362.Bd -literal -offset indent
363g c1019 h39 s63

--- 27 unchanged lines hidden (view full) ---

391set, multiple "p" lines must be specified; one for each partition.
392.Pp
393These partition lines must occur after any geometry specification lines,
394if one is present.
395.Pp
396The
397.Ar type
398is 165 for
399.Bx Free
399.Fx
400partitions. Specifying a partition type of zero is
401the same as clearing the partition and marking it as unused; however,
402dummy values (such as "0") must still be specified for
403.Ar start
404and
405.Ar length .
406.Pp
407Note: the start offset will be rounded upwards to a head boundary if
408necessary, and the end offset will be rounded downwards to a cylinder
409boundary if necessary.
410.Pp
411Example: to clear partition 4 and mark it as unused:
412.Bd -literal -offset indent
413p 4 0 0 0
414.Ed
415.Pp
416Example: to set partition 1 to a
400partitions. Specifying a partition type of zero is
401the same as clearing the partition and marking it as unused; however,
402dummy values (such as "0") must still be specified for
403.Ar start
404and
405.Ar length .
406.Pp
407Note: the start offset will be rounded upwards to a head boundary if
408necessary, and the end offset will be rounded downwards to a cylinder
409boundary if necessary.
410.Pp
411Example: to clear partition 4 and mark it as unused:
412.Bd -literal -offset indent
413p 4 0 0 0
414.Ed
415.Pp
416Example: to set partition 1 to a
417.Bx Free
417.Fx
418partition, starting at sector 1
419for 2503871 sectors (note: these numbers will be rounded upwards and
420downwards to correspond to head and cylinder boundaries):
421.Bd -literal -offset indent
422p 1 165 1 2503871
423.Ed
424.It Xo
425.Ic a

--- 24 unchanged lines hidden (view full) ---

450.Pp
451Throughout this man page, the term
452.Sq partition
453is used where it should actually be
454.Sq slice ,
455in order to conform with the terms used elsewhere.
456.Pp
457You cannot use this command to completely dedicate a disk to
418partition, starting at sector 1
419for 2503871 sectors (note: these numbers will be rounded upwards and
420downwards to correspond to head and cylinder boundaries):
421.Bd -literal -offset indent
422p 1 165 1 2503871
423.Ed
424.It Xo
425.Ic a

--- 24 unchanged lines hidden (view full) ---

450.Pp
451Throughout this man page, the term
452.Sq partition
453is used where it should actually be
454.Sq slice ,
455in order to conform with the terms used elsewhere.
456.Pp
457You cannot use this command to completely dedicate a disk to
458.Bx Free .
458.Fx .
459The
460.Xr disklabel 8
461command must be used for this.
459The
460.Xr disklabel 8
461command must be used for this.