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
  • 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

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.

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Windows startup/shutdown date/time log 7 126
How to stop a Microsoft scheduled Windows 10 upgrade 16 114
move Windows 10 apps to diff disk 39 141
no display on laptop 5 74
Are you unable to synchronize your OST (Offline Storage Table) file with Microsoft Exchange Server? Is your OST file exceeding 2 GB size limit? In Microsoft Outlook 2002 and earlier versions, there is a 2 GB size limit for the OST file. If the file …
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…
A short film showing how OnPage and Connectwise integration works.
This is a video that shows how the OnPage alerts system integrates into ConnectWise, how a trigger is set, how a page is sent via the trigger, and how the SENT, DELIVERED, READ & REPLIED receipts get entered into the internal tab of the ConnectWise …

919 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now