From owner-freebsd-questions Wed Nov 1 17:36:54 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mail.rz.uni-ulm.de (sirius-giga.rz.uni-ulm.de [134.60.241.36]) by hub.freebsd.org (Postfix) with ESMTP id 2959737B4D7 for ; Wed, 1 Nov 2000 17:36:52 -0800 (PST) Received: from gmx.de (lilith.wohnheim.uni-ulm.de [134.60.106.64]) by mail.rz.uni-ulm.de (8.9.3/8.9.3) with ESMTP id CAA04235; Thu, 2 Nov 2000 02:26:56 +0100 (MET) Message-ID: <3A00C2DE.4DBCB1FC@gmx.de> Date: Thu, 02 Nov 2000 02:26:54 +0100 From: Siegbert Baude X-Mailer: Mozilla 4.75 [en] (X11; U; FreeBSD 4.1.1-STABLE i386) X-Accept-Language: de, en MIME-Version: 1.0 To: Aaron Hill Cc: questions@freebsd.org Subject: Re: How to Erase/Zero a Boot Sector? References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi Aaron, > Can someone tell me how to erase (or just zero?) the boot sector of a given > partition. I know about DOS's fdisk /mbr which kills the master boot record. > What I want to do is erase the boot sector of a given partition - but leave > the rest of the partition intact. dd if=/dev/zero of=/dev/adXsY bs=512 count=1 Note: /dev/zero is different from /dev/null ! > FYI - I'm currently toying with getting a IBM T20 laptop to run fbsd 4.1.1 > Setting the partition to type 131 (extfs2) and fdisk /mbr didn't help. FreeBSD uses ffs, with type 165 (decimal)! Ciao Siegbert To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message