diff options
Diffstat (limited to 'sbin/fdisk/fdisk.8')
-rw-r--r-- | sbin/fdisk/fdisk.8 | 45 |
1 files changed, 36 insertions, 9 deletions
diff --git a/sbin/fdisk/fdisk.8 b/sbin/fdisk/fdisk.8 index 5eb2dea..1d0d8eb 100644 --- a/sbin/fdisk/fdisk.8 +++ b/sbin/fdisk/fdisk.8 @@ -8,13 +8,34 @@ .Nm .Op Fl i .Op Fl u +.Op Fl a +.Op Fl 0123 .Op disk .Bl -tag -width time -.It Fl i -Initializes sector 0 of the disk. .It Fl u Is used for updating (editing) sector 0 of the disk. +.It Fl i +Initializes sector 0 of the disk. This implies +.Fl u . +.It Fl a +Change the active partition only. +.It Fl 0123 +Operate on a single fdisk entry only. .El +.Pp +The final disk name can be provided as a +.Sq bare +disk name only, e.g. +.Ql sd0 , +or as a fully qualified device node under +.Pa /dev . +If omitted, the disks +.Ql wd0 , +.Ql sd0 , +and +.Ql od0 +are being searched in that order, until one is +being found responding. .Sh PROLOGUE In order for the BIOS to boot the kernel, certain conventions must be adhered to. @@ -39,14 +60,14 @@ The DOS program can be used to divide space on the disk into partitions and set one .Em active. .Sh DESCRIPTION -The 386bsd program +The FreeBSD program .Nm serves a similar purpose to the DOS program. When called with no arguments, it prints the sector 0 partition table. An example follows: .Bd -literal - ******* Working on device /dev/rwd0d ******* + ******* Working on device /dev/rwd0 ******* parameters extracted from in-core disklabel are: cylinders=769 heads=15 sectors/track=33 (495 blks/cyl) @@ -56,7 +77,7 @@ An example follows: Warning: BIOS sector numbering starts with sector 1 Information from DOS bootblock is: The data for partition 0 is: - sysid 165,(386BSD) + sysid 165,(FreeBSD/NetBSD/386BSD) start 495, size 380160 (185 Meg), flag 0 beg: cyl 1/ sector 1/ head 0; end: cyl 768/ sector 33/ head 14 @@ -79,7 +100,7 @@ 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. 386bsd reserves the +is used to label the partition. FreeBSD reserves the magic number 165 decimal (A5 in hex). .It Em "start and size" fields provide the start address @@ -147,7 +168,7 @@ 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 386bsd; +it will setup the last BIOS partition to use the whole disk for FreeBSD; and make it active. .Sh NOTES .Pp @@ -160,7 +181,7 @@ 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 386bsd partition starts on a cylinder boundary. +please make sure that the FreeBSD partition starts on a cylinder boundary. A number of decisions made later may assume this. (This might not be necessary later.) .Pp @@ -175,4 +196,10 @@ that are not fully explained in this manual page. .Sh SEE ALSO .Xr disklabel 8 .Sh BUGS -One less now, but probably more +The entire program should be made more user-friendly. +.Pp +Throughout this man page, the term +.Sq partition +is used where it should actually be +.Sq slice , +in order to conform with the terms used elsewhere. |