From owner-svn-src-stable-10@freebsd.org Mon Jan 11 20:10:17 2016 Return-Path: Delivered-To: svn-src-stable-10@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D6D04A6BA92; Mon, 11 Jan 2016 20:10:17 +0000 (UTC) (envelope-from trasz@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id AE1151553; Mon, 11 Jan 2016 20:10:17 +0000 (UTC) (envelope-from trasz@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u0BKAGrG079340; Mon, 11 Jan 2016 20:10:16 GMT (envelope-from trasz@FreeBSD.org) Received: (from trasz@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u0BKAFpI079324; Mon, 11 Jan 2016 20:10:15 GMT (envelope-from trasz@FreeBSD.org) Message-Id: <201601112010.u0BKAFpI079324@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: trasz set sender to trasz@FreeBSD.org using -f From: Edward Tomasz Napierala Date: Mon, 11 Jan 2016 20:10:15 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org Subject: svn commit: r293692 - in stable/10: sbin/bsdlabel sbin/dumpfs sbin/fdisk sbin/ffsinfo sbin/mdconfig sbin/newfs sbin/newfs_msdos sbin/newfs_nandfs sbin/reboot share/man/man4 share/man/man7 share/man... X-SVN-Group: stable-10 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-stable-10@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for only the 10-stable src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Jan 2016 20:10:18 -0000 Author: trasz Date: Mon Jan 11 20:10:14 2016 New Revision: 293692 URL: https://svnweb.freebsd.org/changeset/base/293692 Log: 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 Modified: stable/10/sbin/bsdlabel/bsdlabel.8 stable/10/sbin/dumpfs/dumpfs.8 stable/10/sbin/fdisk/fdisk.8 stable/10/sbin/ffsinfo/ffsinfo.8 stable/10/sbin/mdconfig/mdconfig.8 stable/10/sbin/newfs/newfs.8 stable/10/sbin/newfs_msdos/newfs_msdos.8 stable/10/sbin/newfs_nandfs/newfs_nandfs.8 stable/10/sbin/reboot/boot_i386.8 stable/10/share/man/man4/da.4 stable/10/share/man/man4/md.4 stable/10/share/man/man4/vpo.4 stable/10/share/man/man7/tuning.7 stable/10/share/man/man8/picobsd.8 stable/10/usr.sbin/boot0cfg/boot0cfg.8 Directory Properties: stable/10/ (props changed) Modified: stable/10/sbin/bsdlabel/bsdlabel.8 ============================================================================== --- stable/10/sbin/bsdlabel/bsdlabel.8 Mon Jan 11 20:03:58 2016 (r293691) +++ stable/10/sbin/bsdlabel/bsdlabel.8 Mon Jan 11 20:10:14 2016 (r293692) @@ -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 Modified: stable/10/sbin/dumpfs/dumpfs.8 ============================================================================== --- stable/10/sbin/dumpfs/dumpfs.8 Mon Jan 11 20:03:58 2016 (r293691) +++ stable/10/sbin/dumpfs/dumpfs.8 Mon Jan 11 20:10:14 2016 (r293692) @@ -100,8 +100,8 @@ flag is needed if the filesystem uses .Sh SEE ALSO .Xr disktab 5 , .Xr fs 5 , -.Xr disklabel 8 , .Xr fsck 8 , +.Xr gpart 8 , .Xr newfs 8 , .Xr tunefs 8 .Sh HISTORY Modified: stable/10/sbin/fdisk/fdisk.8 ============================================================================== --- stable/10/sbin/fdisk/fdisk.8 Mon Jan 11 20:03:58 2016 (r293691) +++ stable/10/sbin/fdisk/fdisk.8 Mon Jan 11 20:10:14 2016 (r293692) @@ -39,6 +39,13 @@ The utility can be used to divide space on the disk into slices and set one active. .Sh DESCRIPTION +.Bf -symbolic +This command is obsolete. +Users are advised to use +.Xr gpart 8 +instead. +.Ef +.Pp The .Fx utility, Modified: stable/10/sbin/ffsinfo/ffsinfo.8 ============================================================================== --- stable/10/sbin/ffsinfo/ffsinfo.8 Mon Jan 11 20:03:58 2016 (r293691) +++ stable/10/sbin/ffsinfo/ffsinfo.8 Mon Jan 11 20:10:14 2016 (r293692) @@ -121,9 +121,9 @@ to .Pa /var/tmp/ffsinfo with all available information. .Sh SEE ALSO -.Xr disklabel 8 , .Xr dumpfs 8 , .Xr fsck 8 , +.Xr gpart 8 , .Xr growfs 8 , .Xr gvinum 8 , .Xr newfs 8 , Modified: stable/10/sbin/mdconfig/mdconfig.8 ============================================================================== --- stable/10/sbin/mdconfig/mdconfig.8 Mon Jan 11 20:03:58 2016 (r293691) +++ stable/10/sbin/mdconfig/mdconfig.8 Mon Jan 11 20:10:14 2016 (r293692) @@ -304,8 +304,7 @@ mount /dev/md1.nop /mnt .Sh SEE ALSO .Xr md 4 , .Xr ffs 7 , -.Xr bsdlabel 8 , -.Xr fdisk 8 , +.Xr gpart 8 , .Xr mdmfs 8 , .Xr malloc 9 .Sh HISTORY Modified: stable/10/sbin/newfs/newfs.8 ============================================================================== --- stable/10/sbin/newfs/newfs.8 Mon Jan 11 20:03:58 2016 (r293691) +++ stable/10/sbin/newfs/newfs.8 Mon Jan 11 20:10:14 2016 (r293692) @@ -303,11 +303,11 @@ on file systems that contain many small .Xr geom 4 , .Xr disktab 5 , .Xr fs 5 , -.Xr bsdlabel 8 , .Xr camcontrol 8 , .Xr dump 8 , .Xr dumpfs 8 , .Xr fsck 8 , +.Xr gpart 8 , .Xr gjournal 8 , .Xr growfs 8 , .Xr makefs 8 , Modified: stable/10/sbin/newfs_msdos/newfs_msdos.8 ============================================================================== --- stable/10/sbin/newfs_msdos/newfs_msdos.8 Mon Jan 11 20:03:58 2016 (r293691) +++ stable/10/sbin/newfs_msdos/newfs_msdos.8 Mon Jan 11 20:10:14 2016 (r293692) @@ -228,9 +228,7 @@ Create a 30MB image file, with the FAT p newfs_msdos -C 30M -@63s ./somefile .Ed .Sh SEE ALSO -.Xr disktab 5 , -.Xr disklabel 8 , -.Xr fdisk 8 , +.Xr gpart 8 , .Xr newfs 8 .Sh HISTORY The Modified: stable/10/sbin/newfs_nandfs/newfs_nandfs.8 ============================================================================== --- stable/10/sbin/newfs_nandfs/newfs_nandfs.8 Mon Jan 11 20:03:58 2016 (r293691) +++ stable/10/sbin/newfs_nandfs/newfs_nandfs.8 Mon Jan 11 20:10:14 2016 (r293692) @@ -63,9 +63,7 @@ Create a file system, using default para newfs_nandfs /dev/ada0s1 .Ed .Sh SEE ALSO -.Xr disktab 5 , -.Xr disklabel 8 , -.Xr fdisk 8 , +.Xr gpart 8 , .Xr newfs 8 .Sh HISTORY The Modified: stable/10/sbin/reboot/boot_i386.8 ============================================================================== --- stable/10/sbin/reboot/boot_i386.8 Mon Jan 11 20:03:58 2016 (r293691) +++ stable/10/sbin/reboot/boot_i386.8 Mon Jan 11 20:10:14 2016 (r293692) @@ -348,9 +348,9 @@ requirement has not been adhered to. .Xr make.conf 5 , .Xr ttys 5 , .Xr boot0cfg 8 , -.Xr bsdlabel 8 , .Xr btxld 8 , .Xr config 8 , +.Xr gpart 8 , .Xr gptboot 8 , .Xr halt 8 , .Xr loader 8 , Modified: stable/10/share/man/man4/da.4 ============================================================================== --- stable/10/share/man/man4/da.4 Mon Jan 11 20:03:58 2016 (r293691) +++ stable/10/share/man/man4/da.4 Mon Jan 11 20:10:14 2016 (r293692) @@ -214,8 +214,7 @@ None. .Xr ada 4 , .Xr cam 4 , .Xr geom 4 , -.Xr bsdlabel 8 , -.Xr fdisk 8 +.Xr gpart 8 .Sh HISTORY The .Nm Modified: stable/10/share/man/man4/md.4 ============================================================================== --- stable/10/share/man/man4/md.4 Mon Jan 11 20:03:58 2016 (r293691) +++ stable/10/share/man/man4/md.4 Mon Jan 11 20:10:14 2016 (r293692) @@ -81,8 +81,7 @@ disk found in the man page. Other tools will also create these images, such as NanoBSD. .Sh SEE ALSO -.Xr disklabel 8 , -.Xr fdisk 8 , +.Xr gpart 8 , .Xr loader 8 , .Xr mdconfig 8 , .Xr mdmfs 8 , Modified: stable/10/share/man/man4/vpo.4 ============================================================================== --- stable/10/share/man/man4/vpo.4 Mon Jan 11 20:03:58 2016 (r293691) +++ stable/10/share/man/man4/vpo.4 Mon Jan 11 20:10:14 2016 (r293692) @@ -64,7 +64,7 @@ When mounting a DOS file system or formatting a .Fx file system, check the slice of the disk with the -.Xr fdisk 8 +.Xr gpart 8 utility. .Pp In order to unixify a ZIP disk, put the following in /etc/disktab: Modified: stable/10/share/man/man7/tuning.7 ============================================================================== --- stable/10/share/man/man7/tuning.7 Mon Jan 11 20:03:58 2016 (r293691) +++ stable/10/share/man/man7/tuning.7 Mon Jan 11 20:10:14 2016 (r293692) @@ -753,10 +753,10 @@ over services you export from your box ( .Xr ports 7 , .Xr boot 8 , .Xr bsdinstall 8 , -.Xr bsdlabel 8 , .Xr ccdconfig 8 , .Xr config 8 , .Xr fsck 8 , +.Xr gpart 8 , .Xr gjournal 8 , .Xr gstripe 8 , .Xr gvinum 8 , Modified: stable/10/share/man/man8/picobsd.8 ============================================================================== --- stable/10/share/man/man8/picobsd.8 Mon Jan 11 20:03:58 2016 (r293691) +++ stable/10/share/man/man8/picobsd.8 Mon Jan 11 20:10:14 2016 (r293692) @@ -425,7 +425,7 @@ third form, replacing .Ar NN with the actual start of the partition (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 recognised. You have to use the Modified: stable/10/usr.sbin/boot0cfg/boot0cfg.8 ============================================================================== --- stable/10/usr.sbin/boot0cfg/boot0cfg.8 Mon Jan 11 20:03:58 2016 (r293691) +++ stable/10/usr.sbin/boot0cfg/boot0cfg.8 Mon Jan 11 20:10:14 2016 (r293692) @@ -180,14 +180,13 @@ To enable just slices 1 and 3 in the men .Dl "boot0cfg -m 0x5 ada0" .Pp To go back to non-interactive booting, use -.Xr fdisk 8 +.Xr gpart 8 to install the default MBR: .Pp -.Dl "fdisk -B ada0" +.Dl "gpart bootcode -b /boot/mbr ada0" .Sh SEE ALSO .Xr geom 4 , .Xr boot 8 , -.Xr fdisk 8 , .Xr gpart 8 .Sh AUTHORS .An Robert Nordier Aq rnordier@FreeBSD.org .