From owner-freebsd-questions Fri Aug 11 11:43:29 2000 Delivered-To: freebsd-questions@freebsd.org Received: from pike.osd.bsdi.com (pike.osd.bsdi.com [204.216.28.222]) by hub.freebsd.org (Postfix) with ESMTP id 0C90F37B713 for ; Fri, 11 Aug 2000 11:43:21 -0700 (PDT) (envelope-from jhb@pike.osd.bsdi.com) Received: (from jhb@localhost) by pike.osd.bsdi.com (8.9.3/8.9.3) id LAA22766; Fri, 11 Aug 2000 11:41:54 -0700 (PDT) (envelope-from jhb) From: John Baldwin Message-Id: <200008111841.LAA22766@pike.osd.bsdi.com> Subject: Re: diff between fdisk, boot0cfg, and disklabel -B? (was Re: recompiling boot blocks & serial console) In-Reply-To: <14740.12435.310805.691257@hip186.ch.intel.com> from John Reynolds~ at "Aug 11, 2000 09:57:55 am" To: John Reynolds~ Date: Fri, 11 Aug 2000 11:41:54 -0700 (PDT) Cc: questions@FreeBSD.org X-Mailer: ELM [version 2.4ME+ PL68 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG John Reynolds~ wrote: > > > On Thu, 10 Aug 2000, Mike Smith wrote: > > > > You need to recompile the bootblocks to change the baudrate; set > > BOOT_COMCONSOLE_SPEED in /etc/make.conf, then do: > > > > # cd /sys/boot > > # make clean cleandepend > > # make depend && make && make install > > # disklabel -B > > Good information! > > Question: What is the difference between the "-B" option of disklabel, fdisk, > and boot0cfg? They seem to do the same thing from reading the man pages but > recently I was not able to use "disklabel -B" when using the "fixit" > floppy. jhb said "use boot0cfg -B". I did and it worked. > > I'm just wondering why there are 3 programs with seemingly the same option and > if they are not the same, how do they differ? They don't all do the same thing. :) fdisk -B and boot0cfg -B do do the same thing in that they both install MBR boot loaders, which are only present on x86 machines. This is the code that chooses which slice to boot from. disklabel -B sets the FreeBSD boot loaders, which are inside the FreeBSD slice itself. Maybe this diagram can help: disk start disk end -------------------------------------------------------------------------- | MBR | FreeBSD slice | Windows slice | -------------------------------------------------------------------------- | boot0 | boot1 | FreeBSD data | FAT | Windows data | --------| disklabel | |------------------------------- | boot2 | | ----------------------------------- The reason that both boot0cfg and fdisk have -B, is that fdisk -B is a general tool for configuring the slice table in the MBR and installing MBR boot loaders. boot0cfg is a tool for installing and configuring boot0, which is a specific MBR boot loader. The -B option is the one place in which those two programs' functionality overlap. HTH. > Thanks, > > -Jr -- John Baldwin -- http://www.FreeBSD.org/~jhb/ PGP Key: http://www.cslab.vt.edu/~jobaldwi/pgpkey.asc "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message