[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: install-mbr on amd64?

On Thursday 18 May 2006 08:41, Kilian wrote:
> Dear All,
> I'm trying to set up a software RAID 1 (two disks) with Debian on a
> system with an AMD x86_64 Athlon processor. To install the MBR on both
> discs, I need install-mbr (http://packages.debian.org/stable/base/mbr)
> if I'm correct, but this package does not exist in the amd64 port... I
> then tried to compile it myself, which fails, obviously, because the
> package has not been ported to x86_64 yet as it seems (and I lack the
> knowledge to do so...).
> I'm a bit stuck now.. what other tools can I use?
> Thanks for any hint!
> Greetz,
> Kilian

Just install an MBR on one disk, and then use dd to copy it.  A master boot 
record is always 512 bytes long.  Assuming you are using SATA disks and the 
MBR was installed on the first, the command would be

# dd if=/dev/sda of=/dev/sdb bs=512 count=1

To test it, shut down cleanly {so the RAID integrity is maintained}, and 
physically swap the drives.


Reply to: