Fix an incorrect boot drive letter in Windows XP
Comments: 1 - Date: February 3rd, 2008 - Categories: How-To's, Windows
Okay, here’s the situation. When I first installed Windows XP, I had a flash drive attached to one of my USB ports. This flash drive was assigned the letter C, so my hard drive was assigned E. This had never been a problem until a few days ago when I added another partition to the drive. I had since removed the flash drive, so when the partition table was changed, the drive letter of my Windows installation changed to C, since it was now available.
When I started Windows, it would stick at the welcome screen. This is because all of the paths used by Windows point to the E drive, so windows couldn’t find any of the files it was looking for and therefore couldn’t boot. Unfortunately, at this point I hadn’t yet realized that my drive letter had changed. All I knew is that my system would no longer boot, so I ran a repair install of Windows XP. This took far longer than a normal repair installation. The install was stuck at the “27 minutes to go” point for at least thirty minutes. Once the repair install was complete, I was able to boot into Windows, though it took several minutes to get past the welcome screen. The repair install set all of the Windows paths to point to C, so the system was able to boot, but all of my applications still pointed to E.
The next step was to correct the drive letter of the boot volume. From this article, I found the following instructions (modified slightly for my drive letters):
1. Make a full system backup of the computer and system state.
2. Log on as an Administrator.
3. Start Regedt32.exe.
4. Go to the following registry key:
HKEY_LOCAL_MACHINE\SYSTEM\MountedDevices
5. Click MountedDevices.
6. On the Security menu, click Permissions.
7. Verify that Administrators have full control. Change this back when you are finished with these steps.
8. Quit Regedt32.exe, and then start Regedit.exe.
9. Locate the following registry key:
HKEY_LOCAL_MACHINE\SYSTEM\MountedDevices
10. Find the drive letter you want to change to (new). Look for “\DosDevices\E:”.
11. Right-click \DosDevices\C:, and then click Rename.Note You must use Regedit instead of Regedt32 to rename this registry key.
12. Rename it to an unused drive letter “\DosDevices\Z:”.This frees up drive letter E.
13. Find the drive letter you want changed. Look for “\DosDevices\C:”.
14. Right-click \DosDevices\C:, and then click Rename.
15. Rename it to the appropriate (new) drive letter “\DosDevices\E:”.
16. Click the value for \DosDevices\Z:, click Rename, and then name it back to “\DosDevices\C:”.
17. Quit Regedit, and then start Regedt32.
18. Change the permissions back to the previous setting for Administrators (this should probably be Read Only).
19. Restart the computer.
Upon reboot, my computer again would not go past the welcome screen. This is because all of the Windows paths now pointed to the C drive, thanks to the repair install, but the boot drive was once again set to E. So now I had to do another repair install of XP in order to get all of the Windows paths to point to the correct drive letter. Fortunately, the repair didn’t take as long the second time as it did the first time. Once the repair was complete, the system restarted and booted perfectly. Everything was as it was with the exception of AVG Free, which wanted me to reenter my license information, which I didn’t have because it’s the free version. A reinstall of AVG fixed this issue.
I’m now keeping my flash drive attached to the computer at all times, just in case I ever change the partition table again. Presumably, the flash drive will retain the C drive letter and the Windows boot partition won’t change.
I’m glad this is over with.
Comment by miranto - 11 July 2008 @ 3:18 am
Hey found your link while having the same problem, see if you can help me I have a 500gb HD split into a 65 and a 400 partitions which were c: and D: being the system c: the 65gb, recently I had a virus problem, and backed up my few c: items and formatted but now i have this 2 partitions switched drive letter, when i found the microsoft kb about changing drive letter i tried it and got stuck with the welcome screen, but when tried the repair install it would get stuck as you said but i didn’t wait half an hour, immediately i restarted and reformatted again. My question is, if I leave the repair until it finishes, since i did the “changing boot letter” procedure before repair, do you think it will work properly now back to c:?? because i just don’t want to reformat again hehe it takes time to reinstall my software. hehe
Leave a comment
You must be logged in to post a comment.
Categories
Recent Posts
Search
Links
Design © 2006 by the undersigned | Theme sponsor: Fresh Flowers Direct (http://www.digitalflowers.com)