Go Premium for a chance to win a PS4. Enter to Win


Windows XP boot problems after Linux partition deletion

Posted on 2006-10-23
Medium Priority
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
  • 3
  • 2
  • 2
  • +2
LVL 70

Accepted Solution

Merete earned 1500 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

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

Independent Software Vendors: 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

Disclosure: Use this tutorial only when no other options helps to get Windows XP running without any problems and you don't want to format the drive. The back up of the data is the responsible of the user, however there is a description of how t…
Can you find a fax from a vendor you saved a decade ago in seconds? Have you ever cursed your PC under your breath during an audit because you couldn’t find the requested statement or driver history?  If you answered no to the first question or yes …
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…

971 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