LinuxQuestions.org
Visit Jeremy's Blog.
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 01-08-2011, 11:04 PM   #1
houndhen
Member
 
Registered: Aug 2006
Location: Alabama
Distribution: pclos, Win 7, Linux lite, Window XP
Posts: 82

Rep: Reputation: 16
mbr overwritten and other problems


I have two hard drives (sda and sdb). I normally use a grub boot manager located on sda7. I installed Fedora and it overwrote the mbr (even though I told it to put grub in the / partition - sdb6). The new boot menu only lists two items. One is fedora and the other is 'other'. So now I am not able to boot into my other distros. When I click on 'other' it boots Windows XP. I am not really versed in the commnands to get back into sda7 and reset the mbr using the the command line. I tried editing the menu options but nothing sticks. I think I have to get to the command line as root but don't know what to do when I get there.

If I could get back into sda7 with the gui then I could reset the mbr.

Can someone get me started in the right direction?

Last edited by houndhen; 01-09-2011 at 04:51 PM. Reason: problem solved
 
Old 01-08-2011, 11:14 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,898

Rep: Reputation: 353Reputation: 353Reputation: 353Reputation: 353
A short-term fix would be to boot Fedora, then mount sda7. Navigate to /boot/grub and open your grub.conf (or menu.lst) file (have to be root to open that file) and copy the part of the config file that contains the menu listings for your other OSs. Paste that into your Fedora /boot/grub/grub.conf. The next time you boot Fedora, you should see the other OSs listed.

Then you can boot into the Linux you normally use and re-install grub to the MBR from that distro.
 
Old 01-09-2011, 12:17 AM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,999

Rep: Reputation: 2219Reputation: 2219Reputation: 2219Reputation: 2219Reputation: 2219Reputation: 2219Reputation: 2219Reputation: 2219Reputation: 2219Reputation: 2219Reputation: 2219
With that list of distros, it's possible (likely) that grub2 may be involved ...
Best is usually to chroot into the disk install (which we don't know) and re-install grub from there. Can sometimes be done as "Boot installed system" or somesuch from an install CD.
On such limited info, hard to advise - go to sf.net and get the bootinfoscript. Run that and post the RESULTS.txt here.
 
Old 01-09-2011, 10:08 AM   #4
houndhen
Member
 
Registered: Aug 2006
Location: Alabama
Distribution: pclos, Win 7, Linux lite, Window XP
Posts: 82

Original Poster
Rep: Reputation: 16
Quote:
go to sf.net and get the bootinfoscript. Run that and post the RESULTS.txt here.
I have attached a file with the results of the bootinfoscript.
Attached Files
File Type: txt RESULTS.txt (68.7 KB, 9 views)
 
Old 01-09-2011, 04:51 PM   #5
houndhen
Member
 
Registered: Aug 2006
Location: Alabama
Distribution: pclos, Win 7, Linux lite, Window XP
Posts: 82

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by syg00 View Post
With that list of distros, it's possible (likely) that grub2 may be involved ...
Best is usually to chroot into the disk install (which we don't know) and re-install grub from there. Can sometimes be done as "Boot installed system" or somesuch from an install CD.
On such limited info, hard to advise - go to sf.net and get the bootinfoscript. Run that and post the RESULTS.txt here.
I have got to study up on chroot and more. Thanks for the help. For some reason in Fedora I was seeing a blank file when looking as a regular user(probably was creating a new file instead of opening the file I thought I was). When I looked as root, I could see the boot menu and edited it enough to get back into sda7 and reset the mbr. I keep doing things and keep learning new things, thanks to forums like yours and the people that monitor the forums.

Thanks, will mark this solved.
Harold
 
  


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
Overwritten MBR sundar22in Linux - Newbie 1 08-30-2007 07:38 AM
GRUB MBR overwritten by WIN98 MBR TOuseef Linux - General 7 11-14-2004 05:25 PM
MBR is overwritten and GRUB is lost satish427 Red Hat 3 10-13-2004 01:48 PM
Reinstalled Windows, MBR overwritten Chapster Linux - Newbie 10 11-30-2003 08:47 AM
?overwritten MBR? sharon63 Linux - Newbie 2 08-21-2003 07:46 PM

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

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