As many of you may be aware, I am in IT by trade and recently many people have been trying to perform the free upgrade to Windows 10 that is being offered by Microsoft until July 1, 2016.
One problem many people run into is not having enough space on the System Recovery Partition (SRP) which is a special little 100MB space on your hard drive that Windows uses for storing special boot files in case your operating system has problems.
The following will show you how to free up space on your SRP so that you can perform the operating system upgrade to Windows 10. Keep in mind, this is a sensitive partition, so be sure to follow exactly as I have outlined below and you should be fine. I have tested this and it works perfectly. Usually it will free up an additional 40-50MB of space.
This makes a permanent, but small, increase in the available space of the SRP (system recovery partition).
Prepare the Recovery Partition and Backup Permissions
- Press the Windows key + R. In the Run window that comes up, type msc and press Enter.
- Select the partition marked System Reserve. Press-and-hold or right-click on it.
- Select Change Drive Letter and Paths.
- Choose Add.
- Enter Y for the drive letter.
- Tap or click OK.
- From the Start menu, search for cmd. Right-click Command Prompt from the search results, and select Run as administrator.
- In the command prompt, type Y: and hit enter to switch to that drive.
- Type the following and press enter: takeown /d y /r /f .
Note: You must include the space and the period after the “f”, or the command will not work properly.
- Type icacls Y:\ /save %systemdrive%\SysResrvBU.txt /t to back up the current permissions.
- Type whoami and press Enter, and then record the user name.
- Type the following command:
icacls . /grant <username you got from whoami>:F /t and press Enter.
Note: Do not put a space between the username and “:F”, or the command won’t work.
Truncate the NTFS Log
- Check the size of the NTFS Log first. From the Command Prompt, type the following and press Enter: chkdsk /L Y:
- If the size is less than 5000KB, you do not need to truncate the file.
- To truncate the file, type the following and press Enter: chkdsk /L:5000 /X /F
- Press the Windows Key () + R
- Enter the %systemdrive%\SysResrvBU.txt file and press Enter.
- A notepad or other text editor application should open with the contents of the file. On the first line you will notice that it’s blank. Enter a single “.” (without the quotes) and save the file.
NOTE: Because it’s on the system drive, you might have to save it elsewhere and then copy and paste it to the system drive location manually.
- Close the text editor and go back to the command prompt that you have open.
- Type the following command: icacls Y:\ /restore %systemdrive%\SysResrvBU.txt /c /t and press Enter.
- A message may display indicating some files failed while processing – this is normal as these files have been deleted subsequent to backing them up.
- If the amount of successful files is none, then the command was executed incorrectly; you must have some files successfully processed before continuing.
- Adjust the ACL back to System by typing the following:
icacls . /grant system:f /t and press Enter.
- Set the owner of the drive back to System by typing the following command:
icacls Y: /setowner SYSTEM /t /c and press Enter.
- Go back to Disk Management and Refresh the data to confirm if the SRP now has a greater percentage of free space. If so, the drive letter can be removed at this point.
- Right-click the System Reserved Partition.
- Select Change Drive Letter and Paths.
- Choose the Y:
- Select Remove.
- Click OK.
28 Jul 2016
Dear Mr. Jason P. Stadtlander,
Thank you so much for this post. I wish I had found it first! What I did find and use was this one from Microsoft:
. Now I have a problem, and hope that you can help. This is for a 64-bit Windows 7 Home Premium system, trying to upgrade to Windows 10. This is the last machine needing to get the free upgrade, and time is running out.
The instructions were followed exactly under “Windows 7 with MBR partition” through #1. j. No language folders were deleted for step #1. k. Under #2., the NTFS Log size was 2048 KB, so the file was not truncated. Step #3. was followed, with the USN journal being deleted and then recreated. That changed the 100 MB partition from 2 MB free to 61 MB free. So far, so good.
Step 4. a. is where the problem lies. The message received when executing the listed command is:
“No such file or directory
Successfully processed 0 files; Failed processing 0 files.”
Searching for solutions and trying various configurations of that command for three days didn’t change that message.
It was at this point that I found your post, and realized that the instructions had NOT included backing up the permissions. I haven’t been able to locate the correct file name where the permissions reside, but NTFSp.txt doesn’t seem to be it. Search was done with showing hidden files, folders, drives and protected operating system files. Search was also done for SysResrvBU.txt, without success. I do have an old (of several months) image backup on an external drive that I can access, if necessary.
With the warning of “you must have some files successfully processed before continuing,” I’ve been leery of continuing on with step #4. b.-4. i. until this permissions issue is solved. To prevent further problems, the computer has not been turned off or rebooted. It’s also been kept off the Internet since starting this procedure, as all security software was disabled in preparation for the upgrade.
Several Web sites have offered solutions for resetting all permissions, but they all seem to have problems in one scenario or another. I normally only try solutions from official sources, such as .
So, your advice please. Should I try to locate the old permissions folder on the image backup, copy it (or possibly use the icacls Save switch on it?), and somehow restore it to the correct location? OR Should I try to continue on with the procedure from step #4. b.-4. i. and then try to do a system restore, which may not totally fix the permissions issue? OR Should I try to reset them manually on the Y:\ drive? OR Try something else? ( looks simple.)
Since the purpose of all this was to upgrade to Windows 10, is it likely that if I just complete the #4. b.-4. i. procedure as the system now sits, that the upgrade would be successful? If it was successful, I’m assuming that the new O/S would reset the permissions anyway, making the rest of this problem go away. Is that correct? Other Web sites with similar instructions to extended the partition didn’t bother to save or restore permissions, which seems a little odd to me. They didn’t even remove the Y:\ drive until after their Windows 10 upgrade was successful (see , for example — noting that the “Mark partition as Active” solution there is a VERY bad idea).
I’m looking forward to hearing from you.