Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 02 Nov 2000 02:26:54 +0100
From:      Siegbert Baude <siegbert.baude@gmx.de>
To:        Aaron Hill <hillaa@hotmail.com>
Cc:        questions@freebsd.org
Subject:   Re: How to Erase/Zero a Boot Sector?
Message-ID:  <3A00C2DE.4DBCB1FC@gmx.de>
References:  <F55zjzjPWL0JcQ41gcl000038e3@hotmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3A00C2DE.4DBCB1FC>