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
This commit is contained in:
Edward Tomasz Napierala 2015-09-02 14:08:43 +00:00
parent 089d32934a
commit b8c19fd719
15 changed files with 25 additions and 24 deletions

View file

@ -445,7 +445,10 @@ 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
@ -495,6 +498,5 @@ are not generally compatible.
.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

View file

@ -100,8 +100,8 @@ flag is needed if the filesystem uses
.Sh SEE ALSO .Sh SEE ALSO
.Xr disktab 5 , .Xr disktab 5 ,
.Xr fs 5 , .Xr fs 5 ,
.Xr disklabel 8 ,
.Xr fsck 8 , .Xr fsck 8 ,
.Xr gpart 8 ,
.Xr newfs 8 , .Xr newfs 8 ,
.Xr tunefs 8 .Xr tunefs 8
.Sh HISTORY .Sh HISTORY

View file

@ -39,6 +39,13 @@ The
utility can be used to divide space on the disk into slices and set one utility can be used to divide space on the disk into slices and set one
active. active.
.Sh DESCRIPTION .Sh DESCRIPTION
.Bf -symbolic
This command is obsolete.
Users are advised to use
.Xr gpart 8
instead.
.Ef
.Pp
The The
.Fx .Fx
utility, utility,

View file

@ -121,9 +121,9 @@ to
.Pa /var/tmp/ffsinfo .Pa /var/tmp/ffsinfo
with all available information. with all available information.
.Sh SEE ALSO .Sh SEE ALSO
.Xr disklabel 8 ,
.Xr dumpfs 8 , .Xr dumpfs 8 ,
.Xr fsck 8 , .Xr fsck 8 ,
.Xr gpart 8 ,
.Xr growfs 8 , .Xr growfs 8 ,
.Xr gvinum 8 , .Xr gvinum 8 ,
.Xr newfs 8 , .Xr newfs 8 ,

View file

@ -300,8 +300,7 @@ mount /dev/md1.nop /mnt
.Sh SEE ALSO .Sh SEE ALSO
.Xr md 4 , .Xr md 4 ,
.Xr ffs 7 , .Xr ffs 7 ,
.Xr bsdlabel 8 , .Xr gpart 8 ,
.Xr fdisk 8 ,
.Xr mdmfs 8 , .Xr mdmfs 8 ,
.Xr malloc 9 .Xr malloc 9
.Sh HISTORY .Sh HISTORY

View file

@ -303,11 +303,11 @@ on file systems that contain many small files.
.Xr geom 4 , .Xr geom 4 ,
.Xr disktab 5 , .Xr disktab 5 ,
.Xr fs 5 , .Xr fs 5 ,
.Xr bsdlabel 8 ,
.Xr camcontrol 8 , .Xr camcontrol 8 ,
.Xr dump 8 , .Xr dump 8 ,
.Xr dumpfs 8 , .Xr dumpfs 8 ,
.Xr fsck 8 , .Xr fsck 8 ,
.Xr gpart 8 ,
.Xr gjournal 8 , .Xr gjournal 8 ,
.Xr growfs 8 , .Xr growfs 8 ,
.Xr gvinum 8 , .Xr gvinum 8 ,

View file

@ -228,9 +228,7 @@ Create a 30MB image file, with the FAT partition starting
newfs_msdos -C 30M -@63s ./somefile newfs_msdos -C 30M -@63s ./somefile
.Ed .Ed
.Sh SEE ALSO .Sh SEE ALSO
.Xr disktab 5 , .Xr gpart 8 ,
.Xr disklabel 8 ,
.Xr fdisk 8 ,
.Xr newfs 8 .Xr newfs 8
.Sh HISTORY .Sh HISTORY
The The

View file

@ -63,9 +63,7 @@ Create a file system, using default parameters, on
newfs_nandfs /dev/ada0s1 newfs_nandfs /dev/ada0s1
.Ed .Ed
.Sh SEE ALSO .Sh SEE ALSO
.Xr disktab 5 , .Xr gpart 8 ,
.Xr disklabel 8 ,
.Xr fdisk 8 ,
.Xr newfs 8 .Xr newfs 8
.Sh HISTORY .Sh HISTORY
The The

View file

@ -352,9 +352,9 @@ requirement has not been adhered to.
.Xr make.conf 5 , .Xr make.conf 5 ,
.Xr ttys 5 , .Xr ttys 5 ,
.Xr boot0cfg 8 , .Xr boot0cfg 8 ,
.Xr bsdlabel 8 ,
.Xr btxld 8 , .Xr btxld 8 ,
.Xr config 8 , .Xr config 8 ,
.Xr gpart 8 ,
.Xr gptboot 8 , .Xr gptboot 8 ,
.Xr halt 8 , .Xr halt 8 ,
.Xr loader 8 , .Xr loader 8 ,

View file

@ -205,8 +205,7 @@ None.
.Xr ada 4 , .Xr ada 4 ,
.Xr cam 4 , .Xr cam 4 ,
.Xr geom 4 , .Xr geom 4 ,
.Xr bsdlabel 8 , .Xr gpart 8
.Xr fdisk 8
.Sh HISTORY .Sh HISTORY
The The
.Nm .Nm

View file

@ -81,8 +81,7 @@ disk found in the
man page. man page.
Other tools will also create these images, such as NanoBSD. Other tools will also create these images, such as NanoBSD.
.Sh SEE ALSO .Sh SEE ALSO
.Xr disklabel 8 , .Xr gpart 8 ,
.Xr fdisk 8 ,
.Xr loader 8 , .Xr loader 8 ,
.Xr mdconfig 8 , .Xr mdconfig 8 ,
.Xr mdmfs 8 , .Xr mdmfs 8 ,

View file

@ -64,7 +64,7 @@ When mounting a DOS file system or
formatting a formatting a
.Fx .Fx
file system, check the slice of the disk with the file system, check the slice of the disk with the
.Xr fdisk 8 .Xr gpart 8
utility. utility.
.Pp .Pp
In order to unixify a ZIP disk, put the following in /etc/disktab: In order to unixify a ZIP disk, put the following in /etc/disktab:

View file

@ -753,10 +753,10 @@ over services you export from your box (web services, email).
.Xr ports 7 , .Xr ports 7 ,
.Xr boot 8 , .Xr boot 8 ,
.Xr bsdinstall 8 , .Xr bsdinstall 8 ,
.Xr bsdlabel 8 ,
.Xr ccdconfig 8 , .Xr ccdconfig 8 ,
.Xr config 8 , .Xr config 8 ,
.Xr fsck 8 , .Xr fsck 8 ,
.Xr gpart 8 ,
.Xr gjournal 8 , .Xr gjournal 8 ,
.Xr gstripe 8 , .Xr gstripe 8 ,
.Xr gvinum 8 , .Xr gvinum 8 ,

View file

@ -425,7 +425,7 @@ third form, replacing
.Ar NN .Ar NN
with the actual start of the partition with the actual start of the partition
(which you can determine using (which you can determine using
.Xr fdisk 8 ) . .Xr gpart 8 ) .
Note that after saving the image to the slice, it will not yet be Note that after saving the image to the slice, it will not yet be
recognised. recognised.
You have to use the You have to use the

View file

@ -180,14 +180,13 @@ To enable just slices 1 and 3 in the menu:
.Dl "boot0cfg -m 0x5 ada0" .Dl "boot0cfg -m 0x5 ada0"
.Pp .Pp
To go back to non-interactive booting, use To go back to non-interactive booting, use
.Xr fdisk 8 .Xr gpart 8
to install the default MBR: to install the default MBR:
.Pp .Pp
.Dl "fdisk -B ada0" .Dl "gpart bootcode -b /boot/mbr ada0"
.Sh SEE ALSO .Sh SEE ALSO
.Xr geom 4 , .Xr geom 4 ,
.Xr boot 8 , .Xr boot 8 ,
.Xr fdisk 8 ,
.Xr gpart 8 .Xr gpart 8
.Sh AUTHORS .Sh AUTHORS
.An Robert Nordier Aq Mt rnordier@FreeBSD.org .An Robert Nordier Aq Mt rnordier@FreeBSD.org