diff options
author | trasz <trasz@FreeBSD.org> | 2016-01-11 20:10:14 +0000 |
---|---|---|
committer | trasz <trasz@FreeBSD.org> | 2016-01-11 20:10:14 +0000 |
commit | 8a895b1fb59b27dada94e93a01fc4613e07517d3 (patch) | |
tree | 231b81a1833795b57589fbf89aea0d752382aa05 /sbin/bsdlabel | |
parent | 3426ec6df300daea902b133c4a6e71261113ee77 (diff) | |
download | FreeBSD-src-8a895b1fb59b27dada94e93a01fc4613e07517d3.zip FreeBSD-src-8a895b1fb59b27dada94e93a01fc4613e07517d3.tar.gz |
MFC r287396:
It's 2015, and some people are still trying to use fdisk and then
go asking what debug flags to set for GEOM to make it work. Advice
them to use gpart(8) instead.
Something similar should probably done with disklabel,
but I need to rewrite the disklabel examples first.
Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'sbin/bsdlabel')
-rw-r--r-- | sbin/bsdlabel/bsdlabel.8 | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sbin/bsdlabel/bsdlabel.8 b/sbin/bsdlabel/bsdlabel.8 index d31187b..8137171 100644 --- a/sbin/bsdlabel/bsdlabel.8 +++ b/sbin/bsdlabel/bsdlabel.8 @@ -445,7 +445,10 @@ to properly recognize the disk: .Bd -literal -offset indent 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 bsdlabel -w -B da0s1 bsdlabel -e da0s1 @@ -495,6 +498,5 @@ are not generally compatible. .Xr md 4 , .Xr disktab 5 , .Xr boot0cfg 8 , -.Xr fdisk 8 , .Xr gpart 8 , .Xr newfs 8 |