Posted on September 15 2011
Use this at your own risk. If you try this and you break your system, I am not responsible. :-)
I recently built a new computer and opted for an 120GB SSD for Windows 7 Pro and programs with a separate 1TB HDD for data.
After installing the OS, all my programs, and setting up my machine to my liking, I realized that a huge chunk of data wasn't on my "data" drive. We all should know that SSD's do not have a great reputation when it comes to reliability. So, my C:/Users folder had to be moved.
I Googled a bit, found a couple articles on doing just that, followed the directions perfectly, then spent the next 3 hours trying to boot back into Windows. Fun.
I managed to get System Restore to work (it wasn't as easy as it should have been) and I was now back where I started (~3 hours later), but still not ready to give up. I decided to give it one more try and this is what worked:
READ THIS ALL THE WAY THROUGH BEFORE DOING ANYTHING!!! (I recommend reading through the comments as well, especially this one)
- Create a System Resort point (don't skip this step):
- Click the Start button, right click on Computer, click Properties.
- Select the System Protection tab, click Create.
- Type a description and click Create.
- Name your drives something obvious:
- Click the Start button, right click on Computer, click Manage.
- In the left panel, expand Storage, select Disk Management.
- (optional) If you want to rename the drive for your optical drive (CD, DVD, BD) you'll want to do that now:
- Place a disk in the drive now.
- Right click its entry in the right-side pane.
- Select Change Drive Letter and Paths.
- Click Change and select the new drive letter (I chose "O", for "Optical").
- Click Yes In the "Some programs that rely on drive letters might not run correctly" dialog.
- Right click on your SSD (probably C:), click Properties, and type in a description, e.g., "OS and Programs" and click OK.
- Right click on your HDD, click Properties, and type in a description, e.g., "Data", and click OK. If you want to change the drive letter do so now (I chose "D", for "Data").
- Boot into Windows 7's System Recovery Command Prompt:
- Insert your Windows 7 installation disk into your optical drive and restart your computer.
- When/if prompted press a key to boot from the disk (you may need a PS/2 keyboard for this).
- At the "Install Now" screen choose "Repair your computer". You might be asked if you want to "Repair and Restart", select No.
- Make sure Windows 7 is listed as the installed OS and that it is selected then select Next.
- In the list of recovery tools choose "Command Prompt".
- You should now be located at the virtual Windows drive (probably X:) in the command prompt.
- NOTE: My actual Windows drives are: C = SSD (OS and Programs) and D = HDD (Data)
- NOTE: My virtual drives in System Restore are: X = Virtual Windows, D = SSD, and E = HDD
- Your drive letters may differ from mine, adjust these instructions accordingly. To check what's what:
- type: wmic logicaldisk get name press Enter
- for each letter do the following:
- type: D: press Enter (D is any one of the drive letters from this section's first step.)
- type: vol press Enter
- The first line will tell you what the drive is, e.g., "Volume in drive D is OS and Programs"
- Repeat steps 3-5 for each letter and take note of what drive is what
- Backup and copy your Window's C:\Users directory to your D:\ HDD:
- type: robocopy /copyall /mir /xj D:\Users E:\Users (D is my virtual SSD and E is my virtual HDD), press Enter
- Make sure no files failed to copy (FAILED and SKIPPED columns should = 0). If you have any failed or skipped files you should probably stop now. :-/
- type: D: press Enter (D is my virtual SSD)
- type: cd / press Enter
- type: rename Users UsersOld press Enter
- Create a "Super Shortcut" (aka Junction/symlink) for your actual C:/Users to point to D:/Users
- The is the confusing part. We'll be creating a link on our virtual SSD to point to our actual HDD. Because my actual HDD's drive letter is the same as my virtual SSD's drive letter the following command looks wrong, but it's not.
- type: mklink /J D:\Users D:\Users
The first D:\Users is referring to my virtual SSD's drive letter.
- IMPORTANT!!! The second D:\Users is referring to my actual HDD's drive letter.
- Press Enter
- Verify the shortcut was created by typing: dir C:. You should find Users [D:\Users] in the list.
- type: exit press Enter
- Restart (you'll probably want to remove the Windows 7 installation DVD during POST)
- Keep the C:/UsersOld directory around for a while just in case. :-)
This is what worked for me and so far I haven't seen any issues. Let me know if you have any trouble.
The above is a culmination of the following similar articles (and their comments), all of which were flawed on their own:
If the above does break your system you may not be able to use System Restore directly. The following steps from this article may help you recover:
- *DON'T* use system restore yet, it doesn't know what you've done with your user profiles and therefore can't repair the permissions on them.
- Isolate the copy of your user profiles from the NTFS junction: move D:\Users D:\Users2
- Delete the NTFS junction: rmdir D:\Users
- Copy your user profiles back over to your boot drive: robocopy /mir /xj D:\Users2 E:\Users
- Now use system restore [via Install DVD or Safe Mode], either to the point you created in the instructions or an earlier point. This will repair the permissions on your user profiles.
- Reboot and you should be able to login…