Solved

Windows XP boot problems after Linux partition deletion

Posted on 2006-10-23
9
789 Views
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!
0
Comment
Question by:PeterJK1983
  • 3
  • 2
  • 2
  • +2
9 Comments
 
LVL 69

Accepted Solution

by:
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:
fixmbr

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.

http://www.webtree.ca/windowsxp/repair_xp.htm
0
 

Author Comment

by:PeterJK1983
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!
0
 
LVL 38

Expert Comment

by:younghv
ID: 17787571
Peter,
Try this method:

REMOVE GRUB

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


Vic
0
 
LVL 69

Expert Comment

by:Merete
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.


0
6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

 
LVL 38

Expert Comment

by:younghv
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.
0
 
LVL 22

Expert Comment

by:cj_1969
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.
0
 
LVL 15

Expert Comment

by:venom96737
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.
0
 

Author Comment

by:PeterJK1983
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.
0
 
LVL 69

Expert Comment

by:Merete
ID: 17791654
cool :)
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

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…
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 …
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

708 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

14 Experts available now in Live!

Get 1:1 Help Now