LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   grub question (https://www.linuxquestions.org/questions/linux-general-1/grub-question-227286/)

linuxtesting2 09-06-2004 09:13 AM

grub question
 
i have installed fedora core 2, and i dualboot with windows. I needed to reinstall windows, so now i dont have grub. I tried to boot with the fedora cd, and got the filesystem mounted under /mnt/sysimage, and i could read and write to my filesystem. But how do i set grub to be the default bootmanager again, with lilo i could just do lilo command :) I tried with the command "grub-intstall /dev/hdx" and "grub-intstall /mnt/sysimage/dev/hdx", but that doesnt work, and i dont have any floppy. So what commando do i need to run ?


-ole

masand 09-06-2004 09:34 AM

hey

did u try
"grub-install /dev/hdx"
or
"grub-instrall /dev/hda"

u shouldbe trying the last one

regards

linuxtesting2 09-06-2004 09:38 AM

i did try grub-install /dev/hda2 , not just hda, because /boot is on hda2, should i try just hda ?

-ole

masand 09-06-2004 09:49 AM

hi u should try

grub-install /dev/hda

and this write the grub mbr on the MBR and if u ever want to remove that u can do the following

boot from a win98 cd
at the command prompt
#fdisk /mbr
will remve grub and rewrite the windows MBR to it


or boot from a winxp/200 cd in to recovery console
and use "fixmbr"

regards
gaurav


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