Ask Leo!

How do I tell Windows where my I386 folder has moved?

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.

The folder c:\i386 takes up a lot of space on my hard disk, so I moved it to a drive on another machine on my network where I have more room. I'm now getting Windows File Protection errors, and there's no option to tell it where the files are. What do I do?

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:

Windows File Protection Error

".. 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:

Registry Editor opened on the SourcePath setting

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:

Editting the SourcePath value

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):

Window File Checker progress

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

Recent Comments
27 Comments

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?
Kind regards, Jon

Posted by: Jonathan Eccles at October 10, 2008 8:34 AM

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 PM

How 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 PM

Hi 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!

A few details missing from what you've posted, so I can't be 100% certain, but sure - shouldn't hurt to try.
- Leo
06-Dec-2008
Posted by: Morgan at December 6, 2008 7:20 AM

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
questions 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

Posted by: cedarmoose at December 7, 2008 2:48 AM

Hi Leo,
I 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?

Posted by: Morgan at December 8, 2008 6:54 AM

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 AM

Hi 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 AM

Simply 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 PM

I 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

Post a comment on "How do I tell Windows where my I386 folder has moved?":






(Email Address will not be published.)

Remember Me?

By popular demand...
my tip jar
Cuppa Joe
Buy Leo a Latte!

(you may use HTML tags for style)

New!

RSS feed Subscribe to the RSS Feed specifically for comments on this article.

Before commenting, please...

Please wait. Your comment is being processed ...


Ask Your Question:


ask-leo.com
Web

Stay Informed

Weekly Newsletter

Archives

By Category
By Date

Advertisers

Advertise on Ask Leo!

««   »»

Question? - Ask Leo!
Who is Leo?
Link to Leo!

Terms, Conditions & Privacy