Page 1 of 1

grub issue

Posted: Wed Oct 08, 2008 5:52 am
by ghulam yaseen
Hello :) ,

After i recompiled the kernel version today and rebooted the server, it did not reboot and then i tried with linux rescue mode. i executed this command /mnt/sysimage/sbin/grub-install /dev/hd0
grub not found
i get the above error. Please let me know how to fix this issue. :roll:

Re: grub issue

Posted: Wed Oct 08, 2008 8:39 am
by LinuxFreaK
Dear ghulam yaseen,
Salam,

ghulam yaseen wrote:After i recompiled the kernel version today and rebooted the server, it did not reboot and then i tried with linux rescue mode. i executed this command /mnt/sysimage/sbin/grub-install /dev/hd0
grub not found
i get the above error. Please let me know how to fix this issue. :roll:


You need to chroot into your /mnt/sysimage before running /sbin/grub-install /dev/hd0

$ chroot /mnt/sysimage
$ /sbin/grub-install /dev/hd0


Best Regards.

Posted: Wed Oct 08, 2008 9:27 am
by x2oxen
and you also need to tell the path where to install using -f flag (not sure) as in ubuntu when i recovered mine i had to tell that.

Posted: Thu Oct 09, 2008 10:39 pm
by Muhammad Saad
I think it should be either hd0 or /dev/hda because I have never seen /dev/hd0 anywhere.

Re:

Posted: Mon Oct 13, 2008 9:34 am
by LinuxFreaK
Dear Muhammad Saad,
Salam,

Muhammad Saad wrote:I think it should be either hd0 or /dev/hda because I have never seen /dev/hd0 anywhere.


indeed.

Best Regards.