LinuxQuestions.org

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

achal 02-15-2005 01:46 PM

grub configure
 
i am absolutely new to linux . i have been inspired by someone who is a great suporter of open source. anyways i have win xp and fedora core 2 .
my win xp is corrupt so ineed to reinstall it by formatting my c: drive. will the grub go with it ? how can i reconfigure the grub?

masand 02-15-2005 01:51 PM

hi

if during windows Installtion ,it writes to ur MBR then ur GRUB will surely be gone

to recover it

boot into rescue mode(type "linux rescue" at while booting from 1 st CD)

chroot to ur linux partition(for redhat based systems u need to run "chroot /mnt/sysimage" after u boot in rescue mode)

and

grub-install /dev/hda

regards

achal 02-17-2005 01:32 PM

is fc2 cds are required or i can do with any version of red hat

masand 02-17-2005 01:47 PM

hi there

with fedora Cds ,it will be more easy

or u can do wth any linux
there u need to mount ur root partiton ,then "chroot" to that partition

so better if u can get Fedora Cds

regards

achal 02-18-2005 12:45 PM

using redhat 9.0 instead of fc2 following output came after linux rescue
and after fdisk -l
i got hdd4 as my linux partition
i wrote following
mount /dev/hdd4 /tmp
chroot /tmp
grub-install /dev/hdd4


following error came
sh-2.05b# grub-install /dev/hdd4
sh: child setpgid (105 to 105) : no such process
the file /boot/grub/stage1 not read correctly

ArthurDent 02-18-2005 01:05 PM

As Masand stated the correct command is
Code:

grub-install /dev/hda
assuming that your Windows partition is the first one on the first drive (which it probably is because Windows can't comprehend a situation where it would be anything other than the first partition).

hth

Mark

masand 02-18-2005 01:26 PM

Quote:

Originally posted by ArthurDent
As Masand stated the correct command is
Code:

grub-install /dev/hda
assuming that your Windows partition is the first one on the first drive (which it probably is because Windows can't comprehend a situation where it would be anything other than the first partition).

hth

Mark

thanks "Mark" for putting my point again

regards

achal 02-18-2005 02:30 PM

as u said my windows must be on 1st patition
its not so i ahve two version of windows xp
one on c: drive
and one on e: drive
and iam not using grub/hda coz my hdd is secondary slave
and as far to my knowledge for srcondary slave hdd4 is used
plz clarify

masand 02-18-2005 02:31 PM

u need to use

grub-intall /dev/hdd

not hdd4 since u want to install grub on MBR and not on UR root partition I guess???

regards

achal 02-19-2005 01:39 PM

i gave up installing grub and iam going for fc3. would it be better if i switch to lilo from grub
how can i make that switch

masand 02-19-2005 02:15 PM

hi there

wheh ur installing Linux u have an option of installing any one of the two

and BTW grub is newer then lilo and lilo may be depriciated in future versions,might have been depricited in FC3

regards

achal 02-20-2005 01:27 PM

my 2nd installation cd of fc3 is corrupt
so ineed to procure new cd . till then iam cut of from the world of linux
its a shame

masand 02-20-2005 01:49 PM

shame for who??

achal 02-23-2005 05:06 PM

NOW NEW PROB;EM WITH GRUB
WHEN I INSTALL FC 2 AND I GIVE LOCATION OF MY XP PARTITION FOR GRUB EVERYTHING RUNS OK . BUT WHEN SYSTEM STARTS IT SHOWS TWO ENTRIES ONE OF FEDORA AND OTHER OF WIN XP
WHEN I CLICK ON WIN XP
SOME ERROR COMES WHICH SAYS DISK NOT FOUND PRESS ENTER TO REBOOT
AND THEN NOTHING HAA[ENS
WHATS THIS

masand 02-23-2005 09:29 PM

post ur grub.conf here

and the O/P of

fdisk -l

regards


All times are GMT -5. The time now is 06:58 PM.