[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Unable to boot cloned disk



On Fri, Jun 19, 2009 at 12:56 PM, Markus Kesaromous <remotestar live com> wrote:
>
> On my workstation, with FC9, I attached a second drive, identical to the linux boot drive.
> In single user mode, I cloned sda to sdb
> dd if=/dev/sda of=/dev/sdb bs=32M
> I shut down and remove the second drive and insert it into
> another workstation.
>
> Booting the second workstation fails because it cannot find
> /dev/root, among other things, and the kernel panics.

Please do not post html to this list.

Check the kernel command line in your /boot/grub/grub.conf to see if
it might be using a UUID in the kernel parameter that specifies the
partition to mount as root. The UUID is a identifier created uniquely
by your system for each hard drive partition. The grub.conf syntax is
the same as described by 'man fstab'.

Here is an example from /boot/grub/grub.conf my Fedora 9 initial install.

kernel /vmlinuz-2.6.25-14.fc9.i686 ro 3
root=UUID=9ce915fd-c95f-4817-8b02-448a4306fb11

After you clone the drive, the cloned copy of grub.conf will contain
the UUID of the original drive. You will need to edit this line in the
cloned grub.conf so that it matches the UUID of the cloned drive.

Or you can elect to use one of the other fstab syntaxes accepted by
grub, such as these examples
	root=LABEL=somelabel
	root=/dev/sda1

You can see the UUID of your drives by
	ls -l /dev/disk/by-uuid/


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]