Check in which all drive grub is installed.
grub> find /boot/grub/stage1
(hd0,2)
(hd0,0)
grub>
,so the grub will check for the both partitions for the bootable location. To
boot with the correct boot partition,
reboot the server and when the server is rebooted, press "c" and enter into
the grub partition where you need to provide
the bootable partition,
-=-=
grub>root (hd0,0)
grub>setup (hd0)
grub>boot
=--=-
Now, if the issue still occur, re-install grub following the below
steps
=-=-
Boot to live-cd.
mount the partitions "/" and /boot
If
=--==-=-
/dev/sda1 / Partition
/dev/sda2 is
/boot
-=-==--=
to mount mount the / and /boot when booted using
=-=-=-=--=
mkdir /test
mkdir /test/boot
mount /dev/sda1
/test
mount /dev/sda2 /test/boot
Re-install grub
=-=-=-=-=-=-
grub-install --root-directory=/test
/dev/sda
=-=-=-=-=-
grub> find /boot/grub/stage1
(hd0,2)
(hd0,0)
grub>
,so the grub will check for the both partitions for the bootable location. To
boot with the correct boot partition,
reboot the server and when the server is rebooted, press "c" and enter into
the grub partition where you need to provide
the bootable partition,
-=-=
grub>root (hd0,0)
grub>setup (hd0)
grub>boot
=--=-
Now, if the issue still occur, re-install grub following the below
steps
=-=-
Boot to live-cd.
mount the partitions "/" and /boot
If
=--==-=-
/dev/sda1 / Partition
/dev/sda2 is
/boot
-=-==--=
to mount mount the / and /boot when booted using
=-=-=-=--=
mkdir /test
mkdir /test/boot
mount /dev/sda1
/test
mount /dev/sda2 /test/boot
Re-install grub
=-=-=-=-=-=-
grub-install --root-directory=/test
/dev/sda
=-=-=-=-=-