I have quite strong QuadCore computer with 8GB RAM. Normally, my daily working basis uses nearly 6GB RAM. So 2GB more are waste. I often have to write installer script, try/test the setup, installer … which read/write a lot of files (7000 files, WTH)
Create/Start new disk in DataRAM
go to Computer Manager, Disk Management, format it and assign drive letter, Fix the drive character to R: for easily reference later.
Settings/DiskSize set to your need
Load and Save/Load Disk Image at Startup, Filename = C:\RAMDISK.img
Load and Save/Save Disk Image on shutdown, Filename = C:\RAMDISK.img
Option/Do not compress image file on NTFS filesystems
Thanks to thiswoot. His method works without Safe Mode, without backups, without System Restore, without DISM, and without a Windows 7 DVD repair disc.
Reboot (or turn off/turn on) your computer
Try to go to Command Prompt (the step may be different, but it always exists a button to go to Command Prompt):
When your computer’s starting up, choose the option "Launch Startup Repair"
When the Startup repair starts, click cancel.
Click the link "View advanced options for recovery and support"
In the new window click Command Prompt at the bottom.
(Optional): if your computer using VHD image to load Windows, please mount the VHD file first, then change to that drive
type bcdedit, enter, to get the VHD file path, copy it (E.g.: c:\win7.vhd)
type diskpart, enter
type select vdisk file="c:\win7.vhd" , enter (use the VHD path in previous step)
type attach vdisk, enter
type list volume, enter. You will see you "real" Windows volume drive ————> (E.g.: I:)
In Command Prompt type this and press enter: notepad C:\Windows\winsxs\Pending.xml (or whichever drive Windows is installed on. E.g.: if you mount VHD image and list volume, your Windows drive can be I:, replace C: with I: ———-> the command will be notepad I:\Windows\winsxs\Pending.xml). It can be very slow (because that file is very big)
Save as Pending.xml to another location (E.g.: save as Pending.OLD.xml), close Notepad.
Re-open pending.xml again with command notepad C:\Windows\winsxs\Pending.xml (It can be very slow (because that file is very big))
Press CTRL+F and search for the following exactly: 0000000000000000.cdf-ms
Delete the following text (yours will be a little different):