[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Clone via DD OpenSUSE not working

Posted on 2012-04-05
3
Medium Priority
?
241 Views
Last Modified: 2012-04-10
I cloned a Virtual machine hard drive by hooking up an external hard drive and booting the source machine from Live CD. After doing
dd if=/dev/sda of=/dev/sdb

Open in new window

everything looks to be exact.

When inserting the new drive into a physical server, it boots up, gets to the GRUB, and asks me what kernel to select. I allow it to use the first kernel and proceed. It never boots and shows the following screen:
http://i43.photobucket.com/albums/e352/shockwavecs/photo-32.jpg

So we immediately changed the two files below:

device.map:
from:
(hd0)      /dev/disk/by-id/ata-VBOX_HARDDISK_VBaa736b17-5f8d9b0e
to:
(hd0)      /dev/sda

and

menu.lst:
from:
    root (hd0,0)
    kernel /vmlinuz-2.6.37.6-0.11-desktop root=/dev/disk/by-label/root resume=/dev/disk/by-id/ata-VBOX_HARDDISK_VBaa736b17-5f8d9b0e-part3 splash=silent quiet showopts vga=0x317
    initrd /initrd-2.6.37.6-0.11-desktop
to:
    root (hd0,0)
    kernel /vmlinuz-2.6.37.6-0.11-desktop root=/dev/sda vga=0x317
    initrd /initrd-2.6.37.6-0.11-desktop



Still, it does the same thing from above. I am clueless. Is this something to do with a "resume" file that is not listed in the above two files that we edited? Thanks for looking.
0
Comment
Question by:Justin_Edmands
  • 2
3 Comments
 
LVL 88

Expert Comment

by:rindi
ID: 37810688
Did you also change the entries in the fstab file, or did you forget that?
0
 

Accepted Solution

by:
Justin_Edmands earned 0 total points
ID: 37811691
turns out I needed to just rebuild initrd image. new hardware, new initrd image. doh!
http://lists.opensuse.org/opensuse/2010-05/msg00989.html
0
 

Author Closing Comment

by:Justin_Edmands
ID: 37826748
I overlooked the rebuilding of initrd image
0

Featured Post

Nothing ever in the clear!

This technical paper will help you implement VMware’s VM encryption as well as implement Veeam encryption which together will achieve the nothing ever in the clear goal. If a bad guy steals VMs, backups or traffic they get nothing.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses
Course of the Month19 days, 21 hours left to enroll

873 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question