Changeset View
Changeset View
Standalone View
Standalone View
head/sbin/bsdlabel/bsdlabel.8
Show First 20 Lines • Show All 439 Lines • ▼ Show 20 Lines | |||||
The | The | ||||
.Xr dd 1 | .Xr dd 1 | ||||
commands are optional, but may be necessary for some | commands are optional, but may be necessary for some | ||||
.Tn BIOS Ns es | .Tn BIOS Ns es | ||||
to properly | to properly | ||||
recognize the disk: | recognize the disk: | ||||
.Bd -literal -offset indent | .Bd -literal -offset indent | ||||
dd if=/dev/zero of=/dev/da0 bs=512 count=32 | dd if=/dev/zero of=/dev/da0 bs=512 count=32 | ||||
fdisk -BI da0 | gpart create -s MBR da0 | ||||
gpart add -t freebsd da0 | |||||
gpart set -a active -i 1 da0 | |||||
gpart bootcode -b /boot/mbr da0 | |||||
dd if=/dev/zero of=/dev/da0s1 bs=512 count=32 | dd if=/dev/zero of=/dev/da0s1 bs=512 count=32 | ||||
bsdlabel -w -B da0s1 | bsdlabel -w -B da0s1 | ||||
bsdlabel -e da0s1 | bsdlabel -e da0s1 | ||||
.Ed | .Ed | ||||
.Pp | .Pp | ||||
This is an example disk label that uses some of the new partition size types | This is an example disk label that uses some of the new partition size types | ||||
such as | such as | ||||
.Cm % , M , G , | .Cm % , M , G , | ||||
Show All 33 Lines | |||||
labels and | labels and | ||||
are not generally compatible. | are not generally compatible. | ||||
.Sh SEE ALSO | .Sh SEE ALSO | ||||
.Xr ccd 4 , | .Xr ccd 4 , | ||||
.Xr geom 4 , | .Xr geom 4 , | ||||
.Xr md 4 , | .Xr md 4 , | ||||
.Xr disktab 5 , | .Xr disktab 5 , | ||||
.Xr boot0cfg 8 , | .Xr boot0cfg 8 , | ||||
.Xr fdisk 8 , | |||||
.Xr gpart 8 , | .Xr gpart 8 , | ||||
.Xr newfs 8 | .Xr newfs 8 |