LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-15-2005, 02:46 PM   #1
achal
LQ Newbie
 
Registered: Jan 2005
Location: indore
Distribution: fedora
Posts: 25

Rep: Reputation: 15
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?
 
Old 02-15-2005, 02:51 PM   #2
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
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
 
Old 02-17-2005, 02:32 PM   #3
achal
LQ Newbie
 
Registered: Jan 2005
Location: indore
Distribution: fedora
Posts: 25

Original Poster
Rep: Reputation: 15
is fc2 cds are required or i can do with any version of red hat
 
Old 02-17-2005, 02:47 PM   #4
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
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
 
Old 02-18-2005, 01:45 PM   #5
achal
LQ Newbie
 
Registered: Jan 2005
Location: indore
Distribution: fedora
Posts: 25

Original Poster
Rep: Reputation: 15
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
 
Old 02-18-2005, 02:05 PM   #6
ArthurDent
Member
 
Registered: Feb 2004
Location: London
Distribution: Formerly Various Linux Distros, Now Fixed on Fedora 32
Posts: 189

Rep: Reputation: 30
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
 
Old 02-18-2005, 02:26 PM   #7
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
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
 
Old 02-18-2005, 03:30 PM   #8
achal
LQ Newbie
 
Registered: Jan 2005
Location: indore
Distribution: fedora
Posts: 25

Original Poster
Rep: Reputation: 15
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
 
Old 02-18-2005, 03:31 PM   #9
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
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
 
Old 02-19-2005, 02:39 PM   #10
achal
LQ Newbie
 
Registered: Jan 2005
Location: indore
Distribution: fedora
Posts: 25

Original Poster
Rep: Reputation: 15
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
 
Old 02-19-2005, 03:15 PM   #11
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
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
 
Old 02-20-2005, 02:27 PM   #12
achal
LQ Newbie
 
Registered: Jan 2005
Location: indore
Distribution: fedora
Posts: 25

Original Poster
Rep: Reputation: 15
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
 
Old 02-20-2005, 02:49 PM   #13
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
shame for who??
 
Old 02-23-2005, 06:06 PM   #14
achal
LQ Newbie
 
Registered: Jan 2005
Location: indore
Distribution: fedora
Posts: 25

Original Poster
Rep: Reputation: 15
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
 
Old 02-23-2005, 10:29 PM   #15
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
post ur grub.conf here

and the O/P of

fdisk -l

regards
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to configure Grub with TRIPLE OS? regnox Linux - Newbie 7 09-10-2005 05:09 PM
How to configure GRUB Mic Q SUSE / openSUSE 8 07-13-2005 08:21 AM
Grub configure? harzfled Linux - Newbie 6 03-03-2005 09:21 AM
configure grub : NL-Stitch Linux - Newbie 4 08-01-2004 03:40 PM
Help me, configure grub.conf letdoit Linux - Newbie 2 05-05-2004 05:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:10 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration