Jan
9
2007

Change drive letter on a boot device



Comments available as RSS 2.0

I've been running Vista and XP side by side for a few months now, and what I designated as a small partition has slowly got bigger and bigger until there was no space left on my Vista partition, so today I decided to re-jig my partitions. No problem, but due to the lack of partition managers for Vista, I had to boot back to XP and fire up Partition Magic. The problem started when I tried to boot back to Vista, which gave me loads of errors about files not being found before refusing to boot. I was pretty baffled by this point, because from XP I could see that the files that Vista was complaining were missing were right there where they were supposed to be. To fix Vista, I had to boot from the install CD and use the automated recovery tool, but then when I started Vista, my drive letters were all wrong. Now I could see which partitions matched which drive letters, but windows wouldn’t let me change them because they were for the system drive. After a good two hours of trawling through technet, I eventually found a solution:

1. Go to the following registry key:
HKEY_LOCAL_MACHINE\SYSTEM\MountedDevices
2. Find the drive letter you want to change to (new). Look for "\DosDevices\C:".
3. Rename it to an unused drive letter "\DosDevices\Z:".
This frees up drive letter C.
4. Find the drive letter you want changed. Look for "\DosDevices\D:".
5. Rename it to the appropriate (new) drive letter "\DosDevices\C:".
6. Click the value for \DosDevices\Z:, click Rename, and then name it back to "\DosDevices\D:".

MS KB article

Like this post? Tell someone!
  • Digg
  • StumbleUpon
  • del.icio.us
  • Facebook
  • Google
  • Technorati

Comments

  1. 1 alex

    Thx mate!
    Thats what I looked for!

  2. 2 Jim

    Thanks a lot. I've been looking for this.

  3. 3 Carric

    Yep; I am amazed it was that easy. I had imaged a 30G to a 80G drive, and Windows was hosed on bootup (C: and D: had switched places). This little regedit did the trick!!

  4. 4 Ultimate Tomato

    That worked! And so simple.
    Thanks!

  5. 5 Nathan

    Thanks champ! I was just about ready to boot in to another OS and swap both of the drive letters at the same time, that would’ve been a pain!

  6. 6 mr x

    That’s all fine and dandy, but I hope the drive letter swap is done immediately after a fresh install! Why you ask? Well keep in mind any software that was installed with the mixed up letters will point to the new drive contents and more than likely will error out or crash. Also, all those shortcuts on your desktop, and in the start menu will also be pointing to the wrong drive. I have found it easier just to live with the stupid vista drive letter swap. Just my 2c!

  7. 7 Echilon

    If you’re going to change the drive letter, you’d change it after a fresh install anyway. The same problem happens if you move your program files directory to another partition and don’t copy the Microsoft apps installed in C:\Program Files\ to the new directory.

  8. 8 Highlander

    My Vista installed on J: Drive for some reason. I have a couple of programs that give me an error as they want the operating system to be installed on C: Drive. Will this solution work for me - I have a lot of programs installed on the drive and it is fully mirrored (a good thing in that I have had two failed 500 gig seagate drives so far)
    Thanks for any thoughts

  9. 9 Highlander

    My Vista installed on J: Drive for some reason. I have a couple of programs that give me an error as they want the operating system to be installed on C: Drive. Will this solution work for me - I have a lot of programs installed on the drive and it is fully mirrored (a good thing in that I have had two failed 500 gig seagate drives so far)
    Thanks for any thoughts

  10. 10 Echilon

    If all of your data's mirrored onto the new partition, you shouldn't have any problems.

  11. 11 Echilon

    If all of your data's mirrored onto the new partition, you shouldn't have any problems.

  12. 12 Highlander

    My Vista installed on J: Drive for some reason. I have a couple of programs that give me an error as they want the operating system to be installed on C: Drive. Will this solution work for me - I have a lot of programs installed on the drive and it is fully mirrored (a good thing in that I have had two failed 500 gig seagate drives so far)
    Thanks for any thoughts

  13. 13 Echilon

    If all of your data’s mirrored onto the new partition, you shouldn’t have any problems.

  14. 14 bod

    didnt work for me, i changed drive letters as above but now when boots takes a few minutes with message on screen saying preparing desktop then just get blank desktop screen with mouse pointer!!!!!!

  15. 15 Echilon

    Sounds like it worked perfectly. You probably can't boot because you didn't copy the windows files to your new partition before you renamed. You might be able to copy them over with the recovery console.

  16. 16 Cameron

    Hi,
    how do I “go to” a registry?
    Thanks

  17. 17 Echilon

    To go to a key, Start->Run->Regedit, then navigate to the key.

  18. 18 Abdullah

    man you are the best !, i didn't believe it was that easy.

    thanks

  19. 19 Terri Hyland

    For this, I ABSOLUTELY LOVE YOU. YOU HAVE NO IDEA OF THE PAIN IVE GONE THROUGH ALL DAY!!!!!!

  20. 20 Danilson

    Thank you man. It helped

  21. 21 OnuR

    wow, you saved my time to fix this issue.
    I got the similar problem.
    now fixed thanks to you.

    thanks man.
    Cheers!

  22. 22 Recover grub bootloader with Vista, Xp and Linux (new) « /home

    [...] his boot driver lettre to C when it has finsihed to boot…). I have followed those stepsĀ  http://leghumped.com/blog/2007/01/09/change-drive-letter-on-a-boot-device/ Then reboot Vista 1 or 2 times and all show be fine for this [...]

Leave a Comment

Login using OpenID or enter your details below to leave a comment.

OpenID
Anonymous


Comment