LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   installing grub (https://www.linuxquestions.org/questions/linux-newbie-8/installing-grub-424651/)

bhogalts 03-14-2006 02:09 AM

installing grub
 
hi to all
i have 2 hdd's (W and L)attached in my cpu.
on W i have installed xp and on L have installed linux 9.
after complete installation of linux it was working fine.
i then detached L and booted the system on booting it gave me OS error(cant remember exactly).
on W i installed xp and detached this hdd from bios after complete setup.
then i attached L hdd and booted the sys but it gave me same error. itried to repair grub using chroot /mnt/sysimage
grub-install --root-directory=/boot'(hd0)'

it got repaired successfully.
but on rebooting "grub>" prompt comes.

cud any one help me in this and to get linux recoverd

thanks

bc8o8 03-14-2006 10:02 AM

I'm not sure that
Code:

grub-install --root-directory=/boot'(hd0)'
is what you want, I think that
Code:

grub-install --root-directory=(hd0,0)/boot
would do the trick. In this, I am assuming that the /boot directory on the hard drive is on the primary partition. If you have a separate boot partition, you'd want to replace (hd0,0)/boot with (hd0,x) where x is the number of the partition.

Hope that helps...


All times are GMT -5. The time now is 03:36 AM.