From owner-freebsd-questions@FreeBSD.ORG Sun Jul 24 16:16:53 2005 Return-Path: X-Original-To: questions@freebsd.org Delivered-To: freebsd-questions@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8EF7816A41F for ; Sun, 24 Jul 2005 16:16:53 +0000 (GMT) (envelope-from garys@opusnet.com) Received: from opusnet.com (mail.opusnet.com [209.210.200.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3C06543D46 for ; Sun, 24 Jul 2005 16:16:53 +0000 (GMT) (envelope-from garys@opusnet.com) Received: from localhost.localhost [70.98.247.55] by opusnet.com with ESMTP (SMTPD32-8.05) id AEEC2A10012C; Sun, 24 Jul 2005 09:16:44 -0700 Received: from localhost.localhost (localhost.localhost [127.0.0.1]) by localhost.localhost (8.13.3/8.13.3) with ESMTP id j6OGHMCY002444; Sun, 24 Jul 2005 09:17:22 -0700 (PDT) (envelope-from garys@opusnet.com) Received: (from jojo@localhost) by localhost.localhost (8.13.3/8.13.3/Submit) id j6OGHAiO002441; Sun, 24 Jul 2005 09:17:10 -0700 (PDT) (envelope-from garys@opusnet.com) To: Tobias Roth References: <20050724174833.6777bfe2.randomiadgf@fsck.ch> From: garys@opusnet.com (Gary W. Swearingen) Date: Sun, 24 Jul 2005 09:17:10 -0700 In-Reply-To: <20050724174833.6777bfe2.randomiadgf@fsck.ch> (Tobias Roth's message of "Sun, 24 Jul 2005 17:48:33 +0200") Message-ID: User-Agent: Gnus/5.1006 (Gnus v5.10.6) XEmacs/21.4 (Jumbo Shrimp, berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: questions@freebsd.org Subject: Re: How to remove bootloader from a slice X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Jul 2005 16:16:53 -0000 Tobias Roth writes: > I am trying to remove a bootloader accidentally installed on ad0s3. > I tried overwriting it with fdisk -B -b /boot/boot0 -3 but that didn't > have any effect. And anyway, I'd rather see it gone than > replaced with the FreeBSD bootloader. > boot0cfg doesn't seem to be able to act on slices alone. That leaves > dd, but as I am not sure how to do it correctly, I thought I'd rather > ask first. Check out the bsdlabel manpage (esp. -B and -B example). BTW, your "fdisk" command only affected the MBR and the -3 was ignored because you didn't tell it what to do with the partition table's third entry.