LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 06-12-2002, 01:03 AM   #1
sami
Member
 
Registered: Jun 2002
Distribution: Redhat 7.2
Posts: 37

Rep: Reputation: 15
Lightbulb Restoring GRUB


How to restore Grub while having linux 7.2 and windows XP?
 
Old 06-14-2002, 05:07 PM   #2
shoot2kill
Member
 
Registered: Jan 2002
Location: California
Distribution: Red Hat
Posts: 402

Rep: Reputation: 30
i suggest that it will be a better idea to use lilo, as it is easier to configure.

If you can't boot to linux without grub loader nor your bootdisk(if not already created) then i guess u have to resetup your linux

Last edited by shoot2kill; 06-14-2002 at 05:12 PM.
 
Old 06-15-2002, 04:17 AM   #3
sakeeb
Member
 
Registered: Apr 2002
Posts: 270

Rep: Reputation: 31
login to linuxbox as root and run grub-install
 
Old 06-20-2002, 06:42 AM   #4
sami
Member
 
Registered: Jun 2002
Distribution: Redhat 7.2
Posts: 37

Original Poster
Rep: Reputation: 15
but how to login to linuxboot as when booted XP starts without any dual boot option
 
Old 06-20-2002, 07:59 AM   #5
shoot2kill
Member
 
Registered: Jan 2002
Location: California
Distribution: Red Hat
Posts: 402

Rep: Reputation: 30
Did you create a boot disk? if not, then i am afraid that you will never boot into linux. I think the only solution will be a re-installation.
 
Old 06-20-2002, 10:16 AM   #6
jglen490
Member
 
Registered: Apr 2002
Location: The next brick house on the right.
Distribution: Kubuntu 8.04
Posts: 668

Rep: Reputation: 31
Quote:
I think the only solution will be a re-installation.
Or better yet, go out to Tom Oehser's pages and get a copy of Tom's boot disk. Write it to a floppy, boot from the floppy, and then go into your Linux space.
 
Old 06-21-2002, 12:25 AM   #7
linuxcool
LQ Addict
 
Registered: Jun 2001
Posts: 1,183

Rep: Reputation: 47
Try using your install cdrom disk. At the prompt, enter
linux root=/dev/hd?? . Replace the two ?? with the root ' / ' partition's letter and number. Log in as root and run grub-install /dev/hda. I'm assuming that you want to install grub in the mbr of /dev/hda ( primary master drive ).

What distribution do you use?
 
Old 06-25-2002, 02:27 AM   #8
sami
Member
 
Registered: Jun 2002
Distribution: Redhat 7.2
Posts: 37

Original Poster
Rep: Reputation: 15
im using Redhat linux 7.2 Gnome.
 
Old 06-25-2002, 04:50 AM   #9
linuxcool
LQ Addict
 
Registered: Jun 2001
Posts: 1,183

Rep: Reputation: 47
Did you get grub restored?
 
Old 10-29-2002, 05:27 PM   #10
disgrace
LQ Newbie
 
Registered: Oct 2002
Posts: 4

Rep: Reputation: 0
Is there no program out there to restore an existing grub partition from Windows? IE: If someone installed a new version of Windows, which overwrote their grub?

Thanks.
 
Old 10-30-2002, 10:43 AM   #11
jglen490
Member
 
Registered: Apr 2002
Location: The next brick house on the right.
Distribution: Kubuntu 8.04
Posts: 668

Rep: Reputation: 31
Not from Windoze. Remember, the folks in Redmond, WA, USA, will only be happy when every PC in the world has nothing but their product .

What you can try is to boot your Linux install CD and at the first prompt select or type in "rescue". That will usually bring up options that can be used to restore your Linux installation including your Lilo or Grub boot manager.
 
Old 10-30-2002, 06:36 PM   #12
disgrace
LQ Newbie
 
Registered: Oct 2002
Posts: 4

Rep: Reputation: 0
Thanks for the quick reply! I did indeed find out about the intall-cd ->linux rescue->shell->chroot->grub-install bit. I think it would have been a real benefit for Redhat to have included that as one of the install options ("Bootloader recovery" if it detects an existing linux partition, and an unsupported bootloader) to ease pain of newbies (especially since they want converts that potentially have never seen a command prompt).

Truth is, if you haven't done it before, the Redhat install makes it very hard to do it...it lets you select JUST the bootloader to be installed(select upgrade as install type and don't install any packages), then right after it says "file copy complete" it shows a dialog to the effect: "No kernel modules modified not installing bootloader" heheh.

That final check should really have just been removed, and let the bootloader install!!!.

Many people wanting to just switch from windows to linux (redhat being one of the more popular distributions) will probably get stuck at the "what happened to my linux boot option?" problem, after having installed windows over top of it. They will then stick the Redhat CD in, and do one of two things...

1: linux rescue - this is going to have a high dead end rate. Many wont know what to do, and just give up and assume linux sux.

2: reinstall - after the first couple of times I imagine most people will get tired and give up. Err... look at Windows users!


I know I sound stupid, but I am still upset it took me almost 2hrs to figure it out LOL!
 
  


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
Restoring GRUB using a rescue cd aus9 Linux - Software 7 05-13-2013 02:31 AM
Restoring Windows with a GRUB bootloader Lee Barker Linux - Newbie 11 11-18-2005 11:33 PM
restoring grub nayankk Linux - Newbie 2 09-10-2005 04:59 PM
Restoring grub after win reinstall praveendasigi Linux - Distributions 1 01-26-2005 12:58 AM
Restoring Grub Sevoma SUSE / openSUSE 6 12-31-2004 11:52 PM


All times are GMT -5. The time now is 04:51 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration