Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 07-16-2003, 10:28 AM   #1
LQ Newbie
Registered: Jul 2003
Posts: 4

Rep: Reputation: 0
Question What happened to my MBR?

I installed Mandrake 9.1 on the second partition (on the first one i have xp, and i have another xp on the third partition for backup). In the installation process i installed lilo on hda2! When i rebooted, the Linux boot menu showed, and when i choose windows, then comes the windows boot menu. Could somebody explain what happend to my MBR and what will happen if i delete Linux, 'course i have lots of problems with Mandrake and i'm thinking about installing Linux as a virtual machine and deleting the linux partition!
Old 07-16-2003, 10:34 AM   #2
LQ Addict
Registered: Jul 2002
Location: Montreal
Distribution: Gentoo 2004 from stage 1 baby!
Posts: 1,403

Rep: Reputation: 45
Lilo is installed on your MBR,

If you uninstall linux, the part of lilo that's in the MBR will still be there but you can remove it after...

I don't know about windows XP but if you have windows 98 or something I know all it takes is a boot disk and

fdisk /mbr or something like that.
Old 07-16-2003, 03:06 PM   #3
LQ Newbie
Registered: Jul 2003
Location: Kuala Lumpur,MY
Posts: 4

Rep: Reputation: 0
Fixing MBR with WindozXP CD.

1)Using partition software such as Partition MagicŪ,delete the Linux partition and distributed the free space among your existing partitions.
2)Insert your WinXP CD in your CD-ROM and enable CD-Boot in your BIOS.
3)After CD loadup process finished, you will get the Setup menu.
4)Press R to enter the Recovery Console.
5)Choose the drive where you install your windows.
6)Insert your administrator password.
7)At the console, type fixmbr
8)Press Y for all questions.
9)Reboot the Zion..oopss the PC
10)And Walla!! your MasterBootRecord has come back to normal.
Old 07-17-2003, 02:02 PM   #4
Senior Member
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104

Rep: Reputation: 45
Hi Kavelj

In general - The MBR is just the boot sector on your 1st hard drive - it's simply a tiny area that the BIOS is preconfigured to have the option of checking for a bootloader - so your MBR is still there whether its got a Windows or Linux bootloader in it. - you said you installed both Linux and LILO on hda2 - if thats the case then LILO is not in your MBR - its in the boot sector of the 2nd partiton on your drive.

For this scenario where you've got Linux sandwiched between 2 XP partitions I'd use Powerquests Partition magic to delete HDA2

Anthrax has covered the rest.


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
MBR zeroed. Can I verify backup MBR? TomF Linux - General 7 06-20-2005 05:28 PM
by tring to fix the MBR i damage the MBR that was help... AKAKAK Fedora 4 03-21-2005 08:18 AM
GRUB MBR overwritten by WIN98 MBR TOuseef Linux - General 7 11-14-2004 04:25 PM
why won't my mbr fdisk /mbr? jamessp007 Mandriva 13 01-03-2004 01:41 AM
mbr had over write so lilo is gone how to rewrite lilo to mbr mch Linux - Software 4 10-25-2002 02:55 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:47 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
Open Source Consulting | Domain Registration