Re: How to move my MBR

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



Scott Moseman wrote:
The BIOS determines which disk (the first) will be chosen to boot from.

I have no problems configuring the boot order in the BIOS.

I must have the MBR on /dev/hdc (which is being removed).
The /boot partition is on /dev/sda (where I want to move MBR).

To make a plain bootsector copy:
dd if=/dev/sda of=/dev/sdb bs=512 count=1

sda = old MBR source and sdb = new MBR source, I assume?
So, in my instance, I'm going to want to run it in this syntax:

dd if=/dev/hdc of=/dev/sda bs=512 count=1

I'm assuming the first 512 bytes are allocated purely for MBR and
won't hold any data that could be overwritten?  Would that be true?

It is not guaranteed to be true. Every disc has an MBR. The MBR
has three fields (depending on how one counts, some say two).
One field is the code area, another is the Partition Table (PT)
and the third is the Boot Marker (some include this in the PT).
You don't want to copy the PT from one disc to another. Copying
all 512 bytes will overwrite the PT.

Mike
--
p="p=%c%s%c;main(){printf(p,34,p,34);}";main(){printf(p,34,p,34);}
Oppose globalization and One World Governments like the UN.
This message made from 100% recycled bits.
You have found the bank of Larn.
I can explain it for you, but I can't understand it for you.
I speak only for myself, and I am unanimous in that!
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux