News:

Ramadan Mubarak!

I pray that we get the full blessings of Ramadan and may Allah (SWT) grant us more blessings in the year to come.
Amin Summa Amin.

Ramadan Kareem,

Main Menu

Uninstalling the Boot Manager GRUB from the MBR

Started by sdanyaro, February 02, 2004, 07:02:54 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

sdanyaro

How to uninstall GRUB from the MBR (Master Boot Record) of the hard disk.

----------
As GRUB does not make any backup of the MBR during the installation, it can only be uninstalled by overwriting the MBR with another boot manager. Therefore, the MBR must be rewritten using a different operating system.


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.

Using an OS/2 Boot Floppy
-------------------------
If you use OS/2, the corresponding command is:
fdisk /newmbr

Using Windows XP
-----------------
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 Windows 2000
-------------------
Boot from the Windows 2000 CD and press the "R" key during the setup and the "K" key in the following menu in order to start the Recovery Console. Select your Windows 2000 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.


The process described above is applicable to both LILO and GRUB.

Note that in case of LILO, there is the additional option of uninstalling it from within linux by running (as root)
CODE
lilo -u