Re: Can't get Grub work on clone of machine

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



On Tue, Jul 17, 2012 at 2:21 AM,  <m.roth@xxxxxxxxx> wrote:
> Yves Bellefeuille wrote:
>> On Monday 16 July 2012, Gregory Machin <gdm@xxxxxxxxxxxxxx> wrote:
>>
>>> # chroot /mnt/sysimage
>>> # grub-install /dev/sda
>>> /dev/sda does not have any corresponding BIOS drive.
>>
>> Try this:
>>
>> mount /dev/sda1 /mnt/sysimage/boot
>> mount -t none /dev /mnt/sysimage/dev -o bind
>> chroot /mnt/sysimage/boot
>> mount /proc
>> mount /sys
>
> What *is* mounted as /? If you've booted off, say, a USB key, or CD, that
> might be seen as sda, and the real h/d is sdb.
>
>      mark


Hi Mark.

Thanks for your input.
When I chroot to /mnt/sysimage the only hard drive listed is sda. Both
from "linux rescue"
 and chroot mount reflects the same drive / partition mapping  :
Rescue :
/dev/sda2 on /mnt/sysimage type ext3 (rw,data=ordered)
/dev/sda1 on /mnt/sysimage/boot type ext3 (rw,data=ordered)

Chroot :
/dev/sda2 on / type ext3 (rw,defaults)
/dev/sda1 on /boot type ext3 (rw,defaults)

Thanks

Greg
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux