LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
LinkBack Search this Thread
Old 05-07-2004, 11:58 AM   #1
mher
LQ Newbie
 
Registered: May 2004
Posts: 1

Rep: Reputation: 0
Recovering Master Boot Record


Recovering Master Boot Record

In the past I had two OS in my computer:Windows XP and Linux. With GRUB I could choose which OS to boot. But after reinstalling Windows XP I can not use Linux. How can I recover my MBR to boot both OS?

Thank you very match.
 
Old 05-07-2004, 02:27 PM   #2
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
If you have a bootable CD that has grub on it you can use that. I would use one of the Mandrake CD's. I know this works with Mandrake 9.1 and 9.2. Put the first cd in and press whatever you have to to get to a command prompt then run grub
Code:
grub
> root (hd0,5)
> setup (hd0)
quit
That would be if the root partition is on /dev/hda6 . That's to point it to the location of /boot/grub/menu.lst . Grub counts from 0 so all numbers are 1 less than you're used to. Also, it uses letters, not numbers (again, counting from 0 so subtract 1). So /dev/hdb3 would be (hd1,2) and /dev/hda9 would be (hd0,8). If you can't remember what partitions are there run fdisk -l
 
  


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 On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Restoring Master Boot Record ? ady Linux - Laptop and Netbook 7 06-19-2006 04:33 AM
master boot record help sfr7 Linux - Laptop and Netbook 10 04-25-2004 08:52 AM
Master Boot Record linuxuser05 Linux - General 3 01-11-2004 06:57 PM
master boot record alaios Linux - General 1 04-22-2003 08:41 AM
master boot record dark_light Linux - General 11 07-03-2002 05:21 AM


All times are GMT -5. The time now is 02:45 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration