Clone hard disk

Hello,

I use a computer with OpenSUSE 11.4

I try to clone the hard disk to an other hard disk to get an exact copy using dd command.

With fdisk -l, I have identified source and destination disk.
sda is the source
sdb is the destination

Mount system partition (df -a) :
rootfs /
devtmpfs /dev
tmpfs /dev/shm
/dev/sda6 /
/dev/sda7 /home
/dev/sda1 /windows/C

I use dd command to close the disk :
dd if=/dev/sda of=/dev/sdb bs=32256

Operation finished correctly (same in and out blocks number), install the backup disk as main disk, when boot, we arrived on a green screen with a progression bar but boot stops with message below (sorry for the quality of picture):
doing fast boot
FATAL : Module ata_piix not found
FATAL : Error running install command for ata_piix
Creating device nodes with vdev
Trying manual resume from /dev/disk/by-id/ata-WDC_ … -part5
resume device /dev/disk/by-id/ata-WDC_ … -part5 not found (ignoring)
Trying manual resume from /dev/disk/by-id/ata-WDC_ … -part5
resume device /dev/disk/by-id/ata-WDC_ … -part5 not found (ignoring)
Waiting for device /dev/disk/by-id/ata-WDC…-part6 to appear : …
ata-WDC_ … -part6.
Want me to fall back to /dev/disk/by-id/ata-WDC_ … -part6? (Y/n)

Answer Y to the question after 1 minutes, system gives me the hand to a $ prompt where I can not do much.

I try to clone this disk with Paragon (raw copy), Redo, but this is the same thing, unable to boot.

Your help is appreciate,

Best regards,

Damien.

The /dev/disk/by-id is what’s causing the problem. The new hardware
doesn’t have the same id, so the mount fails.

You need to, prior to cloning the drive, switch the system over to mount
by partition (or by device) rather than by ID.

You can do this after the fact, but it’s a little more involved because
you have to go through rescue mode to do it.

BTW, 11.4 is far, far out of support - you should instead consider
upgrading to a more current release.

Jim


Jim Henderson
openSUSE Forums Administrator
Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C