path: root/sbin/bsdlabel/bsdlabel.8
diff options
authorEdward Tomasz Napierala <trasz@FreeBSD.org>2015-09-02 14:08:43 +0000
committerEdward Tomasz Napierala <trasz@FreeBSD.org>2015-09-02 14:08:43 +0000
commitb8c19fd719945f5b9ff51320f8dbe46dd23510c1 (patch)
treed830a30e2eb7a80e7395ba38191a5fef865fabef /sbin/bsdlabel/bsdlabel.8
parent089d32934ad974de5936051de316495514dd9ce8 (diff)
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. Reviewed by: wblock@ MFC after: 1 month Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D3315
Notes: svn path=/head/; revision=287396
Diffstat (limited to 'sbin/bsdlabel/bsdlabel.8')
1 files changed, 4 insertions, 2 deletions
diff --git a/sbin/bsdlabel/bsdlabel.8 b/sbin/bsdlabel/bsdlabel.8
index 54e2af2e5340..7a4852e7a2fc 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