diff options
Diffstat (limited to 'sbin/fdisk/fdisk.8')
-rw-r--r-- | sbin/fdisk/fdisk.8 | 51 |
1 files changed, 31 insertions, 20 deletions
diff --git a/sbin/fdisk/fdisk.8 b/sbin/fdisk/fdisk.8 index f55d100..2248b6a 100644 --- a/sbin/fdisk/fdisk.8 +++ b/sbin/fdisk/fdisk.8 @@ -5,7 +5,7 @@ .Nm fdisk .Nd DOS partition maintenance program .Sh SYNOPSIS -.Nm +.Nm fdisk .Op Fl i .Op Fl u .Op Fl a @@ -30,20 +30,21 @@ The BIOS brings in sector 0 and verifies the magic number. It then searches the 4 BIOS partitions described by sector 0 to determine which of them is -.Em active. +.Em active . This boot then brings in the secondary boot block from the .Em active partition and runs it. Under DOS, you could have one or more partitions with one -.Em active. +.Em active . The DOS .Nm program can be used to divide space on the disk into partitions and set one -.Em active. +.Em active . .Sh DESCRIPTION -.Pp -The FreeBSD program +The +.Bx Free +program .Nm serves a similar purpose to the DOS program. The first form is used to display partition information or to interactively edit the partition @@ -57,7 +58,7 @@ Is used for updating (editing) sector 0 of the disk. Ignored if .Fl f is given. .It Fl i -Initializes sector 0 of the disk. This implies +Initialize sector 0 of the disk. This implies .Fl u , unless .Fl f @@ -85,10 +86,10 @@ is read. The can be "-", in which case .Ar stdin is read. See -.Em CONFIGURATION FILE , +.Sx CONFIGURATION FILE , below, for file syntax. .Pp -.Em WARNING: +.Em WARNING Ns : when .Fl f is used, you are not asked if you really want to write the partition @@ -157,7 +158,9 @@ The second partition overlaps the end of the first. (Used for debugging purposes) .Bl -tag -width "cyl, sector and head" .It Em "sysid" -is used to label the partition. FreeBSD reserves the +is used to label the partition. +.Bx Free +reserves the magic number 165 decimal (A5 in hex). .It Em "start and size" fields provide the start address @@ -184,7 +187,7 @@ option is not used, the .Nm program will enter a conversational mode. This mode is designed not to change any data unless you explicitly tell it to. -.Nm +.Nm Fdisk selects defaults for its questions to guarantee the above behavior. .Pp It displays each partition @@ -195,7 +198,7 @@ and asking for a new one. When you are done with a partition, .Nm will display it and ask if it is correct. -.Nm +.Nm Fdisk will then proceed to the next entry. .Pp Getting the @@ -228,10 +231,10 @@ flag just edits the fields as they appear on the disk. While the .Fl i flag is used to "initialize" sector 0; -it will setup the last BIOS partition to use the whole disk for FreeBSD; +it will setup the last BIOS partition to use the whole disk for +.Bx Free ; and make it active. .Sh NOTES -.Pp The automatic calculation of starting cylinder etc. uses a set of figures that represent what the BIOS thinks is the geometry of the drive. @@ -241,7 +244,9 @@ This allows the user to create a bootblock that can work with drives that use geometry translation under the BIOS. .Pp If you hand craft your disk layout, -please make sure that the FreeBSD partition starts on a cylinder boundary. +please make sure that the +.Bx Free +partition starts on a cylinder boundary. A number of decisions made later may assume this. (This might not be necessary later.) .Pp @@ -253,7 +258,6 @@ works. This is completely safe as long as you answer the last question in the negative. There are subtleties that the program detects that are not fully explained in this manual page. .Sh CONFIGURATION FILE -.Pp When the .Fl f option is given, a disk's partition table can be written using values @@ -309,7 +313,8 @@ It is an error if the following is not true: .Pp The number of cylinders should be less than or equal to 1024, but this is not enforced, although a warning will be output. Note that bootable -FreeBSD partitions (the "/" filesystem) must lie completely within the +.Bx Free +partitions (the "/" filesystem) must lie completely within the first 1024 cylinders; if this is not true, booting may fail. Non-bootable partitions do not have this restriction. .Pp @@ -352,7 +357,9 @@ if one is present. .Pp The .Ar type -is 165 for FreeBSD partitions. Specifying a partition type of zero is +is 165 for +.Bx Free +partitions. Specifying a partition type of zero is the same as clearing the partition and marking it as unused; however, dummy values (such as "0") must still be specified for .Ar start @@ -369,7 +376,9 @@ Example: to clear partition 4 and mark it as unused: p 4 0 0 0 .fi .Pp -Example: to set partition 1 to a FreeBSD partition, starting at sector 1 +Example: to set partition 1 to a +.Bx Free +partition, starting at sector 1 for 2503871 sectors (note: these numbers will be rounded upwards and downwards to correspond to head and cylinder boundaries): .Pp @@ -404,6 +413,8 @@ is used where it should actually be .Sq slice , in order to conform with the terms used elsewhere. .Pp -You cannot use this command to completely dedicate a disk to FreeBSD. The +You cannot use this command to completely dedicate a disk to +.Bx Free . +The .Xr disklabel 8 command must be used for this. |