<?xml version="1.0" encoding="UTF-8"?> <rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
> <channel><title>Danny Tsang &#187; superuser</title> <atom:link href="http://www.dannytsang.co.uk/index.php/tag/superuser/feed/" rel="self" type="application/rss+xml" /><link>http://www.dannytsang.co.uk</link> <description>Eats and spits code by day</description> <lastBuildDate>Mon, 06 Feb 2012 00:01:00 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>Separating User &amp; Windows On Different Drives</title><link>http://www.dannytsang.co.uk/index.php/separating-user-windows-on-different-drives/</link> <comments>http://www.dannytsang.co.uk/index.php/separating-user-windows-on-different-drives/#comments</comments> <pubDate>Mon, 22 Feb 2010 00:01:34 +0000</pubDate> <dc:creator>Danny</dc:creator> <category><![CDATA[Windows]]></category> <category><![CDATA[disk management]]></category> <category><![CDATA[HKEY]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[Microsoft]]></category> <category><![CDATA[NTFS]]></category> <category><![CDATA[partition]]></category> <category><![CDATA[ProfileList]]></category> <category><![CDATA[REGEDIT]]></category> <category><![CDATA[registry]]></category> <category><![CDATA[Robocopy]]></category> <category><![CDATA[SATA]]></category> <category><![CDATA[superuser]]></category> <category><![CDATA[userprofile]]></category> <guid
isPermaLink="false">http://www.dannytsang.co.uk/?p=2649</guid> <description><![CDATA[Overview I wanted to have the Windows partition and the user partition on separate drives. I have done this in the past on a Linux computer and it was very painless. The advantage to this setup is that most of &#8230; <a
href="http://www.dannytsang.co.uk/index.php/separating-user-windows-on-different-drives/">Continue reading <span
class="meta-nav">&#8594;</span></a> Related posts:<ol><li><a
href='http://www.dannytsang.co.uk/index.php/sync-mozilla-thunderbird-using-dropbox/' rel='bookmark' title='Sync Mozilla Thunderbird Using Dropbox'>Sync Mozilla Thunderbird Using Dropbox</a></li><li><a
href='http://www.dannytsang.co.uk/index.php/windows-vista-start-bar-search/' rel='bookmark' title='Windows Vista Start Bar Search'>Windows Vista Start Bar Search</a></li><li><a
href='http://www.dannytsang.co.uk/index.php/new-registration-disabled/' rel='bookmark' title='New User Registration Disabled'>New User Registration Disabled</a></li></ol>]]></description> <content:encoded><![CDATA[<h3>Overview</h3><p>I wanted to have the Windows partition and the user partition on separate drives. I have done this in the past on a <a
href="http://www.dannytsang.co.uk/index.php/tag/linux/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Linux">Linux</a> computer and it was very painless.</p><p>The advantage to this setup is that most of the personal data such as things stored in My Documents, My Music, etc and the Windows specific stuff like installed programs, patches, etc are stored on a separate partition whether it&#8217;s on the same or different drive. This degree of separation allows the Windows partition to be wiped and started fresh without affecting the personal files.</p><p>I had time during my fresh install to play about with various setups and have listed the options in the following section.</p><blockquote><p>Be aware that not all programs store settings/preferences in the user directory so this is no replacement</p></blockquote><blockquote><p>I am not responsible for any damage or problems caused by the below procedure.</p></blockquote><blockquote><p>Final note is that I tried many combinations but some how managed to get it to work. Whilst the steps may not be 100% correct it should be a good guideline to see the process through. I shall update it should I come across it again.</p></blockquote><h3>Prerequisites</h3><p>Before starting <em>ALWAYS ALWAYS</em> back up all the necessary files. Even though this design is suppose to negate the need to back it is still advised to backup in case something goes wrong.</p><p>Have a Windows 7 Install CD and CD Key ready.</p><p>Time!</p><h3>Mounting Options</h3><ol><li>Mounting a drive to a directory &#8211; I was very keen on using this technique when I saw in the Disk Management utility. It sounds like the method used in Linux and would make it fairly transparent to the user.</li><li>Separate sub directories within users &#8211; This option makes it very simple to do because Windows 7 has the option of moving all the directories under the users one such as Pictures, Music, Search, etc. Just specify the new location and Explorer will move the files creating the directory along the way and taking care of permissions.</li><li>Change the %<a
href="http://www.dannytsang.co.uk/index.php/tag/userprofile/" class="st_tag internal_tag" rel="tag" title="Posts tagged with userprofile">UserProfile</a>% in the <a
href="http://www.dannytsang.co.uk/index.php/tag/registry/" class="st_tag internal_tag" rel="tag" title="Posts tagged with registry">registry</a> so that it is pointing to another drive.</li></ol><h4>Mounting A Drive To A Directory</h4><p>This was my first choice so I wiped my system and went about to do this. The steps described in the <a
href="http://superuser.com/" target="_blank">superuser</a> website are as follows:</p><blockquote><p> 1. You boot with the install media.<br
/> 2. At the screen with the &#8220;Install Now&#8221; choose &#8220;Repair your computer&#8221;<br
/> 3. You will be asked if you want to &#8220;Repair and Restart&#8221; by the System Recovery options, choose &#8220;No&#8221;.<br
/> 4. Then Make sure that Windows 7 is listed as one of the installed OS&#8217;s available for recovery, it&#8217;s selected and them press next.<br
/> 5. You will be given a list of recovery tools, chose &#8220;Command Prompt&#8221;.<br
/> 6. In the command prompt you will be using <a
href="http://www.dannytsang.co.uk/index.php/tag/robocopy/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Robocopy">Robocopy</a> to copy c:\Users to d:\Users<br
/> <a
name="robocopy">7. Type robocopy c:\Users d:\Users /mir /xj</a><br
/> 8. /mir tells robocopy to mirror the directories, this will copy all files and permissions.<br
/> 9. /xj is very important, this tells robocopy not to follow junction points. If you forget this, you will have a lot of trouble.<br
/> 10. Make sure no files failed to copy (FAILED column = 0).<br
/> 11. Remove the old Users Folder from the c: drive: rmdir /S /Q C:\Users<br
/> 12. Create a <a
href="http://www.dannytsang.co.uk/index.php/tag/ntfs/" class="st_tag internal_tag" rel="tag" title="Posts tagged with NTFS">NTFS</a> Junction that points to the new Users folder: mklink /J C:\Users D:\Users</p></blockquote><p>The problem with the above method is the drives letters in recovery mode may not be using the correct drive letters when in normal Windows. For example drive C: is the windows drive and drive Z: was the user drive. In recover mode it generally assigns drive letters incrementally so in order to get the drive to mount on Z: the user drive needs to be on the 24th <a
href="http://www.dannytsang.co.uk/index.php/tag/sata/" class="st_tag internal_tag" rel="tag" title="Posts tagged with SATA">SATA</a> port. This is unrealistic.</p><p>Also after performing those steps you would find the user to be locked out because of the user mapping has changed. To fix this boot into safe mode and login and do the following steps outlined in <a
href="http://cherrybyte.blogspot.com" target="_blank">Nigel&#8217;s blog</a></p><div
align="center"><a
href="http://www.dannytsang.co.uk/wp-content/uploads/2010/02/ProfileList.png" rel="lightbox[2649]"><img
src="http://www.dannytsang.co.uk/wp-content/uploads/2010/02/ProfileList-150x150.png" alt="" title="ProfileList" width="150" height="150" class="aligncenter size-thumbnail wp-image-2707" /></a></div><blockquote><p> What now? Well I found additional registry entries with <a
href="http://www.dannytsang.co.uk/index.php/tag/regedit/" class="st_tag internal_tag" rel="tag" title="Posts tagged with REGEDIT">REGEDIT</a> under</p><p> <a
href="http://www.dannytsang.co.uk/index.php/tag/hkey/" class="st_tag internal_tag" rel="tag" title="Posts tagged with HKEY">HKEY</a>_LOCAL_MACHINE\SOFTWARE\<a
href="http://www.dannytsang.co.uk/index.php/tag/microsoft/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Microsoft">Microsoft</a>\Windows NT\CurrentVersion\<a
href="http://www.dannytsang.co.uk/index.php/tag/profilelist/" class="st_tag internal_tag" rel="tag" title="Posts tagged with ProfileList">ProfileList</a></p><p>There was 1 line for each profile. Crucially if a profile is bad there are 3 things worth checking<br
/> a) Ensure the key name doesn&#8217;t end in &#8220;.bad&#8221;<br
/> b) Ensure the RefCount value is 0<br
/> c) Ensure the State value is 0</p></blockquote><p>Having gone through all those steps it made the OS unstable. I&#8217;m not sure if it&#8217;s a hardware issue but there seemed to be long seek times or Windows was taking a lot longer to follow the symbolic link. Whilst it worked, it hangs and long load times was not acceptable to me.</p><h4>Separate Sub Directories Within Users</h4><div
align="center"><a
href="http://www.dannytsang.co.uk/wp-content/uploads/2010/02/My-Documents-Location.png" rel="lightbox[2649]"><img
src="http://www.dannytsang.co.uk/wp-content/uploads/2010/02/My-Documents-Location-150x150.png" alt="" title="My Documents Location" width="150" height="150" class="aligncenter size-thumbnail wp-image-2705" /></a></div><p>This is the easiest setup and I started with using this as my solution when the above method did not work for me. The problem with this was that it left the user directory e.g C:\Users\Danny on the same drive as the Windows partition and I do use that directory (as well as my Desktop which can be mapped to another drive) as my dumping ground. Not totally satisfied I found a workable solution described below.</p><h4><a
name="changeProfile">Change the %UserProfile%</a></h4><p>This is the final approach I took. It worked in the end but there was a lot of confusion when I did it but I ended up with the result I wanted.</p><p>Before changing the variable the files must be copied to the new drive. To do this I used the above method of dropping into command line, copying the files to the new location. Follow steps the steps in <strong>Mounting A Drive To A Directory</strong> section. Before closing the registry edit the attribute <strong>ProfileImagePath</strong> in <code>HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList</code> to the path of the new user directory. Reboot and it should be done.</p><p><strong>Update 16-Nov-2010</strong><br
/> I have just reinstalled Windows and used the <a
href="#changeProfile">Change Profile</a> and there are few things to note:</p><ol><li>Make a backup of your data.</li><li>Make sure you install the SATA drivers <strong>PRIOR</strong> to doing any copying</li><li>Copy user data to a new directory and delete the old one. Either copy the files onto the same HDD or to an external drive. This is a safer option than to simply rename the folder.</li><li>Use <a
href="#robocopy">Robocopy</a> to copy the newly created windows user directory. <strong>DO NOT</strong> use the old user directory as the permissions are wrong and the user data such as libraries and configuration files do not match any more.</li><li>Copy user files from step 3 in to the robocopied directory. E.g all your music, documents, etc. Do not copy all files blindly.</li></ol><h3>Summary</h3><p>Whilst the last method worked. I&#8217;d like to go through it again to ensure the steps are correct but I&#8217;m sure it more or less sums it up. I&#8217;m happy I got the result I wanted but wished the symbolic link worked. I&#8217;m looking at separating the install directories as well such as the typical C:\Program Files directory so that the Windows partition only contains Windows related files.</p><p><a
href="http://superuser.com/questions/53029/mount-second-drive-as-c-users-in-windows-7" target="_blank"><br
/> Mount second drive as c:/Users in Windows 7.</a></p><p><a
href="http://cherrybyte.blogspot.com/2007/07/fixing-user-profiles-in-vista.html" "_blank">Fixing User Profiles in Vista</a></p> <a
href='http://www.dannytsang.co.uk/index.php/separating-user-windows-on-different-drives/my-documents-location/' title='My Documents Location'><img
width="150" height="150" src="http://www.dannytsang.co.uk/wp-content/uploads/2010/02/My-Documents-Location-150x150.png" class="attachment-thumbnail" alt="My Documents Location" title="My Documents Location" /></a> <a
href='http://www.dannytsang.co.uk/index.php/separating-user-windows-on-different-drives/profilelist/' title='ProfileList'><img
width="150" height="150" src="http://www.dannytsang.co.uk/wp-content/uploads/2010/02/ProfileList-150x150.png" class="attachment-thumbnail" alt="ProfileList" title="ProfileList" /></a><p>Related posts:<ol><li><a
href='http://www.dannytsang.co.uk/index.php/sync-mozilla-thunderbird-using-dropbox/' rel='bookmark' title='Sync Mozilla Thunderbird Using Dropbox'>Sync Mozilla Thunderbird Using Dropbox</a></li><li><a
href='http://www.dannytsang.co.uk/index.php/windows-vista-start-bar-search/' rel='bookmark' title='Windows Vista Start Bar Search'>Windows Vista Start Bar Search</a></li><li><a
href='http://www.dannytsang.co.uk/index.php/new-registration-disabled/' rel='bookmark' title='New User Registration Disabled'>New User Registration Disabled</a></li></ol></p>]]></content:encoded> <wfw:commentRss>http://www.dannytsang.co.uk/index.php/separating-user-windows-on-different-drives/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> </channel> </rss>
