[CentOS] Can't get Grub work on clone of machine

Tue Jul 17 01:18:01 UTC 2012
Les Mikesell <lesmikesell at gmail.com>

On Mon, Jul 16, 2012 at 7:20 PM, Gregory Machin <gdm at linuxpro.co.za> wrote:
>
> Following these instructions :
> mount /dev/sda1 /mnt/sysimage/boot
> mount -t none /dev /mnt/sysimage/dev -o bind
> chroot /mnt/sysimage/boot
> mount /proc
> mount /sys

Not sure you need  any of that if your boot/rescue environment has grub.

> then
>
> root (hd0,1)
> setup (hd0)
> quit
>
> I get the following:
> root (hd0,1)
>  Filesystem type is ext2fs, partition type 0x83
> setup (hd0)
>   Checking if "/boot/grub/stage1" exists... no
>   Checking if "/grub/stage1" exists... no
>
> Error 2: Bad file or directory
> quit
>
> I have checked that the stage1 file is in /boot/grub/ So Im confused.

Either your rsync copy of the boot filesystem was not complete, or
what grub thinks is (hd0,1) is not the filesystem where you put it.

-- 
   Les Mikesell
     lesmikesell at gmail.com