LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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, 08: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, 09: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 09:08 PM.
 
Old 02-18-2007, 09: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 09:35 PM.
 
Old 02-18-2007, 11:33 PM   #4
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
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


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


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