A new SSD - Moving the Users Folder in Windows 7 to a different drive

I've never been good at cable management...

I'm not used to disk space problems
I still don't understand why you can't just choose a location for your Users folder like you can in any other OS. True: you can work with libraries in W7, but even then there's quite some files left in the Users folder. My old Users folder, without the real data, turned out to be about 30GB. I really have a lot of applications and they all stack data in users profiles. I do not want this: I want to move the whole Users folder; ie. my profile, my girlfriend's profile, the Public profile and the Default profile; to my RAID storage. But how?
It took me a few days to find a solution that works, doesn't forget about anything and doesn't involve post-installation registry tweaking that you might regret afterwards. Yes - I fucked up my system twice so I know why I say this :-)
Problem number one turned out to be copying all the system files from one drive to the other without losing some of their special properties. Robocopy was most often used, but if you - like me - use the /COPYALL command without making an exception for junction points you end up with a nested folder structure like this:
code:
1
| D:\Users\Default\Local\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data |
Although badly documented, there is a way of doing it properly without the pain of WAIK: the audit mode. A mode mostly used by OEM manufacturers to enhance the OOBE. A more or less step by step guide, only for brand new installations:

code:
1
2
3
4
5
6
7
8
9
10
11
12
| <?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
<settings pass="oobeSystem">
<component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<FolderLocations>
<ProfilesDirectory>d:\Users</ProfilesDirectory>
<ProgramData>d:\ProgramData</ProgramData>
</FolderLocations>
</component>
</settings>
<cpi:offlineImage cpi:source="wim:f:/sources/install.wim#Windows 7 ULTIMATE" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
</unattend> |
code:
1
| sysprep.exe /audit /reboot /unattend:D:\MoveItBaby.xml |

code:
1
2
| mklink /d C:\Users D:\Users mklink /d C:\ProgramData D:\ProgramData |
---
My previous HD now serving as VM repository and OS-backup disk

My backup hard disk (I have off-site back-ups too, don't worry)

My RAID5 data array

My new SSD

03-'11 Aalst
02-'11 Taboes in bed deel II: Remmingen van de vrouw - een gastblogpost
Comments
You can: Folder redirection.I still don't understand why you can't just choose a location for your Users folder like you can in any other OS
[Comment edited on Saturday 12 March 2011 17:48]
Binnen een domein ja, maar hoe moet ik dat lokaal zien? Een lokale map sharen en daarheen mappen, dmv. een of andere policy?
In onze eigen organisatie doen we dat (enfin, de mannen van de back-end; ik ben front-end), maar dat is een oplossing die ik niet voor thuis zou overwegen.
[Comment edited on Saturday 12 March 2011 17:54]
Program Files + Windows is momenteel al 30GB met mijn basis installatie - en mijn debugging symbols zitten daar niet eens bij (3GB, op andere schijf gezet).Spetsnaz wrote on Saturday 12 March 2011 @ 17:59:
Vraag me dan af wat je allemaal op je C zet als 120GB te weinig is, ik draai al 1,5 jaar Windows 7 op een 40GB en heb nog steeds 15GB vrij zonder er moeite voor te doen.
Reken er 20GB bij voor hibernate en paging en je zit al aan 50GB. Als je er dan nog wat extra programma's en AppData bij gooit (Steam reken ik trouwens niet mee, die staat op de D: en is alleen al 300GB) dan zit je toch al in de buurt van de meeste SSDs (80GB+).
[Comment edited on Saturday 12 March 2011 18:46]
Zoals je ziet op mijn eerste afbeelding kom ik al aan 63GB na een clean install. Ik heb dan ook veel software en veel MUIs. Een snel lijstje:Spetsnaz wrote on Saturday 12 March 2011 @ 18:45:
Vreemd heb hibernate en paging hier ook gewoon aanstaan maar kom niet boven de 25GB gebruik waarvan 5,3GB voor program files en heb toch aardig wat programma's (geen games) geïnstalleerd staan.
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
| 7-Zip 9.20 (x64 edition) 9.20.00.0 Application Verifier (x64) 4.1.1078 ConfigMgr 2007 Toolkit V2 4.00.6221.1035 DameWare Exporter 6.9.0.0 DameWare Mini Remote Control 6.9.0.0 DameWare NT Utilities 6.9.0.0 Debugging Tools for Windows (x64) 6.12.2.633 Google Earth 6.0.1.2032 Google Update Helper 1.2.183.39 Java Auto Updater 2.0.3.1 Java(TM) 6 Update 24 6.0.240 McAfee Agent 4.00.0012 McAfee VirusScan Enterprise 8.7.0 Microsoft .NET Framework 4 Client Profile 4.0.30319 Microsoft .NET Framework 4 Extended 4.0.30319 Microsoft .NET Framework 4 Multi-Targeting Pack 4.0.30319 Microsoft Help Viewer 1.0 1.0.30319 Microsoft Office Access MUI (Dutch) 2010 14.0.4763.1000 Microsoft Office Access MUI (English) 2010 14.0.4763.1000 Microsoft Office Access MUI (French) 2010 14.0.4763.1000 Microsoft Office Access MUI (German) 2010 14.0.4763.1000 Microsoft Office Access MUI (Italian) 2010 14.0.4763.1000 Microsoft Office Access Setup Metadata MUI (English) 2010 14.0.4763.1000 Microsoft Office Excel MUI (Dutch) 2010 14.0.4763.1000 Microsoft Office Excel MUI (English) 2010 14.0.4763.1000 Microsoft Office Excel MUI (French) 2010 14.0.4763.1000 Microsoft Office Excel MUI (German) 2010 14.0.4763.1000 Microsoft Office Excel MUI (Italian) 2010 14.0.4763.1000 Microsoft Office Groove MUI (Dutch) 2010 14.0.4763.1000 Microsoft Office Groove MUI (English) 2010 14.0.4763.1000 Microsoft Office Groove MUI (French) 2010 14.0.4763.1000 Microsoft Office Groove MUI (German) 2010 14.0.4763.1000 Microsoft Office Groove MUI (Italian) 2010 14.0.4763.1000 Microsoft Office InfoPath MUI (Dutch) 2010 14.0.4763.1000 Microsoft Office InfoPath MUI (English) 2010 14.0.4763.1000 Microsoft Office InfoPath MUI (French) 2010 14.0.4763.1000 Microsoft Office InfoPath MUI (German) 2010 14.0.4763.1000 Microsoft Office InfoPath MUI (Italian) 2010 14.0.4763.1000 Microsoft Office O MUI (Dutch) 2010 14.0.4763.1000 Microsoft Office O MUI (French) 2010 14.0.4763.1000 Microsoft Office O MUI (German) 2010 14.0.4763.1000 Microsoft Office O MUI (Italian) 2010 14.0.4763.1000 Microsoft Office Office 32-bit Components 2010 14.0.4763.1000 Microsoft Office OneNote MUI (Dutch) 2010 14.0.4763.1000 Microsoft Office OneNote MUI (English) 2010 14.0.4763.1000 Microsoft Office OneNote MUI (French) 2010 14.0.4763.1000 Microsoft Office OneNote MUI (German) 2010 14.0.4763.1000 Microsoft Office OneNote MUI (Italian) 2010 14.0.4763.1000 Microsoft Office Outlook MUI (Dutch) 2010 14.0.4763.1000 Microsoft Office Outlook MUI (English) 2010 14.0.4763.1000 Microsoft Office Outlook MUI (French) 2010 14.0.4763.1000 Microsoft Office Outlook MUI (German) 2010 14.0.4763.1000 Microsoft Office Outlook MUI (Italian) 2010 14.0.4763.1000 Microsoft Office PowerPoint MUI (Dutch) 2010 14.0.4763.1000 Microsoft Office PowerPoint MUI (English) 2010 14.0.4763.1000 Microsoft Office PowerPoint MUI (French) 2010 14.0.4763.1000 Microsoft Office PowerPoint MUI (German) 2010 14.0.4763.1000 Microsoft Office PowerPoint MUI (Italian) 2010 14.0.4763.1000 Microsoft Office Professional Plus 2010 14.0.4763.1000 Microsoft Office Project MUI (Dutch) 2010 14.0.4763.1000 Microsoft Office Project MUI (English) 2010 14.0.4763.1000 Microsoft Office Project MUI (French) 2010 14.0.4763.1000 Microsoft Office Project MUI (German) 2010 14.0.4763.1000 Microsoft Office Project MUI (Italian) 2010 14.0.4763.1000 Microsoft Office Project Professional 2010 14.0.4763.1000 Microsoft Office Proof (Arabic) 2010 14.0.4763.1000 Microsoft Office Proof (Dutch) 2010 14.0.4763.1000 Microsoft Office Proof (English) 2010 14.0.4763.1000 Microsoft Office Proof (French) 2010 14.0.4763.1000 Microsoft Office Proof (German) 2010 14.0.4763.1000 Microsoft Office Proof (Italian) 2010 14.0.4763.1000 Microsoft Office Proof (Spanish) 2010 14.0.4763.1000 Microsoft Office Proofing (Dutch) 2010 14.0.4763.1000 Microsoft Office Proofing (English) 2010 14.0.4763.1000 Microsoft Office Proofing (French) 2010 14.0.4763.1000 Microsoft Office Proofing (German) 2010 14.0.4763.1000 Microsoft Office Proofing (Italian) 2010 14.0.4763.1000 Microsoft Office Publisher MUI (Dutch) 2010 14.0.4763.1000 Microsoft Office Publisher MUI (English) 2010 14.0.4763.1000 Microsoft Office Publisher MUI (French) 2010 14.0.4763.1000 Microsoft Office Publisher MUI (German) 2010 14.0.4763.1000 Microsoft Office Publisher MUI (Italian) 2010 14.0.4763.1000 Microsoft Office Shared 32-bit MUI (Dutch) 2010 14.0.4763.1000 Microsoft Office Shared 32-bit MUI (English) 2010 14.0.4763.1000 Microsoft Office Shared 32-bit MUI (French) 2010 14.0.4763.1000 Microsoft Office Shared 32-bit MUI (German) 2010 14.0.4763.1000 Microsoft Office Shared 32-bit MUI (Italian) 2010 14.0.4763.1000 Microsoft Office Shared MUI (Dutch) 2010 14.0.4763.1000 Microsoft Office Shared MUI (English) 2010 14.0.4763.1000 Microsoft Office Shared MUI (French) 2010 14.0.4763.1000 Microsoft Office Shared MUI (German) 2010 14.0.4763.1000 Microsoft Office Shared MUI (Italian) 2010 14.0.4763.1000 Microsoft Office Shared Setup Metadata MUI (English) 2010 14.0.4763.1000 Microsoft Office SharePoint Designer MUI (Dutch) 2010 14.0.4763.1000 Microsoft Office SharePoint Designer MUI (French) 2010 14.0.4763.1000 Microsoft Office SharePoint Designer MUI (German) 2010 14.0.4763.1000 Microsoft Office SharePoint Designer MUI (Italian) 2010 14.0.4763.1000 Microsoft Office Visio 2010 14.0.4763.1000 Microsoft Office Visio MUI (Dutch) 2010 14.0.4763.1000 Microsoft Office Visio MUI (English) 2010 14.0.4763.1000 Microsoft Office Visio MUI (French) 2010 14.0.4763.1000 Microsoft Office Visio MUI (German) 2010 14.0.4763.1000 Microsoft Office Visio MUI (Italian) 2010 14.0.4763.1000 Microsoft Office VisMUI (Dutch) 2010 14.0.4763.1000 Microsoft Office VisMUI (French) 2010 14.0.4763.1000 Microsoft Office VisMUI (German) 2010 14.0.4763.1000 Microsoft Office VisMUI (Italian) 2010 14.0.4763.1000 Microsoft Office Word MUI (Dutch) 2010 14.0.4763.1000 Microsoft Office Word MUI (English) 2010 14.0.4763.1000 Microsoft Office Word MUI (French) 2010 14.0.4763.1000 Microsoft Office Word MUI (German) 2010 14.0.4763.1000 Microsoft Office Word MUI (Italian) 2010 14.0.4763.1000 Microsoft Office X MUI (Dutch) 2010 14.0.4763.1000 Microsoft Office X MUI (French) 2010 14.0.4763.1000 Microsoft Office X MUI (German) 2010 14.0.4763.1000 Microsoft Office X MUI (Italian) 2010 14.0.4763.1000 Microsoft Silverlight 4.0.60129.0 Microsoft Virtual PC 2007 SP1 6.0.192.0 Microsoft Visual C++ Compilers 2010 Standard - enu - x64 10.0.30319 Microsoft Visual C++ Compilers 2010 Standard - enu - x86 10.0.30319 Microsoft Visual C++ 2010 x64 Redistributable - 10.0.30319 10.0.30319 Microsoft Visual C++ 2010 x86 Redistributable - 10.0.30319 10.0.30319 Microsoft Windows Debugging Symbols 7601 Microsoft Windows Performance Toolkit 4.8.0 Microsoft Windows SDK .NET Framework Tools (30514) 7.1.30514 Microsoft Windows SDK for Visual Studio .NET 4.0 Framework Tools 7.1.30514 Microsoft Windows SDK for Windows 7 (7.1) 7.1.30514 Microsoft Windows SDK for Windows 7 Common Utilities (30514) 7.1.30514 Microsoft Windows SDK for Windows 7 Headers and Libraries (30514) 7.1.30514 Microsoft Windows SDK for Windows 7 Redistributable Components for Application Verifier (30514) 7.1.30514 Microsoft Windows SDK for Windows 7 Redistributable Components for Common Tools (30514) 7.1.30514 Microsoft Windows SDK for Windows 7 Redistributable Components for Windows Debugging Tools (30514) 7.1.30514 Microsoft Windows SDK for Windows 7 Samples (30514) 7.1.30514 Microsoft Windows SDK for Windows 7 Utilities for Win32 Development (30514) 7.1.30514 Microsoft Windows SDK Intellisense and Reference Assemblies (30514) 7.1.30514 Microsoft Windows SDK MSHelp (30514) 7.1.30514 Microsoft Windows SDK Net Fx Interop Headers And Libraries (30514) 7.1.30514 NVIDIA PhysX 9.10.0514 SkypeT 5.1 5.1.112 tools-freebsd 8.1.3.9911 tools-linux 8.1.3.9911 tools-netware 8.1.3.9911 tools-solaris 8.1.3.9911 tools-windows 8.1.3.9911 tools-winPre2k 8.1.3.9911 UltraMon 3.0.7 Van Dale Grote woordenboeken 2009 3.0.0 VMware Workstation 7.0.0.9911 Windows 7 Logon Background Changer 1.3.4 Windows Automated Installation Kit 2.0.0.0 Windows Media Player Firefox Plugin 1.0.0.8 Windows SDK IntellisenseNFX 7.1.30514 |
Hola, ik ben Primal Script vergeten!
[Comment edited on Saturday 12 March 2011 19:03]
[Comment edited on Saturday 12 March 2011 19:31]
Gebruik je hibernate dan? Je kunt de sleep mode gewoon gebruiken zonder hibernate. Ik weet niet hoeveel geheugen je hebt, maar als je bv. 8GB ram hebt scheelt het alweer 8GB als je hibernate uitschakelt.YellowOnline wrote on Saturday 12 March 2011 @ 18:10:
[...]
Reken er 20GB bij voor hibernate en paging
Sinds ik een SSD heb start mijn systeem zo snel op dat ik hibernate sowieso een beetje overbodig vind. Als je het vaak gebruikt zorgt het ook wel voor extra slijtage, aangezien je elke keer dat je hibernate vele GB's wegschrijft.
[Comment edited on Saturday 12 March 2011 19:50]
Ik neem aan dat je je VM's op de e-schijf zet?
Heb je verder binnen Windows7 de ShadowCopies en System Restore settings kleiner ingesteld?
Ongetwijfeld programmeer je, want wat moet je anders met allerlei MUI's en Symbols...
Maar neen: zoals gezegd hebben mijn images een aparte schijf. Als ik die op de SSD zou zetten dan was 120GB zeker te kleinSpetsnaz wrote on Saturday 12 March 2011 @ 19:29:
Eigenlijk bijna hetzelfde (minder zelfs) als wat ik heb geïnstalleerd maar ik zie de boosdoener al: VMware workstation, met vmware images gaat de ruimte hard achteruit.
Ja, ik gebruik hibernate omdat mijn PC heropstarten door de RAID-controller héél erg lang duurt. Dat ding heeft drie à vier minuten nodig om te initialiseren. Over die extra slijtage doe ik niet paranoide.Aham brahmasmi wrote on Saturday 12 March 2011 @ 19:47:
[...]
Gebruik je hibernate dan? Je kunt de sleep mode gewoon gebruiken zonder hibernate. Ik weet niet hoeveel geheugen je hebt, maar als je bv. 8GB ram hebt scheelt het alweer 8GB als je hibernate uitschakelt.
Sinds ik een SSD heb start mijn systeem zo snel op dat ik hibernate sowieso een beetje overbodig vind. Als je het vaak gebruikt zorgt het ook wel voor extra slijtage, aangezien je elke keer dat je hibernate vele GB's wegschrijft.
Dat is jouw meningi-chat wrote on Saturday 12 March 2011 @ 20:46:
oei oei, je pagefile op je ssd - NOT DONE! - je page file is constant in beweging, om wear te voorkomen zou ik die dus weghalen naar je gewone schijf, als je op got had gezocht had je overigens een topic van mijn hand kunnen vinden (waar over ook al eens over dit onderwerk is gepraat, je zou bijv gebruik kunnen maken van junctionpoints in c:\users\ naar bijv d:\userdata\ ...
Hibernate houd ik dus, cf. supra. Iedereen heeft de post maar half gelezen denk ik want ik zet inderdaad VMs op een andere schijfTHX wrote on Saturday 12 March 2011 @ 21:01:
Sowieso hibernate uitzetten via commandprompt (als admin): powercfg -h off
Ik neem aan dat je je VM's op de e-schijf zet?
Heb je verder binnen Windows7 de ShadowCopies en System Restore settings kleiner ingesteld?
Ongetwijfeld programmeer je, want wat moet je anders met allerlei MUI's en Symbols...
Aan VSS ben ik niet aangeweest, maar SYstem Restore is uitgeschakeld. Dat is nu echt een feature dat ik niet gebruik - dat doe ik zelf wel met Acronis zo nodig.
Ik script vooral in een MUI-omgeving met PoSh. Die symbols zijn in de eerste plaats nodig om dumps te verwerken.
[Comment edited on Saturday 12 March 2011 21:47]
Juist omdat die pagefile constant in beweging is wil je juist dat je er zo snel mogelijk bij kan ?i-chat wrote on Saturday 12 March 2011 @ 20:46:
oei oei, je pagefile op je ssd - NOT DONE! - je page file is constant in beweging, om wear te voorkomen zou ik die dus weghalen naar je gewone schijf, als je op got had gezocht had je overigens een topic van mijn hand kunnen vinden (waar over ook al eens over dit onderwerk is gepraat, je zou bijv gebruik kunnen maken van junctionpoints in c:\users\ naar bijv d:\userdata\ ...
Net zoals userdata. Maargoed als je inderdaad een grote windowsinstall hebt dan moet je inderdaad dingen gaan schuiven omdat grote ssd's eigenlijk nog veel te duur zijn.
In order to comment on this post you need to be logged in. Use this link to log in when you are already a registered user. If you don't have an account you can create one here.