Clearing hard disk's MBS

Aaron Konstam akonstam at sbcglobal.net
Wed Aug 9 13:31:55 UTC 2006


On Wed, 2006-08-09 at 14:17 +0300, Markku Kolkka wrote:
> Irvine Short kirjoitti viestissään (lähetysaika keskiviikko, 9. 
> elokuuta 2006 11:18):
> > On Wed, 2006-08-09 at 08:47 +0200, Przemyslaw Gawronski wrote:
> > > Hi, how can I clean hdd's Master Boot Sector? For example
> > > after I've put there GRUB.
> >
> > dd if=/dev/zero of=/dev/hda bs=1024 count=8192
> >
> > Make sure you get the device right in the line above! Not sure
> > if the count above is enough though.
> 
> It's much too large if you only want to clear the MBR. Use bs=512 
> and count=1 to leave the rest of the disk intact. MBR is just 
> the first 512-byte sector of the boot disk.
> 

Actually the boot record is only the first 446 bytes of sector 0.
The rest of the sector is the partition table.
-- 
Aaron Konstam <akonstam at sbcglobal.net>




More information about the fedora-list mailing list