Re: [Hampshire] Removing MBR

Top Page

Reply to this message
Author: Bob Dunlop
Date:  
To: Hampshire LUG Discussion List
Subject: Re: [Hampshire] Removing MBR
On Tue, Jun 10 at 01:58, Rob Malpass wrote:
...
> I'm putting slackware 7.1 on it and in booting from that cdrom, I can't get
> fdisk /mbr to work. I can't find anything in the fdisk options which is
> anything to do with the mbr.


/mbr is not an option I recognise for fdisk which is all about editing
the partition table not booting. Grub or Lilo should be your man for
installing a boot record.

On the other hand if you just want to clear the exist MBR and partition
table, preventing boot and forcing fdisk to reinitialise the table then
the following dd command should suffice.

dd if=/dev/zero of=/dev/hda bs=512 count=4

Will zero the first 2k bytes on /dev/hda where said mbr and partition
table are stored. Be real sure you have selected the right disk and
that there is noting on it that you want first.

-- 
        Bob Dunlop