Tip

Changing the boot drive letter in Win2000

One of the many holdovers from the days of DOS in Windows 2000 is drive lettering. Windows 2000 generally handles drive lettering automatically and seamlessly, but there may arise a situation where you need to change the drive letter of the boot drive to something other than its default setting.

Because there are many dependencies throughout the system on the boot drive letter, this is not a trivial operation and it can render your system unbootable if you are not careful. For that reason, before you perform this kind of surgery, you should make a full system and System State backup in case something does go wrong. Also, have a utility that can perform mass search-and-replace operations in the Registry, such as

    Requires Free Membership to View

Resplendent Registrar on hand.

  1. Log in as Administrator and run REGEDT32.

     

  2. Open the key HKEY_LOCAL_MACHINE\SYSTEM\MountedDevices.

     

  3. Select Permissions from the Security menu and make a note of the existing settings, as you will be changing them back when you are done.

     

  4. Make sure Administrators have Full Control over the selected key and click OK.

     

  5. Close REGEDT32 and open REGEDIT (not REGEDT32!)

     

  6. Go back to HKEY_LOCAL_MACHINE\SYSTEM\MountedDevices and find the drive whose letter you want to change. If you want to change C:, look for "\DosDevices\C:".

     

  7. Select the key in question and rename it to an unused drive letter, such as "\DosDevices\Z:". If Z: is in use, obviously, don't use that.

     

  8. Find the drive letter you want to swap in and edit that to match the first drive letter. For instance, if you were changing C: to D:, change "\DosDevices\D:" to "\Dos\Devices\C:\
  9. Rename the "Z:" or other temporary drive letter you used to the name of the 2nd drive. Again, as above, if you were swapping C: and D:, set "\DosDevices\Z:" to "\DosDevices\D:".

     

  10. Close REGEDIT, reopen REGEDT32, and reset the permissions on the key as before.

     

  11. Go to the key HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\Current Version\Winlogon\ and look for a REG_SZ subkey named Userinit. It will most likely be set to "C:\Winnt\System32\userinit.exe" if you were using C: as your boot drive before. Change it to match the new drive lettering. (Note: You can also simply replace the full pathname to the application with "userinit.exe", which will cause Windows to search for the application using the standard search order. Microsoft recommends this approach.)
  12. Optional: Use a global search-and-replace on the Registry to change any application paths specified in the Registry that may break because of the drive letter reassignment.

Serdar Yegulalp is the editor of the Windows 2000 Power Users Newsletter.


This was first published in November 2002

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

Disclaimer: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.