[CentOS] Moving/copying the MBR

Thu Apr 12 15:01:52 UTC 2007
John Summerfield <debian at herakles.homelinux.org>

John R Pierce wrote:
> John Summerfield wrote:
>> Luciano Miguel Ferreira Rocha wrote:
>>> On Wed, Apr 11, 2007 at 10:48:36AM -0700, Mark Hull-Richter wrote:
>>>> Are there any tools for working with and moving or copying the MBR?
>>>>
>>>> My machine has 2 PATA drives (hda & hdb) and 2 SATA drives (sda & 
>>>> sdb).  The
>>>> MBR is on hda,
>>>
>>> Actually, its on every drive.
>>
>> Not exactly, there is space for it, it's the first sector, but 512 
>> bytes of zeroes doesn't really qualify.
> 
> the MBR includes the primary partition table in addition to the stage 1 
> boot code.

except when the drive's not partitioned. New drives are not, and I don't 
know a reason you must: I'm sure this will work fine:

mke2fs /dev/hda






-- 

Cheers
John

-- spambait
1aaaaaaa at coco.merseine.nu  Z1aaaaaaa at coco.merseine.nu

Please do not reply off-list