Mailinglist Archive: opensuse (1125 mails)

< Previous Next >
Re: [opensuse] dd and MBR
On Friday, May 04, 2012 05:34 AM Carlos E. R. wrote:
On 2012-05-04 06:11, Felix Miata wrote:
Not unless you want it to. The MBR is not part of any partition.
Unless you dd a whole disk, you must specify the MBR explicitly to dd
if you want it copied. Unless the two disks have identical sector
counts and sizes, that's usually a bad idea.

It is possible to dd the mbr skipping the partition table bytes if you know
the right incantation for dd - which I never remember.

To copy the boot code in the MBR:

dd if=<old drive> of=<new drive> bs=440 count=1

Example:

dd if=/dev/sda of=/dev/sdb bs=440 count=1

Note that these are drives specified, not partitions (e.g., sda1, sdb1).

The "c:\ drive" is not a drive; that is common but stupid MS user terminology
that isn't even consistent with MS technical terminology, which is "volume".
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse+owner@xxxxxxxxxxxx

< Previous Next >
Follow Ups