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

Tue Jul 17 02:35:44 UTC 2012
Gregory Machin <gdm at linuxpro.co.za>

On Tue, Jul 17, 2012 at 1:18 PM, Les Mikesell <lesmikesell at gmail.com> wrote:
> 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

Hi Les.

Just to clarify my understanding of grub's syntax for hard disk partitions
/dev/sda = hd0
/dev/sda1 = hd0,0
/dev/sda2 = hd0,1

Thanks
Greg