Download your favorite Linux distribution at LQ ISO.
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 11-19-2004, 01:32 PM   #1
LQ Newbie
Registered: Mar 2004
Posts: 6

Rep: Reputation: 0
Question How to fix grub after removing linux partition

Before you guys yell at me "why not linux?", let me explain my situation first:

I have two PC's and both are set to dual boot mandrake 10 official/win xp. I have decided to erase the mandrake partition on my AMD 3000+ machine so that I can install more PC games (say hi to half life 2!) to it. If I want to use Mandrake, I can always go back to the slower P4 1.6G.

My question is: how do I fix grub (better yet, erase it) after Mandrake is erased? I know there are several possible solutions:

1. boot with mandrake cd 1 and fix MBR;
2. boot with win xp cd and fix MBR;
3. boot with win98 floppy and fix MBR.

I dont know which one really works and since I have too much data on my hd to back up, I need a CORRECT answer, not an educated guess. Can somebody help me please?

Old 11-19-2004, 01:41 PM   #2
Senior Member
Registered: Mar 2004
Location: Munich
Distribution: Ubuntu
Posts: 3,513

Rep: Reputation: 58
1. don't know if this will work

2.+3.:from SuSE SDB (works also with Mandrake)

Using Windows XP

In Windows XP, you can uninstall GRUB as follows:
Boot from the Windows XP CD and press the "R" key during the setup in order to start the Recovery Console. Select your Windows XP installation from the list and enter the administrator password. At the input prompt, enter the command "FIXMBR" and confirm the query with "y". The MBR will be rewritten and GRUB will be uninstalled. Press "exit" to reboot the computer.

Using a DOS or Windows 9x/ME Boot Floppy

In case you have DOS or Windows 9x/ME on your system, you can use fdisk for this purpose. Create a rescue disk in DOS or Windows 9x/ME, use it to boot the computer, and execute fdisk as follows:

fdisk /mbr

The MBR will be rewritten and GRUB will be uninstalled.

Last edited by abisko00; 11-19-2004 at 01:42 PM.
Old 11-19-2004, 02:03 PM   #3
LQ Newbie
Registered: Mar 2004
Posts: 6

Original Poster
Rep: Reputation: 0
Wow that was fast. So it looks like options 2 and 3 actually work, although I have heard some horror stories about people getting their data lost forever.

Thanks a lot!
Old 11-19-2004, 06:09 PM   #4
Senior Member
Registered: Nov 2003
Location: NB,Canada
Distribution: Something alpha or beta, binary or source...
Posts: 2,280
Blog Entries: 4

Rep: Reputation: 47
2 works
3 doesn't really, as it makes a win98 MBR, when you need NTLDR
Do exactly what abisko00 has quoted with your XP cd and you'll be back in business in minutes. If you're not boot back into the cd a go to Recovery Console again and type "fixboot" then "fixmbr". You'll be back in Win32 once again....

....and, hey, who's yelling? mandy can handle that slower computer better anyhow. LOL (couldn't resist)


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
Removing linux partition crash89 Linux - Newbie 7 02-20-2008 05:05 PM
all attempts to fix the problem failed... can someone help me fix partition space? foreverdita Linux - Enterprise 2 05-11-2005 10:02 AM
Removing GRUB-LINUX? HELP!.. fiber32 Linux - Newbie 8 09-21-2004 09:06 AM
Uninstalling Linux, Removing GRUB Farewell Linux - Newbie 2 02-27-2004 01:35 PM
removing linux partition juanb Linux - Newbie 2 02-27-2004 06:35 AM > Forums > Linux Forums > Linux - Newbie

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