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 1:18 PM, Les Mikesell <lesmikesell@xxxxxxxxx> wrote:
> On Mon, Jul 16, 2012 at 7:20 PM, Gregory Machin <gdm@xxxxxxxxxxxxxx> 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@xxxxxxxxx

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
_______________________________________________
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