LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > General
User Name
Password
General This forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!

Notices


Reply
  Search this Thread
Old 05-21-2006, 06:38 AM   #1
MRMadhav
Member
 
Registered: Nov 2005
Location: Mauritius
Distribution: PCQLinux, SUSE Linux,Fedora Core 5, Fedora Core 6, Knoppix Live, Kubuntu Edgy, PCLinuxOS
Posts: 167

Rep: Reputation: 30
Question How to restore Grub after Win Xp install


Hi, I have a fedora core 5 installation and a windows xp on my computer. I want to re-install windows xp because of a very serios virus problem. But I am afraid of not being able to boot my fedora core 5 afterwards! I have the fedora core 5 rescue disk, can someone tell me what to do to restore my grub bootloader when i have finished installing windows?
 
Old 05-21-2006, 07:48 AM   #2
rjwilmsi
Member
 
Registered: Mar 2005
Location: UK
Distribution: opensuse 12.2 x86_64
Posts: 563

Rep: Reputation: 38
I suggest you make a grub boot floppy diskette using your current working grub setup. After the XP reinstall, the FC 5 rescue CD should have an option to reinstall grub, but at least with the diskette you have a working backup. There is a command line way at http://www.linuxforums.org/forum/topic-38380.html
but FC's setup utility may be able to make one for you (YaST in SUSE 10 does) automatically.
 
Old 05-22-2006, 01:01 AM   #3
MRMadhav
Member
 
Registered: Nov 2005
Location: Mauritius
Distribution: PCQLinux, SUSE Linux,Fedora Core 5, Fedora Core 6, Knoppix Live, Kubuntu Edgy, PCLinuxOS
Posts: 167

Original Poster
Rep: Reputation: 30
Thanks for your answer! But yesterday as it was getting late i tried to do it by myself and after installing WinXp i used the FC5 CD1 to boot, then i entered linux rescue and it corrected the error by itself. It was so easily done that i thought that i posted a thread for nothing!
 
Old 05-22-2006, 05:13 AM   #4
rjwilmsi
Member
 
Registered: Mar 2005
Location: UK
Distribution: opensuse 12.2 x86_64
Posts: 563

Rep: Reputation: 38
Glad to help. Some things are easier than you think.
 
Old 05-28-2006, 11:08 PM   #5
kingbolete
LQ Newbie
 
Registered: Jan 2006
Posts: 4

Rep: Reputation: 0
What do you do after "linux rescue"

What did you do after typing in "linux rescue" after booting off of FC5 CD #1? Mine just mounts the partition as /mnt/sysimage and dumps me at a command line?
 
Old 05-29-2006, 01:08 AM   #6
corbintechboy
Member
 
Registered: Sep 2003
Location: Kentucky
Posts: 480
Blog Entries: 1

Rep: Reputation: 51
Boot with a live cd that has grub. Issue this:
as root
grub (enter)
root (hd0,?) (? being where your controlling distro is)
setup (hd0)
quite

Done!
 
Old 05-30-2006, 04:57 AM   #7
dantistus
Guest
 
Posts: n/a
Agreed to antimicrosoft, that would certainly help you!

Last edited by XavierP; 05-30-2006 at 07:53 AM.
 
Old 05-30-2006, 07:54 AM   #8
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
dantistus - while signatures are pretty unmoderated, a single sig block being bigger than the sum of all of your posts is a bit lame. Could you dial down the size of the font used please - or else I will have to think that your sole reason for being here is to advertise your wares. And that's a bannable offence.
 
Old 06-02-2006, 06:11 AM   #9
MRMadhav
Member
 
Registered: Nov 2005
Location: Mauritius
Distribution: PCQLinux, SUSE Linux,Fedora Core 5, Fedora Core 6, Knoppix Live, Kubuntu Edgy, PCLinuxOS
Posts: 167

Original Poster
Rep: Reputation: 30
Its much easier than that!

Hi Kingbolete, when you get to the command line you just have to type

grub-install /dev/hda

and then it will tell you that the installation is completed witout errors and you can reboot your machine!
 
Old 06-04-2006, 02:12 PM   #10
astriskmanish
LQ Newbie
 
Registered: Apr 2006
Posts: 2

Rep: Reputation: 0
grub not installing.. :(

hi all,
firstly i got some problem on my WINDOWS so i formatted it then after that my GRUB goes off..
so after that i tried to install it by following procedure..
i booted my PC with a live cd n mounted the linux partation then go to that directory using this command
sudo chroot /x (where /x is the directory in which i had mounted my linux partation)then i issued the command
grub-install /dev/hda6 (hda6 is the partation in which my root is there i dont have any boot partation as at the time of installation i made only two partation root and swap).
So after that command it says that
/boot/grub/stage1 not read correctly
so can any one suggest me what to do??
Ya i m using UBUNTU.
 
Old 06-05-2006, 06:38 AM   #11
MRMadhav
Member
 
Registered: Nov 2005
Location: Mauritius
Distribution: PCQLinux, SUSE Linux,Fedora Core 5, Fedora Core 6, Knoppix Live, Kubuntu Edgy, PCLinuxOS
Posts: 167

Original Poster
Rep: Reputation: 30
u should not use grub-install on /dev/hda6 but on /dev/hda , thats what i did as my linux was on hda4 and my windows on hda1.
 
Old 06-05-2006, 07:03 AM   #12
a.adlyy
LQ Newbie
 
Registered: May 2006
Location: egypt
Posts: 6

Rep: Reputation: 0
hi astiskmanish :
i think u should install it on hda1
grub is working in boot
 
Old 06-30-2006, 02:19 PM   #13
diogobaeder
LQ Newbie
 
Registered: Jun 2004
Location: São Paulo, SP, Brazil
Distribution: Fedora 5
Posts: 23

Rep: Reputation: 15
Restore GRUB with SATA drive

Hi, guys... can anyone help me on this?

I´ve got 3 drives: 1 IDE (hda in linux) and 2 SATA (sda and sdb in linux). I managed to install Fedora 5 in the second partition of the first SATA drive (sda2 and sda3), and I chose to use GRUB with Linux as default, over the Windows XP boot loader.

I tried many commands, but I just can´t get GRUB to work, so that my computer only boots to Windows XP (witch has an internal dual-boot for two Windows instalations).

I´ve tried the "linux rescue" thing, but it didn´t work, it´s not able to recognize something, so, what can I write after "grub-install /dev/"? Is the correct answer "grub-install /dev/sda2"? I want GRUB to be written to the MBR, so, I´m confused if I have to put the above or "grub-install /dev/hda"...

Well, thanks a lot, in advance!

Last edited by diogobaeder; 06-30-2006 at 02:32 PM.
 
Old 06-30-2006, 02:47 PM   #14
diogobaeder
LQ Newbie
 
Registered: Jun 2004
Location: São Paulo, SP, Brazil
Distribution: Fedora 5
Posts: 23

Rep: Reputation: 15
Additional information

Oh, and I forgot to mention:

When I try "grub-install /dev/hda" or "grub-install /dev/sda" (where my Fedora is trully installed), it returns this error message: "...does not have any corresponding BIOS drive". How? I tried twice to install Fedora, and the disc test passed!

Well, just waiting for help... thank you again!!!
 
Old 07-01-2006, 01:38 PM   #15
MRMadhav
Member
 
Registered: Nov 2005
Location: Mauritius
Distribution: PCQLinux, SUSE Linux,Fedora Core 5, Fedora Core 6, Knoppix Live, Kubuntu Edgy, PCLinuxOS
Posts: 167

Original Poster
Rep: Reputation: 30
Well i don't know much about this but i think that you should try to find out which drive is the Primary Master as the bootloader is usually installed in that drive.
Try to look at the last post of this thread it might help:
http://www.linuxquestions.org/questi...d.php?t=315424
 
  


Reply

Tags
at, backup, boot, boot loader, can, cd, command, computer, current, disk, diskette, do, done, error, fc, fc5, fedora, floppy, grub, install, installation, installing, line, linux, make, option, posted, reinstall, rescue, restore, setup, should, using, virus, win, windows, working, xp, yast



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
Recover grub bootloader after win install! teronslair Linux - Newbie 15 03-07-2010 12:25 AM
Restore GRUB Nilesh.Shah Linux - Hardware 6 01-09-2010 11:43 AM
Grub Restore roopunix Linux - Networking 5 08-29-2005 05:29 PM
GRUB vanish after install WIN anindyanuri Linux - Software 7 06-30-2005 10:38 AM
Install another MS OS and restore Grub? luwigie Linux - General 5 08-30-2004 01:30 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > General

All times are GMT -5. The time now is 05:23 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