|
Home »
Windows
»
Windows Installation
Summary: You can move the I386 folder, but in order to keep Windows File Protection happy, you'll need to update a registry key as well.
I actually get variations of this question on a regular basis. Recently as I was cleaning up the hard disk on my primary machine I found myself asking the same question. The answer is that you can move I386, if you then also make another change deep in the Windows registry. • If it exists C:\I386 (the folder "I386" at the root of your "C:" drive) most likely contains an image of the installation copy of Windows. It's often placed on your hard drive as a way to avoid having to ask for a CD when Windows decides it needs some file that hasn't yet been installed. It's also used as one of the repositories for the original files used by System File Protection and the System File Checker. If Windows determines that one of its files has been replaced with an unrecognized copy, perhaps due to a virus, then the System File Checker will restore the file to its original version from C:\I386. (It actually uses additional repositories as well, in case service packs and other updates have legitimately updated the file.) In an attempt to answer the question "I wonder what happens if ...", I carefully backed up the contents of my C:\I386 folder, and then deleted it. The next morning I woke up to this error message:
".. you can move your I386 folder to wherever you like,
as long as it remains visible to your machine, and you make the registry update
to let Windows know where it is."
Windows File Protection had attempted to check my system files. I'm fairly certain that the error message it technically incorrect. No files had been replaced by unrecognized versions. Rather, the error was simply that the reference copy it expected in C:\I386 was no longer there. I restored the copy of my machine's C:\I386 folder to another machine, on a folder that had been shared and that was visible on my local network. The "trick" to telling Windows where to look turns out to be a simple registry setting. Specifically the key HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Setup\SourcePath. Firing up regedit, locate that key:
Note how it's set to "C:\" by default. The folder must be named I386, and this setting tells Windows where to find that folder. Double clicking on SourcePath, you can then change it to be the full path to the I386 folder:
Note that it doesn't include the "I386", it just points to where I386 can be found. In my case it's \\freenas\notenmax\machine_specific\leo\i386, but the registry setting is \\freenas\notenmax\machine_specific\leo. (In my case "freenas" is the server, "notenmax" is the share, and then "machine_specific" and "leo" are just folders within that share. I386 does not have to be at the root of the share.) Once updated, the setting does not take effect until you reboot. After rebooting I opened up a command prompt window and forced Windows File Protection to check all my files by running the System File Checker (SFC /scannow):
It completed normally, indicating that all files were good, and that the I386 folder had been accessed successfully from its new location. The bottom line: you can move your I386 folder to wherever you like, as long as it remains visible to your machine and you make the registry update to let Windows know where it is. Related:
Article 11718 | Posted August 2, 2007 |
askleo: Photo: Keyboard Filth http://bit.ly/sSgx (5-Jan 1:46pm PT) askleo: RT @JeffWalker: Awesome blog post - "How To Become Wealthy RIGHT NOW"... (5-Jan 12:46pm PT) askleo: LOL! RT @IAC_Heather: You know how we have TGIF, maybe we should have... (5-Jan 12:41pm PT) Popular & Hot How do I change my MSN Hotmail password? How do I delete history items from my Google tool bar? I accidentally deleted my Recycle Bin in Vista - how do I get it back? My desktop Recycle Bin has disappeared - why, and how do I get it back? New & Important How can I get the old Windows Live Hotmail back? Internet Safety: How do I keep my computer safe on the internet?
Stay Informed Archives Advertisers |
|
•
I am running WindowsXP Sp2 and am getting the error reported at the head of the page under "Windws File protestion" having moved c:\i386 to c:\windows and having altered the registry as instructed. What is being done wrong?
Posted by: Jonathan Eccles at October 10, 2008 8:34 AMKind regards, Jon
I followed the link you provided all the way to Setup, there is no Source Path. What do I do now?
I'm trying to let Windows know where i386 is so SFC won't keep asking for the CD.
Posted by: Gloria Elliott at October 11, 2008 2:57 PMHow can I recover Regedit if it was omitted from Windows Installer? I really need this one Thanks
Posted by: Victor at October 29, 2008 9:28 PMHi Leo
I followed the instructions above as my SR has simply dissappeared!
When i do the HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Setup\SourcePath. search I find my "source path" is shown as D:\ when, having searched, it (I386 folder) is actually in C:\ I have no idea why the discrepancy as I certianly didn't move it!
My question is, in order to fix my problem do I simply change the source path back to C:\ (as per instructions above) and then reboot and run SFC/SCANNOW?
I hope so because other wise I'm lost!
06-Dec-2008
I have tried everything here and nothing seem to work because I am still prompted to insert the CD even after rebooting and double checking my entries in registry
Posted by: cedarmoose at December 7, 2008 2:48 AMquestions does it matter if there is 2 partitions on my drive
and is there a log file anywhere where I can see the progress to see if it is directed at the right spot in the sequence
thanks
Hi Leo,
Posted by: Morgan at December 8, 2008 6:54 AMI changed the source path back to C:\ but get the same result when running sfc/scannow. ie it tells me to insert my xp disc!!
Now I'm lost, still without system restore and frightened to do anything on my PC untill I have SR restored to it's proper self! Any ideas please?
Failing that is there somewhere I can download "system restore" from and just re-install it on my PC?
Posted by: Morgan at December 9, 2008 6:32 AMHi Leo,
found this article on my travels and it worked for me. Hope it will help others in the same boat.
If posting this link here is out of order I'm sure you will delete it and I apologise but as I say it worked for me and my SR is now working again.
http://bertk.mvps.org/html/reinstall.html
Posted by: Morgan at December 9, 2008 7:38 AMSimply changing SourcePath isn't sufficient if SP2 is installed. I had to change ServicePackSourcePath as well. HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SourcePath may also need to be changed, but I'm not sure (I changed them all at the same time).
Posted by: jitspoe at December 15, 2008 8:55 PMI was trying this today and initially failed because I didn't know that it was necessary when editing the registry to put file paths in inverted commas whenever a space is present. I had copied my I386 directory to C:\Win2kP setups and the space had prevented the registry change from being effective; I then found in a blog on this subject http://raywoodcockslatest.blogspot.com/2007/07/error-copying-file-or-folder-system.html
that I should have written "C:\Win2kP setups" .
Now SFC works properly. So either don't use a file or folder name with a space or put the path in inverted commas.
I hope this helps someone.
Posted by: BAW30s at January 5, 2009 5:12 AM