Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - General
User Name
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.


  Search this Thread
Old 05-07-2004, 12:58 PM   #1
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, 03: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
> root (hd0,5)
> setup (hd0)
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


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

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

All times are GMT -5. The time now is 01:17 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration