how to install grub separetely

Whether you are using Linux on the desktop or as a server, it's still good that you're using Linux. Linux related questions go here.

Moderator: General Moderators

Post Reply
ramjimh
Forum Newbie
Posts: 3
Joined: Mon Dec 04, 2006 2:48 am

how to install grub separetely

Post 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
User avatar
Jenk
DevNet Master
Posts: 3587
Joined: Mon Sep 19, 2005 6:24 am
Location: London

Post 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
ramjimh
Forum Newbie
Posts: 3
Joined: Mon Dec 04, 2006 2:48 am

installing grub

Post by ramjimh »

thanks jenk,

i will check & i will reply you.

with rgds,

ramjimh
Post Reply