Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


Can I restore the boot loader for XP?  Currently GRUB.

Posted on 2003-03-02
Medium Priority
Last Modified: 2012-08-13
Is there a way that i can restore the boot loader on my HD? I had linux on, and it installed GRUB. But i have already removed linux and all of tis partitions. Using fdisk i made the main partition(only 2) bootable (all fat32). Basically is there something i can download and run off of a bootdisk to change the boot loader? I do not have a backup of the OLD, pre-linux MBR.

And i know it doesnt fit this question area, but if this isnt possible, then does anyone know if i could just set up GRUB to only run windows, and never ask? I figured theres a way, but im not sure how to tell it where a boot config file would be, or what to put in it for windows XP.

Thanks alot if you answer this!
-Kris Healey
Question by:healeyx76
  • 3
LVL 44

Expert Comment

ID: 8054556
Well this is about lilo

How to Remove the Linux LILO Boot Managerhttp://support.microsoft.com/default.aspx?scid=kb;en-us;315224


The information in this article applies to:
Microsoft Windows XP Home Edition
Microsoft Windows XP Professional
Microsoft Windows XP 64-Bit Edition

This article was previously published under Q315224

This article describes how to remove the Linux LILO boot manager from the master boot record (MBR).

If Linux is installed on your computer, Linux allows a dual boot by loading a boot manager called LILO directly into the MBR. To remove LILO, follow the appropriate procedure.
If Linux Is Still Installed
At a command prompt, run the lilo command and use either the -u or the -U option. The device name must be the second parameter. The only difference between the two options is that -u checks the time stamp on the current MBR and on the backed-up MBR, and -U does not check the time stamp at all.
If LILO is installed to the MBR of the master drive on the primary IDE controller, type
lilo -u /dev/hda

where dev is the device directory, hd indicates an IDE hard disk, and the a option indicates the master on the primary IDE channel.

If you want to use the command on a SCSI drive, type
lilo -u /dev/sda

where sd indicates a SCSI drive and a indicates the first drive in the SCSI chain.

If the drive has multiple partitions, indicate the partition from which you want to uninstall LILO by adding the number that corresponds to the partition number on the drive, starting the count at 1 (not 0). For example, to remove LILO from the first partition of the first SCSI drive, type:
lilo -u /dev/sda1

Note that sda is not related to the SCSI ID number.
If Linux Is Not Still Installed
NOTE: The following procedure is not supported by Microsoft and is performed strictly at the discretion of the user. Microsoft assumes no liability for lost or corrupted data. This procedure should be performed only as a last resort.

IMPORTANT: Running fdisk /mbr removes the disk signature from the MBR. If the drive is a member of a Windows fault tolerance set, the drive is no longer recognized as a member of that set.
Boot to MS-DOS, and then type the following:
fdisk /mbr

Restart your computer.
The third-party products that are discussed in this article are manufactured by companies that are independent of Microsoft. Microsoft makes no warranty, implied or otherwise, regarding the performance or reliability of these products.

Last Reviewed: 2/7/2002
Keywords: kb3rdparty kbinfo kbsetup KB315224

COPYRIGHT NOTICE. Copyright 2002 Microsoft Corporation, One Microsoft Way, Redmond, Washington 98052-6399 U.S.A. All rights reserved.
LVL 44

Accepted Solution

CrazyOne earned 160 total points
ID: 8054560
You could try this

Boot from the XP CD, get into the Recovery Console, and type the following commands:

COPY CDDrive:\I386\NTLDR C:\
BOOTCFG /rebuild

To start the Windows Recovery Console, use any of the following methods:
Start your computer by using the Windows Setup floppy disks or the Windows CD-ROM. At the "Welcome to Setup" screen, press F10 or press R to repair, and start the Windows Recovery Console.
LVL 44

Expert Comment

ID: 8054563

How to Perform an In-Place Upgrade (Reinstallation) of Windows XP

Visual aid to the above procedure
Click on How To Run a Repair Install

Repairing the Windows® XP Boot Loader

Assisted Solution

inham earned 140 total points
ID: 8055596
To remove GRUB (boot menu);
Boot from a boot floppy (98/Me/XP...)
A:\>fdisk /mbr

To restore GRUB;
Boot from Linux Boot Disk, if you have any.
Once you get to the # prompt, type
#grub-install /dev/hda

If you don't have the boot disk, boot from CDROM, go to Linux Rescue mode and type
#grub-install /dev/hda

You cannot use GRUB to boot from Windows XP (or any version); GRUB merely passes the boot up to Windows boot loader (Uses Chainloader) when you select to boot on DOS (or Windows).
Similarly, you cannot use Windows' Boot.ini to boot to Linux.

Check out the grub.conf file in Linux.


Expert Comment

ID: 9066546
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
Post your closing recommendations!  No comment means you don't care.

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

cPanel is a Unix based web hosting control panel that provides a graphical interface and automation tools designed to simplify the process of hosting a web site. cPanel utilizes a 3 tier structure that provides functionality for administrators, rese…
Step by step guide to Clean and Sort your windows registry! Introduction: Always remember: A Clean registry = Better performance = Save your invaluable time In this article we're going to clear our registry manually! Yes, manually! The e…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Suggested Courses

572 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question