Linux – Replacing a Hard Disk with a clone fails

hard drivelinuxsles

I just cloned a disk (A) using dd into the same kind of disk (B):

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

Now, I want to boot the server with new disk (B) instead of old (A). But i getting an error during start:

............................Could not find /dev/disk/by-id/scsi-35000c5004c05c167-part3.
Want me to fall back to /dev/disk/by-id/scsi-35000c5004c05c167-part3? (Y/n) 
y
Waiting for device /dev/disk/by-id/scsi-35000c5004c05c167-part3 to appear:             
..............................not found -- exiting to /bin/sh

I think the problem is that it query the disk using old disk (A) ID (scsi-35000c5004c05c167). Where can i change it to use new disk (B) ID?

I'm using Suse Linux Enterprise 11

More info:

$ ls /dev/disk/by-id/scsi-*           
/dev/disk/by-id/scsi-35000c5004bab5733
/dev/disk/by-id/scsi-35000c5004bab5733-part1
/dev/disk/by-id/scsi-35000c5004bab5733-part2
/dev/disk/by-id/scsi-35000c5004bab5733-part3

Best Answer

You need to change your paths in:

  • /etc/fstab
  • /boot/grub/menu.lst
Related Topic