Page 1 of 1

how to install grub separetely

Posted: Fri Jan 19, 2007 1:22 am
by ramjimh
i installed the linux without the grub boot loader.after finish installing it comes to
grub> .i asked to my friend & he says the boot files will be in the bootlader only.how can i install the grub.i booted the system in rescue mode and i typed
#chroot /mnt/sysimage
#grub-install /dev/hda.
it takes long time and it came to the prompt.i typed exit and i restarted the machine.after rebooting still it comes to
grub> prompt only.what should i have to do so that the machine boots into the linux.

with rgds,
ramji

Posted: Fri Jan 19, 2007 3:34 am
by Jenk
Boot up with your live CD and chroot to the image, then type

Code: Select all

# grub-install /dev/hda
grub > root (hd0,0)
grub > setup (hd0)
grub > exit

installing grub

Posted: Sat Jan 20, 2007 8:21 am
by ramjimh
thanks jenk,

i will check & i will reply you.

with rgds,

ramjimh