LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 08-27-2005, 11:54 PM   #1
roopunix
Member
 
Registered: Feb 2004
Location: Kathmandu
Distribution: Redhat/fedora/Suse [Wanna Drive With Debian]
Posts: 208

Rep: Reputation: 30
Grub Restore


Hello all.
i am using redhat AS 3. But a friend of mine installed windows 2000 after i installed Linux.Now i think the boot loader information or grub has been removed or overridden.Now what is the soloution.When i had viewed my partition table before the boot partition was hda1. Can any one say me how to take the steps now, such that windows also stays and linux also stay.

Thanking You.
 
Old 08-28-2005, 12:47 AM   #2
vimal
Red Hat India
 
Registered: Nov 2004
Location: Kerala/Pune,india
Distribution: RedHat, Fedora
Posts: 260

Rep: Reputation: 34
boot from the first cd of your distro:. after that type "linux rescue" at the grub prompt. this will bring the system in rescue mode. after that u will get a shell. now execute the command " grub-install /dev/hdX". change the letter X to a,b,c,d etc.... depending on your hard disk connection. /dev/hda denotes that it is primary master, /dev/hdb denotes it is primary slave etc...
if the prompt returns with no errormessages, exit twice. this will reboot the system and you will have the grub installed. vimal..........
 
Old 08-28-2005, 12:53 AM   #3
roopunix
Member
 
Registered: Feb 2004
Location: Kathmandu
Distribution: Redhat/fedora/Suse [Wanna Drive With Debian]
Posts: 208

Original Poster
Rep: Reputation: 30
Thankyou very much .
we this steps don't i have to configure my grub file.That is grub.conf
secondly will the windows still be in existence. [ i want to exist the both ]
 
Old 08-28-2005, 05:09 PM   #4
jdogpc
Member
 
Registered: Jul 2005
Location: Mafra, PT
Distribution: Fedora Core
Posts: 90

Rep: Reputation: 15
Those steps won't remove windowz but you won't be able to boot it before you correct your grub.conf file.

edit your grub.conf so that it looks something like this. this one is my grub.conf
----------------------------------original------------------------------
#boot=/dev/rd/c0d0
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title Fedora Core (2.6.11-1.1369_FC4smp)
root (hd0,0)
kernel /vmlinuz-2.6.11-1.1369_FC4smp ro root=LABEL=/ acpi=force rhgb quiet
initrd /initrd-2.6.11-1.1369_FC4smp.img
------------------------new lines--------------------------------------------
title "Windows something"
rootnoverify (hdX,Y) --- X hdd # hda=0,hdb=1:Y partition # hda1=0,hda2=1,etc..
chainloader +1
boot
------------------endnewlines----------------------------------------------
 
Old 08-29-2005, 02:27 PM   #5
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 230Reputation: 230Reputation: 230
Don't forget that Winders sometimes likes a makeactive line:
Code:
-------  new lines  -------
title "Windows something"
rootnoverify (hdX,Y) 
makeactive
chainloader +1
 
Old 08-29-2005, 05:29 PM   #6
jdogpc
Member
 
Registered: Jul 2005
Location: Mafra, PT
Distribution: Fedora Core
Posts: 90

Rep: Reputation: 15
In my case I haven't need the makeactive because my notebook is always dual booting and as I have to install windowz first it make the first partition active, that's why I missed that one. Sorry if things didn't went because of that.
 
  


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
Restore GRUB Nilesh.Shah Linux - Hardware 6 01-09-2010 11:43 AM
Help! Need to restore GRUB after ruining it with XP lamiczka Linux - Software 1 03-22-2005 09:35 AM
Install another MS OS and restore Grub? luwigie Linux - General 5 08-30-2004 01:30 PM
Restore Grub Help gackt3541 Linux - General 8 06-06-2004 04:17 PM
How can I restore GRUB ? xtrips Linux - Software 5 07-30-2003 03:22 PM


All times are GMT -5. The time now is 11:49 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration