Showing posts with label HDD. Show all posts
Showing posts with label HDD. Show all posts

Monday, 19 May 2014

How to move users programfiles (and x86) and programdata to HDD after installing Windows in SSD boot Drive


I am going to show you hot to move Users, Program Files, Program Files (x86) and ProgramData (hidden folder) to HDD after insatlling Windows on SSD boot drive. I did this tut with Windows 7 but I am pretty sure it will work in Windows 8. On this way we will have default folders located in D so we don't need to edit it everytime while installing smt. and we will also have junctions, just in case.
(I assumed C is SSD and D is HDD, if not change it while entering commands)

1. Install Windows 7 on your SSD. Just do the insalling progress, until user creation (last reboot). You can easilly do it. If you don't know how to there are tons of tutorials avalible. Just Google it.

2. Open Command Line before starting user setup. (Use shift + f10)

3. Enter theese commands to copy Users, Program Files, Program Files (x86) and ProgramData to HDD.
  1. robocopy "C:\Users" "D:\Users" /E /COPYALL /XJ
  2. robocopy "C:\Program Files" "D:\Program Files" /E /COPYALL /XJ
  3. robocopy "C:\Program Files (x86)" "D:\Program Files (x86)" /E /COPYALL /XJ
  4. robocopy "C:\ProgramData" "D:\ProgramData" /E /COPYALL /XJ


3. Now delete these folders from C
  1. rmdir "C:\Users" /S /Q
  2. rmdir "C:\Program Files" /S /Q
  3. rmdir "C:\Program Files (x86)" /S /Q
  4. rmdir "C:\ProgramData" /S /Q

Removing ProgramData will give an error about few files, ignore it, we will fix it.

4. Create Just-in-case junctions
  1. mklink /J "C:\Users" "D:\Users"
  2. mklink /J "C:\Program Files" "D:\Program Files"
  3. mklink /J "C:\Program Files (x86)" "D:\Program Files (x86)"


5. Open registry editor.
  1. regedit


6. Registry edits to set default locations of Users, Program Files, Program Files (x86) and ProgramData
  1. 1. Go to HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Windows/CurrentVersion
  2. 2. Do the edits there (screenshot is avalible, scroll down to see edit where)
  3. 3. Go to HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Windows NT/CurrentVersion/ProfileList
  4. 4. Do the edits there (screenshot is avalible, scroll down to see edit where)




7. Now you can close cmd and regedit and finish winsows setup.

8. After all done reboot windows

9. Enable hidden files & folders in directory settings located at Control Panel


10. Go to SSD (C:\) and delete or shift delete ProgramData

11. Create the just-in-case junction for ProgramData
  1. 1. Open run by pressing windows+r
  2. 2. Run cmd
  3. 3. Enter this code:
  4. mklink /J "C:\ProgramData" "D:\ProgramData"


YOU ARE DONE!
You will never run out of space in your SSD anymore!