5

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
Zhen
  • 2,159
  • 4
  • 19
  • 31

3 Answers3

4

You need to change your paths in:

  • /etc/fstab
  • /boot/grub/menu.lst
MikeyB
  • 39,291
  • 10
  • 105
  • 189
2

you need to find and replace that uuid in your grub configuration, something like /boot/grub/menu.lst in grub.

in grub 2, /boot/grub/grub.cfg is generated when you run update-grub, so you could temporarily modify that file and boot, and then change the grub settings and run update-grub once you have booted into your OS.

another option is to temporarily replace the uuid reference to the actual disk partition, and again fix that later.

johnshen64
  • 5,865
  • 24
  • 17
  • just to nitpick a little, but what he displayed isn't a UUID. UUIDs are globally unique and follow a certain format. http://www.ietf.org/rfc/rfc4122.txt – Zoredache May 07 '12 at 19:13
2

In grub's configuration, you'll have a line that reads something like:

kernel /foo root=/dev/disk/by-id/scsi-35000c5004c05c167-part3

You'll need to change that line. You may also have, as @MikeyB points out, similar entries in /etc/fstab; you'll need to change those, as well.

Alternately, to boot off of the cloned disk, you can do a one-time edit of grub's configuration by hitting any key to enter menu mode, then "e" to edit the startup entry in question, then "e" again to edit the line. Make the changes, then hit enter to "save" (I use the term loosely) the modified line, and press "b" to boot the active entry. Don't forget to then make your changes permanent through the same steps as above!

BMDan
  • 7,249
  • 2
  • 23
  • 34