LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-05-2008, 08:40 PM   #1
adnankhawer
LQ Newbie
 
Registered: Mar 2008
Location: Pakistan
Distribution: Red Hat, Kubuntu, Suse
Posts: 13

Rep: Reputation: 0
How to install GRUB without Complet installation of Linux?


Hello,
I have installed Linux (Red Hat 9.0) after Windows XP.
GRUB was showing.........
Red Hat Linux 9.0
Windows XP

Everything is ok but when i reinstall Windows XP the bootloader (GRUB)has been removed now i can only run Windows XP although Linux partitions are exist, Ok!

how can i bring it back without complete installation of Linux????

Thanks!
 
Old 03-05-2008, 09:07 PM   #2
Emerson
LQ Guru
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 6,317

Rep: Reputation: Disabled
Well, this time you have to reinstall Linux anyway.
Get a modern supported Linux.
 
Old 03-05-2008, 09:19 PM   #3
wildar
Member
 
Registered: Jan 2007
Distribution: Mandriva 2008, Mandrake 2005, Ubuntu 8.04.1
Posts: 239

Rep: Reputation: 30
Using the Red Hat 9.0 install disk, boot into rescue mode, use these commands and reboot
Code:
chroot /mnt/sysimage
grub-install /dev/hda
Hope this helps.
 
Old 03-06-2008, 08:09 AM   #4
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 9,078
Blog Entries: 4

Rep: Reputation: 3182Reputation: 3182Reputation: 3182Reputation: 3182Reputation: 3182Reputation: 3182Reputation: 3182Reputation: 3182Reputation: 3182Reputation: 3182Reputation: 3182
Here's a little background info ...

Grub is a "boot loader." Its purpose is to load other operating systems. It can load Linux, Unix, Windows, and even other things. Every operating-system has a boot-loader. Some are generic (like Grub), others are proprietary and specialized (like Windows'). (In fact, when you load Windows using Grub, what happens is that Grub loads Windows' boot-loader, because Windows ultimately has to be loaded by its own loader system.)

The thing that causes the boot loader to be loaded is something called the Master Boot Record, or just MBR. Nevermind exactly what that is... suffice it to say that it "points to" the boot-loader.

When you reinstalled Windows, part of the installation process was to set up Windows's loader and to cause the MBR on that disk to point to (of course...) Windows's loader. But Windows (presumably) did not wipe out Linux, nor did it wipe out Grub: it's just that the MBR doesn't point to Grub anymore.

The procedure aforementioned will cause the MBR to be changed so that it points to Grub again. (On the Microsoft support-site you will find a similar procedure, which you also should know, which will change the MBR to point to Windows's loader again.)

When you want to "dual boot" both Windows and Linux, you need to set up this procedure (well, the distro probably already did it for you), so that Grub gets control first, and will subsequently pass control to the Windows loader if you choose.

There is extensive documentation on the web about these things. Familiarize yourself with some of it before you proceed.
 
  


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
complet newbe to linux and debian fahad_shaon Debian 9 04-20-2006 03:46 PM
how to install grub using fc 4 installation cd .the cd has rescue mode amolgupta Linux - Software 2 03-15-2006 02:14 AM
Installation failed mid-install, now grub> prompt is all I have! whatthe Fedora - Installation 4 03-09-2004 09:43 PM
Installation failed mid-install, now grub is all I have! whatthe Linux - General 2 03-09-2004 05:32 PM
complet linux NewBie(problems with the downloaded copy of linux) merlin Linux - Software 3 03-25-2002 01:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:40 PM.

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