Re: Cloning a disk using dd



On Wed, 31 Oct 2007 19:44:41 -0500, General Schvantzkopf wrote:

I'm trying to clone a Win2K disk using Fedora Live on a USB FLASH disk. I
did a

dd if=/dev/sda of=/dev/sdb

It seems to have cloned the MBR correctly and the partition layout looks
correct when I look at it using GParted. However when I tried to the boot
the cloned 2K disk it started to boot and then failed with an
inaccessible boot disk error. When I booted the original 2K disk and
tried to look at the cloned disk it said that the disk wasn't formatted.
So it appears that the NTFS file system wasn't cloned correctly.

The source disk is an old 40G that I had laying around, the destination
disk is a new 500G. After the dd there was a 40G partition on the 500G
disk and dd reported that it copied the right number of bytes.

Is there a switch to dd that I need to add to the command? Does anyone
have any idea about what went wrong?

The partition table uses (cylinders, heads, sectors). If the two drives
have a different number of (heads,sectors), then I don't think strict "dd"
will work. The drives have to be almost identical to work, especially with
Windows in the mix. However, if the OS is only GNU/Linux, then it might
work because LBA disk mode is always used- even by the loader.

--
Douglas Mayne

.



Relevant Pages

  • Re: Boot Problem
    ... Was either disk set up as a Microsoft dynamic disk? ... Do not change the boot sector signature. ... I ensure all OK by swapping over drives. ... installing XP as it insisted there was no drive to install itself on! ...
    (microsoft.public.windowsxp.hardware)
  • Re: 2 drives needed to boot - how to fix
    ... my cloned drive and my system won't boot. ... seems my system wants both hard drives to be able to boot. ... Which is your primary master disk - the old or the new disk? ... Could you, in effect, start over by making a fresh install of the XP OS ...
    (microsoft.public.windowsxp.general)
  • Re: NTLDR is missing
    ... Make sure that there are no disks in any removable drives when you boot. ... NTLDR is missing, why does it happen? ... Computer hard disk drive is not properly setup in BIOS. ...
    (microsoft.public.windowsxp.basics)
  • Re: [SLE] Problems with initrd after mkinitrd
    ... A disk can have three real heads and report a dozen or a hundred! ... > natural metric for partitioning drives that use LBA. ... > - One, less frequent, is the failure of some of the cloned drives to boot ...
    (SuSE)
  • Re: Grub hangs - two hard drives and a CD
    ... > What you wrote is all based on a wrong assumption that grub numbers drives ... > that the BIOS will call to boot an OS. ... The Bios calls to read disk require the register DL to ...
    (comp.os.linux.setup)