PDA

View Full Version : XP installation has “moved”: ideas on solving.


Paul Komski
05-10-2003, 10:05 PM
Whether by accident or by design, it is possible to have made a WinXP (or W2K) partiton inaccessible by the system no longer recognising either where it is now or what drive letter is assigned to it.

The following are all examples of things that can cause this (there are bound to be others too):-

Installing an earlier version of Windows after the later version is happily installed.
Reinstating partition image files but not to their original positions.
Copying a whole system partition to another part of the drive in order to move its position or create a backup.
Changing the files (notably the 3 bootloaders – boot.ini, ntldr and netdetect.com) in the root of the C partition or by changing the format of C from FAT to NTFS; this means that DOS-based apps can no longer either read or write to it.
Splitting, merging, deleting, converting (esp from FAT to NTFS) or hiding partitions on the drive.
Marking a partition, other than C, as active can also cause related and more intricate problems.
Forcing a changed drive letter for any system partition.

As long as the partition containing the previously working os is not written over or obliterated by formatting, etc then I have always, eventually, been able to get it functioning normally again. Sometimes this has taken a lot of "juggling".

In essence this often means doing a repair installation of XP and for which it is essential that you have the installation CD and know the product key. Remember to enable the BIOS to be able to boot from the CD. It is also recommended to always attempt these repairs by booting to the CD and not running it from within windows; the prompts are harder to read but less confusing. Bad luck if you only have a restore disk or restore files on the HDD; you may then be into the road of using recovery software.

However, the above manouvres can trick the system into not displaying the installation you want to repair and appear to leave you stumped. What may seem strange is that you will usually be able to logon to the problem partition to do a “repair” using the recovery console, but when you try to actually repair the whole installation it does not show up in the list.

I would advise that all the following steps be taken. If you have real important data then backup the whole drive by slaving it to another pc and make an image of it there before starting. As a minimum, backup just the important partitions using something like Norton's Ghost or PQ's DriveImage or DriveCopy.


First make a copy of the three main boot loaders from C onto a floppy. It is wise to have a copy of these in any case. You may have to edit just the boot.ini file manually, but generally the original one will work fine and usually be able to get you back into your system.
Recommend removing any slave drive temporarily so that drive lettering is less likely to get confusing.
With or without this floppy, you may still get a “hal.dll is missing or corrupt” message after attempting to boot.
Now if you can’t get into any OS you will need Partition Magic (or similar) on floppies. Start it and ensure that C: (assuming this is the normal boot partition) is the only active partition. Unhide any hidden partitions (utilities or os installations may have done this hiding during their various processes). Finally I would suggest converting all partitions from NTFS to FAT32 using PM. You can convert them back afterwards when you are ready. Hopefully no file encryption is in place or this wont work. The ideas behing this are to make everything as visible as possible to everything. As a minimum convert C to FAT32 if it is NTFS.
Boot to the install CD and see if your installation is now visible in the list after pressing enter for a new installation. If so then go ahead and repair it.
If that doesn’t work then boot to the CD again but this time to the recovery console. Log on to the relevant installation and run both fixboot and fixmbr from the command prompt.
If still no success then you will need to create a new (or parallel) installation of XP. Hopefully you will have enough room on the HDD (about 1.5GB is the absolute minimun). After this is installed you should have access to your pc again and probably the multiboot options will work normally. The various boot loading processes should however have been corrected. If not, then at least the system should now see your problem installation, so that when you now boot to the install CD it will allow you to repair it at last!

I have spent much of the last 3 days experimenting with these processes so I thought I would post these thoughts on so others can get some help or ideas if needed and also as a reference that I can refer back to as the grey cells die away.

mjc
05-10-2003, 11:02 PM
Paul, I am going to pin this and in a few days copy it over to the FAQ forum.

Paul Komski
05-11-2003, 07:28 AM
Couple of things I didn't mention - the post was long enough.

Marking other than C as active can cause peculiar results when you try to repair from the list of xp installations. This is largely to do with drive letter assignments, which are stored on the HDD and in the registry by the XP installation(s) but also in other markers in the boot process - especially during a new installation, which creates a "temporary" boot sequence and "boot.ini".

Say you have two installations of XP on D and F (C being the active partition containing W9x/me/2k). One of the XPs may not show up in the list available to repair. If at this stage you go and either hide or mark as active one of the XP partitions, you may find that the other one, sometimes both, now appears in the list.

It may however only appear to appear there. You try to repair the one on D and it is the one on F that gets repaired. Both installations might "think" they have the same drive letter but the install setup has to give them different letters and may only actually repair one of them, regardless of which one is chosen.

Make everything "visible and FAT", mark C as active and do another parallel installation somewhere else to correct this and allow you to repair the correct installation. The new parallel install seems to correct all the troublesome drive letter assignments and markers in the boot processes.

You can (and maybe should) try and manually edit the boot.ini file and add an entry for the problem partition before repairing, if your problem installation is not shown in the bootup list. This usually just results in the "hal.dll corrupt" or other message, when it is then selected from the bootup list.

I think the hal.dll error can also appear following certain hardware changes, but this is not something I have researched. Perhaps its something to do with the product activation processes.

None of the above relates to dynamic drive or other drive overlays if they are in place, and which is another possible way to get back into one's inaccessible OS; or NOT of course!

HE HE There are two bonuses from such an experimenting session. One is that one learns ones product key by heart. The other is that "getting ones hands dirty" is really really instructive; unlike the learning from a book or the web, which is useful but second best! ;)

Paul Komski
05-11-2003, 10:25 AM
One note about the lines in boot.ini such as:- multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professional" /fastdetect

The partitions are numbered starting at (1); first all primary partitions; then all logical volumes in the extended primary partition. So (6) would refer to the third logical partition in an extended partition (which itself is not referenced); and even if the extended partition resides, physically, BETWEEN the other primary partitions.

Also, if there is only one option to choose from, then this will be booted into automatically without showing the options at startup - even if the timeout is, say, 30. If you don't want the options to timeout then set the value to -1 and the options will stay displayed until one is chosen.

Oh - and some references (after reading The PC Guide (http://www.pcguide.com/ref/hdd/file/struct.htm) of course!)

Multibooting Windows from an Extended Partition
http://www.goodells.net/multiboot/index.htm

Inside the Boot Process, Part 1
http://www.winntmag.com/Articles/Index.cfm?ArticleID=3952&pg=1&show=824

Boot INI Options Reference
http://www.sysinternals.com/ntw2k/info/bootini.shtml

How to create a Windows NT 4.0, 2000 or XP boot floppy disk
http://www.nu2.nu/bootdisk/ntboot/

Track Your Boot Process
http://www.techtv.com/callforhelp/freefile/story/0,24330,3417054,00.html


And a utility for re-writing boot.ini if you are all NTFS and cant "get in".

Fixing Windows 2000/XP BOOT.INI Files
http://www.goodells.net/multiboot/editbini.htm


PS Have also discovered that Partition Magic and Drive Image (the latest versions anyway) will automatically update the boot.ini file after deleting or restoring a partition containing an OS.

abbey477
05-12-2003, 08:56 AM
Paul,
You guys are masters and the computer are babies.... I have been able to fix the problem with my computer not shutting down due to CD creator installed. I went to roxio.com and downloaded the driver update and lovely PC sleeps like a baby when I shut it down. However I am still moving along you guys tracks. Mind you I take my time to scavenge around for all the Great Masters works where ever posted.

Thanx
Abbey

abbey477
05-12-2003, 09:14 AM
Paul,
You guys are masters and the computer are babies.... I have been able to fix the problem with my computer not shutting down due to CD creator installed. I went to roxio.com and downloaded the driver update and lovely PC sleeps like a baby when I shut it down. However I am still moving along you guys tracks. Mind you I take my time to scavenge around for all the Great Masters works where ever posted.

Thanx
Abbey

abbey477
05-12-2003, 09:21 AM
Paul,
You guys are masters and the computer are babies.... I have been able to fix the problem with my computer not shutting down due to CD creator installed. I went to roxio.com and downloaded the driver update and lovely PC sleeps like a baby when I shut it down. However I am still moving along you guys tracks. Mind you I take my time to scavenge around for all the Great Masters works where ever posted.

Thanx
Abbey

ShardOfJustice
06-27-2003, 12:31 AM
I think we get it already:rolleyes:

rond36
11-13-2003, 03:32 PM
Here is another link that should be added to this thread MSKB 289022 how to edit boot.ini (http://support.microsoft.com/?kbid=289022)

rond36
07-10-2004, 11:36 PM
Here are some more:

How to multi-boot Windows XP (http://www.microsoft.com/windowsxp/pro/using/howto/gettingstarted/multiboot.asp)
Microsoft Expert Zone Multi-booting made easy (http://www.microsoft.com/windowsxp/expertzone/columns/russel/september10.asp)
MSKB How to multi-boot Windows XP (http://support.microsoft.com/default.aspx?scid=kb;EN-US;q306559)


Microsoft's instructions on how to use Fdisk and Format (http://support.microsoft.com/default.aspx?scid=kb;EN-US;q255867)

AbuKing
11-20-2004, 11:34 PM
Good Post, Thanx.

sean69
03-26-2005, 12:28 AM
Paul, you are a wealth of information as I remembered...congrats on moding here- you deserve it.

mrmomaz
04-21-2006, 01:04 PM
XP installation has “moved”: ideas on solving. Congrats to Paul and Rond36 and to unnamed others who have created such a work of art -- thanks for sharing this wealth of knowledge with us. :)

mrmomaz
11-01-2006, 12:34 AM
[QUOTE=Paul Komski;127562]
Boot INI Options Reference
http://www.sysinternals.com/ntw2k/info/bootini.shtml

this seems to be a bad link :(

mrmomaz
11-01-2006, 01:54 AM
[QUOTE=Paul Komski;127562]
Boot INI Options Reference
http://www.sysinternals.com/ntw2k/info/bootini.shtml

this seems to be a bad link :(

jacqia77
01-07-2007, 12:56 PM
I'm new. I'll copy the above post & keep it for future reading. I'm not really into computer jargons as most of the time the advice I gave are in layman terms. But I'm learning the 'art' of computers. Great to be here.

Paul Komski
03-21-2007, 05:50 PM
I have unstuck this thread and replaced it with a new sticky at:
http://www.pcguide.com/vb/showthread.php?t=55329