disklabel(8) manual page:
--change "-s newboot" to "-s newboot2" in an example --Fixed spelling --Fixed some confusion between slice/parition/primary partition and other things. PR: 35947 and 35951 Noticed by: Gary W. Swearingen <swear@blarg.net> Reviewed by: keramida Thanks to: grog MFC after: 2 days
This commit is contained in:
parent
c9a979c8a8
commit
2c80d96e99
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=94803
@ -104,7 +104,7 @@ addition,
|
|||||||
can install bootstrap code.
|
can install bootstrap code.
|
||||||
.Ss Raw or in-core label
|
.Ss Raw or in-core label
|
||||||
.Pp
|
.Pp
|
||||||
The disk label is resident close to or at the beginning of each disk partition.
|
The disk label resides close to or at the beginning of each disk slice.
|
||||||
For faster access, the kernel maintains a copy in core at all times. By
|
For faster access, the kernel maintains a copy in core at all times. By
|
||||||
default, most
|
default, most
|
||||||
.Nm
|
.Nm
|
||||||
@ -123,7 +123,7 @@ All
|
|||||||
forms require a disk device name, which should always be the raw
|
forms require a disk device name, which should always be the raw
|
||||||
device name representing the disk or slice. For example
|
device name representing the disk or slice. For example
|
||||||
.Pa da0
|
.Pa da0
|
||||||
represents the entire disk irregardless of any DOS partitioning,
|
represents the entire disk regardless of any DOS partitioning,
|
||||||
and
|
and
|
||||||
.Pa da0s1
|
.Pa da0s1
|
||||||
represents a slice. Some devices, most notably
|
represents a slice. Some devices, most notably
|
||||||
@ -245,8 +245,9 @@ recognize a
|
|||||||
disklabel. Older systems may require what is known as a
|
disklabel. Older systems may require what is known as a
|
||||||
.Dq dangerously dedicated
|
.Dq dangerously dedicated
|
||||||
disklabel, which creates a fake DOS partition to work around problems older
|
disklabel, which creates a fake DOS partition to work around problems older
|
||||||
BIOSes have with modern disk geometries. On newer systems you generally want
|
BIOSes have with modern disk geometries.
|
||||||
to create a normal DOS slice using
|
On newer systems you generally want
|
||||||
|
to create a normal DOS partition using
|
||||||
.Ar fdisk
|
.Ar fdisk
|
||||||
and then create a
|
and then create a
|
||||||
.Fx
|
.Fx
|
||||||
@ -329,13 +330,14 @@ The final three forms of
|
|||||||
.Nm
|
.Nm
|
||||||
are used to install bootstrap code. If you are creating a
|
are used to install bootstrap code. If you are creating a
|
||||||
.Dq dangerously-dedicated
|
.Dq dangerously-dedicated
|
||||||
partition for compatibility with older PC systems,
|
slice for compatibility with older PC systems,
|
||||||
you generally want to specify the raw disk name such as
|
you generally want to specify the raw disk name such as
|
||||||
.Pa da0 .
|
.Pa da0 .
|
||||||
If you are creating a label within an existing DOS slice, you should specify
|
If you are creating a label within an existing DOS slice,
|
||||||
the slice name such as
|
you should specify
|
||||||
.Pa da0s1 .
|
the partition name such as
|
||||||
Making a partition bootable can be tricky. If you are using a normal DOS
|
.Pa da0s1a .
|
||||||
|
Making a slice bootable can be tricky. If you are using a normal DOS
|
||||||
slice you typically install (or leave) a standard MBR on the base disk and
|
slice you typically install (or leave) a standard MBR on the base disk and
|
||||||
then install the
|
then install the
|
||||||
.Fx
|
.Fx
|
||||||
@ -454,26 +456,22 @@ slices.
|
|||||||
.Bl -enum
|
.Bl -enum
|
||||||
.It
|
.It
|
||||||
Use
|
Use
|
||||||
.Ar fdisk
|
.Xr fdisk 8
|
||||||
to initialize the DOS partition table, creating a real whole-disk slice to
|
to initialize the hard disk, and create a slice table, referred to
|
||||||
hold the
|
as the partition table in DOS.
|
||||||
.Fx
|
Here you will define disk slices for your system.
|
||||||
disklabel, and installing a master boot record.
|
|
||||||
.It
|
.It
|
||||||
Use
|
Use
|
||||||
.Ar disklabel
|
.Xr disklabel 8
|
||||||
to initialize a virgin
|
to define and write partitions and mount points.
|
||||||
.Fx
|
You are not required to define the mount points here though,
|
||||||
disklabel and install
|
they can be defined later using
|
||||||
.Fx
|
.Xr mount 8 .
|
||||||
boot blocks.
|
|
||||||
.It
|
.It
|
||||||
Use
|
Finally use
|
||||||
.Ar disklabel
|
.Xr newfs 8
|
||||||
to edit your newly created label, adding appropriate partitions.
|
to create a filesystem on the new partition.
|
||||||
.It
|
A typical partitioning scheme would be to have an
|
||||||
Finally newfs the filesystem partitions you created in the label. A typical
|
|
||||||
disklabel partitioning scheme would be to have an
|
|
||||||
.Dq a
|
.Dq a
|
||||||
partition
|
partition
|
||||||
of approximately 128MB to hold the root filesystem, a
|
of approximately 128MB to hold the root filesystem, a
|
||||||
@ -762,7 +760,7 @@ and possibly
|
|||||||
.Pa /boot/boot2 .
|
.Pa /boot/boot2 .
|
||||||
On-disk and in-core labels are unchanged.
|
On-disk and in-core labels are unchanged.
|
||||||
.Pp
|
.Pp
|
||||||
.Dl disklabel -w -B /dev/da0s1 -b newboot1 -s newboot da2212
|
.Dl disklabel -w -B /dev/da0s1 -b newboot1 -s newboot2 da2212
|
||||||
.Pp
|
.Pp
|
||||||
Install a new label and bootstrap.
|
Install a new label and bootstrap.
|
||||||
The label is derived from disktab information for
|
The label is derived from disktab information for
|
||||||
|
@ -104,7 +104,7 @@ addition,
|
|||||||
can install bootstrap code.
|
can install bootstrap code.
|
||||||
.Ss Raw or in-core label
|
.Ss Raw or in-core label
|
||||||
.Pp
|
.Pp
|
||||||
The disk label is resident close to or at the beginning of each disk partition.
|
The disk label resides close to or at the beginning of each disk slice.
|
||||||
For faster access, the kernel maintains a copy in core at all times. By
|
For faster access, the kernel maintains a copy in core at all times. By
|
||||||
default, most
|
default, most
|
||||||
.Nm
|
.Nm
|
||||||
@ -123,7 +123,7 @@ All
|
|||||||
forms require a disk device name, which should always be the raw
|
forms require a disk device name, which should always be the raw
|
||||||
device name representing the disk or slice. For example
|
device name representing the disk or slice. For example
|
||||||
.Pa da0
|
.Pa da0
|
||||||
represents the entire disk irregardless of any DOS partitioning,
|
represents the entire disk regardless of any DOS partitioning,
|
||||||
and
|
and
|
||||||
.Pa da0s1
|
.Pa da0s1
|
||||||
represents a slice. Some devices, most notably
|
represents a slice. Some devices, most notably
|
||||||
@ -245,8 +245,9 @@ recognize a
|
|||||||
disklabel. Older systems may require what is known as a
|
disklabel. Older systems may require what is known as a
|
||||||
.Dq dangerously dedicated
|
.Dq dangerously dedicated
|
||||||
disklabel, which creates a fake DOS partition to work around problems older
|
disklabel, which creates a fake DOS partition to work around problems older
|
||||||
BIOSes have with modern disk geometries. On newer systems you generally want
|
BIOSes have with modern disk geometries.
|
||||||
to create a normal DOS slice using
|
On newer systems you generally want
|
||||||
|
to create a normal DOS partition using
|
||||||
.Ar fdisk
|
.Ar fdisk
|
||||||
and then create a
|
and then create a
|
||||||
.Fx
|
.Fx
|
||||||
@ -329,13 +330,14 @@ The final three forms of
|
|||||||
.Nm
|
.Nm
|
||||||
are used to install bootstrap code. If you are creating a
|
are used to install bootstrap code. If you are creating a
|
||||||
.Dq dangerously-dedicated
|
.Dq dangerously-dedicated
|
||||||
partition for compatibility with older PC systems,
|
slice for compatibility with older PC systems,
|
||||||
you generally want to specify the raw disk name such as
|
you generally want to specify the raw disk name such as
|
||||||
.Pa da0 .
|
.Pa da0 .
|
||||||
If you are creating a label within an existing DOS slice, you should specify
|
If you are creating a label within an existing DOS slice,
|
||||||
the slice name such as
|
you should specify
|
||||||
.Pa da0s1 .
|
the partition name such as
|
||||||
Making a partition bootable can be tricky. If you are using a normal DOS
|
.Pa da0s1a .
|
||||||
|
Making a slice bootable can be tricky. If you are using a normal DOS
|
||||||
slice you typically install (or leave) a standard MBR on the base disk and
|
slice you typically install (or leave) a standard MBR on the base disk and
|
||||||
then install the
|
then install the
|
||||||
.Fx
|
.Fx
|
||||||
@ -454,26 +456,22 @@ slices.
|
|||||||
.Bl -enum
|
.Bl -enum
|
||||||
.It
|
.It
|
||||||
Use
|
Use
|
||||||
.Ar fdisk
|
.Xr fdisk 8
|
||||||
to initialize the DOS partition table, creating a real whole-disk slice to
|
to initialize the hard disk, and create a slice table, referred to
|
||||||
hold the
|
as the partition table in DOS.
|
||||||
.Fx
|
Here you will define disk slices for your system.
|
||||||
disklabel, and installing a master boot record.
|
|
||||||
.It
|
.It
|
||||||
Use
|
Use
|
||||||
.Ar disklabel
|
.Xr disklabel 8
|
||||||
to initialize a virgin
|
to define and write partitions and mount points.
|
||||||
.Fx
|
You are not required to define the mount points here though,
|
||||||
disklabel and install
|
they can be defined later using
|
||||||
.Fx
|
.Xr mount 8 .
|
||||||
boot blocks.
|
|
||||||
.It
|
.It
|
||||||
Use
|
Finally use
|
||||||
.Ar disklabel
|
.Xr newfs 8
|
||||||
to edit your newly created label, adding appropriate partitions.
|
to create a filesystem on the new partition.
|
||||||
.It
|
A typical partitioning scheme would be to have an
|
||||||
Finally newfs the filesystem partitions you created in the label. A typical
|
|
||||||
disklabel partitioning scheme would be to have an
|
|
||||||
.Dq a
|
.Dq a
|
||||||
partition
|
partition
|
||||||
of approximately 128MB to hold the root filesystem, a
|
of approximately 128MB to hold the root filesystem, a
|
||||||
@ -762,7 +760,7 @@ and possibly
|
|||||||
.Pa /boot/boot2 .
|
.Pa /boot/boot2 .
|
||||||
On-disk and in-core labels are unchanged.
|
On-disk and in-core labels are unchanged.
|
||||||
.Pp
|
.Pp
|
||||||
.Dl disklabel -w -B /dev/da0s1 -b newboot1 -s newboot da2212
|
.Dl disklabel -w -B /dev/da0s1 -b newboot1 -s newboot2 da2212
|
||||||
.Pp
|
.Pp
|
||||||
Install a new label and bootstrap.
|
Install a new label and bootstrap.
|
||||||
The label is derived from disktab information for
|
The label is derived from disktab information for
|
||||||
|
Loading…
Reference in New Issue
Block a user