LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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-18-2007, 07:54 PM   #1
micro_xii
Member
 
Registered: Sep 2006
Posts: 140

Rep: Reputation: 15
Question Lost Grub after formatting my primary hdd


Greetings:

Im using:

Primary hdd: win xp sp2
slave hdd: FC6


My problem is: I lost my GRUB

When I format my primary hdd, my grub lost. How can I install the grub again without installing the entire FC6 again.


thnks
 
Old 02-18-2007, 08:06 PM   #2
johngreenwood
Member
 
Registered: Nov 2006
Location: Lancashire, United Kingdom
Distribution: Slackware 13
Posts: 243

Rep: Reputation: 31
I am guessing that you don't have a bootdisk created for FC6.

If you have a live CD, or can get one, with grub on it you should be able to do it from there. I don't know how to use grub, but my guess is that you could copy the grub config file to the 'live' system thats running, and reinstall it that way. Or if that doesn't work, what I usually do is chroot to the root directory of my distro from a live CD, although I am not sure if this is necessary, I just tried it and it worked. That was with lilo though. I would like to be of more help, but I can't remember anything about the FC6 installer.

Last edited by johngreenwood; 02-18-2007 at 08:08 PM.
 
Old 02-18-2007, 08:34 PM   #3
micro_xii
Member
 
Registered: Sep 2006
Posts: 140

Original Poster
Rep: Reputation: 15
Question grub

Quote:
Originally Posted by johngreenwood
I am guessing that you don't have a bootdisk created for FC6.

If you have a live CD, or can get one, with grub on it you should be able to do it from there. I don't know how to use grub, but my guess is that you could copy the grub config file to the 'live' system thats running, and reinstall it that way. Or if that doesn't work, what I usually do is chroot to the root directory of my distro from a live CD, although I am not sure if this is necessary, I just tried it and it worked. That was with lilo though. I would like to be of more help, but I can't remember anything about the FC6 installer.

I have dvd fc6. I only need to install the GRUB and thats it. Because the contents of my fc6 is still in slave hdd. I only need to fix the grub

Last edited by micro_xii; 02-18-2007 at 08:35 PM.
 
Old 02-18-2007, 10:33 PM   #4
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
You should be able to boot from the Fedora install disk.. Once it boots up, do ctrl-alt-F1 to get a command-line (terminal mode)

We need to know what partition the /boot directory is on. Let's assume hdb1. We're also assuming that you have 2 IDE/PATA drives--hda and hdb

To install GRUB, do this:
Code:
grub   starts the grub shell
root (hd1,0)   tells grub that /boot is on drive 2, partition 1 (grub counts from zero)
setup (hd0)  puts grub on the mbr of drive 1
reboot
If you cannot get a command line using the install disk, you can do the above from any "live CD" linux distro.
 
  


Reply



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
Witch is my primary HDD? gubak Linux - Newbie 5 10-02-2006 03:19 AM
[RAID1, GRUB] Secondary HDD can't boot up when primary HDD fails Akhran Linux - Newbie 2 05-04-2006 04:17 AM
Broken GRUB on primary HDD? d4w50n Linux - Newbie 1 04-09-2006 12:04 PM
How can I restore a lost GRUB when Primary (XP) drive ate itself MultiBooter Linux - General 6 04-06-2006 06:05 AM
formatting HDD mrengc Linux - Newbie 1 01-10-2003 01:06 AM

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

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