Windows XP boot problems after Linux partition deletion

Posted on 2006-10-23
Last Modified: 2008-01-09
Hey everyone,

My problem is this - I have a dual-boot machine, one partition with Windows XP, and one with Fedora Core 4. I decided to delete the partition with FC4 using Norton Partition Magic, to make room for FC5. Seems this was a 'school boy error', as upon rebooting, the regular OS selection menu no longer appears, but simply lands me at a command line for GRUB. I didn't understand what I could do using that to get back into Windows, so I restarted with the Windows XP CD in my drive, booted from the CD drive, and went into the recovery console. After looking at the available options, I tried bootcfg /scan, to find existing Windows installations I could add to the boot sequence, but it said "Error: Failed to successfully scan disks for Windows installations. This error may be caused by a corrupt file system". It suggested to use chkdsk, which I did, which reported an error on the disk (though it did not mention if it had fixed it). I tried bootcfg /scan again, but with the same result. Then I tried fixboot. It said the bootsector was corrupt, but that it had successfully written a new bootsector. I restarted - the problem was not fixed - so I went back into the recovery console. Now, when I loaded the recovery console, it seemed to detect my Windows installation, and asked me if I wanted to logon to it. I said yes, but this still leaves you at the recovery console prompt (but this time at C:\Windows). I'm kind of stuck for what to do now to reinstate the proper boot sequence to get into Windows. I tried bootcfg /rebuild and bootcfg /add, and it still gives me an error about a corrupt file system, even though the recovery console has successfully detected my existing windows installation.

Any ideas how to fix this? Thanks in advance!
Question by:PeterJK1983
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
  • 2
  • +2
LVL 70

Accepted Solution

Merete earned 500 total points
ID: 17787341
hmm a few ..
You need to go into the BIOS and set the CD to be the first device to boot, put the hard drive second.
Do you have Windows installed already? If so, boot from the CD, enter the recovery console (press R when it asks you whether you want to install windows etc.) When you're at the console, type:

Try a windows repair below.
and that will remove GRUB from your system.

Here is my 3 R's as a starting point.

Rebuild configuration thru recovery
  Boot from a Windows XP CD.

    2.       At the next screen press "R" to repair using the Recovery Console.

    3.       Press the number correlated with the Windows installation you want to fix. Typically this will be #1.

    4.       In the Administrator password press [ENTER] if you have not set a password for it.

    5.       Type bootcfg /list to see all the entries in the boot.ini file.

    You could get the message:

    “There are currently no boot entries available to display”

    6.       Type bootcfg /rebuild to fix it.

    You will be prompted to answer the question

    “Add installation to boot list (Yes/No/All)” press “Y”

    7.       Under “Enter Load Identifier:” type the name of your operating system (i.e. Microsoft Windows XP Home Edition).

    8.       For “Enter OS Load Options:” usually the value is “/fastdetect” (without quotation marks).

    9.       Take out the Windows XP CD and type exit.


Suggestion 2:

    hal.dll file missing


    1.       Boot from a Windows XP CD.

    2.       At the next screen press “R” to repair using the Recovery Console.

    3.       Press the number correlated with the Windows installation you want to fix. Typically this will be #1.

    4.       In the “Administrator password” press [ENTER] if you have not set a password for it.

    5.       Type:

    expand x:\i386\hal.dl_ y:\windows\system32\hall.dll

    where “x” is the letter of your CD-ROM and “y” the letter of the drive your operating system is installed on.

    6.       Take out the Windows XP CD and type exit

second choice REPAIR:
perform a reinstallation of Windows XP, sometimes called a repair installation?

Configure your computer to start from the CD-ROM drive. Then insert your Windows XP Setup CD, and restart your computer.

When the Press any key to boot from CD message is displayed on your screen, press a key to start your computer from the Windows XP CD.
Press ENTER when you see the message To setup Windows XP now, and then press ENTER displayed on the Welcome to Setup screen.
 Do not choose the option to press R to use the Recovery Console.
In the Windows XP Licensing Agreement, press F8 to agree to the license agreement.
 Make sure that your current installation of Windows XP is selected in the box, and then press R to repair Windows XP.
 Follow the instructions on the screen to complete Setup.

 Here is some extra help illustrating the steps look below the typing.

Author Comment

ID: 17787355
Thanks, I will try your solutions when I get an opportunity. Unfortunately I won't have access to my machine for a number of hours, but as soon as I do, I will try these and report back. If any work, I will of course accept your solution. Thanks again!
LVL 38

Expert Comment

ID: 17787571
Try this method:


With a  Winxp or win2000 CD  you can uninstall GRUB as follows:
Boot from the  CD and press the "R" key during the setup in order to start the Recovery Console. Select your 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

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!

LVL 70

Expert Comment

ID: 17787795
hmm  did I miss something in my suggestion younghv
apart from the >enter the administrator password< your suggestion doesnt really show any new ideas.

LVL 38

Expert Comment

ID: 17787823
Gee Merete,
I don't really know - I got kind of confused trying to read through your 35-40 lines of 'Suggestions' and 'Choices'.

You have a real nice day.
LVL 22

Expert Comment

ID: 17787966
Just a thought ... since it appears to be your  boot loader that is having a problem, what about just doing the FC5 install onto the partitional that used to have FC4 ... this should restore your MBR and get you back up and running.

If you don't have the FC5 yet, try just going back to FC4.

Just thought it might be easuer than trying to fix this with so many other steps.
LVL 15

Expert Comment

ID: 17788629
Young is correct all they did was load the boot loader into the MBR and now grub fails out because there is no linux partition that it is looking to boot from.  FIXMBR from the recovery console will get the job done.

Author Comment

ID: 17789997
Thanks for all the responses guys - fixmbr worked. Merete was the first to suggest this solution - thanks again to you all for the contributions, it's much appreciated.
LVL 70

Expert Comment

ID: 17791654
cool :)

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Ok I have been working on this for some time having learned and gained certification in XenDesktop 4 along came version 5 which was released last month. Since then I have been working to deploy XenDesktop 5 in a small environment with only 2 virt…
If you have done a reformat of your hard drive and proceeded to do a successful Windows XP installation, you may notice that a choice between two operating systems when you start up the machine. Here is how to get rid of this: Click Start Clic…
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…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

756 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