How to add a Ramdrive (Ramdisk) to Windows PE (WinPE) Written by Johan Arwidmark - jaw@lutteman.se Microsoft MVP - Setup / Deployment If you find any errors or have suggestions for improvement, please send me an email and I will update the article. / Johan Step by step procedure 1. Download the free version of Christiaan Ghijselinck's RAMDisk (almost identical with the Microsoft sample driver, KB 257405) from http://www.8ung.at/ramdisk/RAMDisk/RAMDisk_Free.htm 2. Copy the WINPE folder from the Windows PE CDROM to C:\ 3. Create a textfile named WINPE_RAMDISK.INF in the C:\WINPE folder using the following info. [Version] Signature="$WINDOWS NT$" [AddReg] ; ; Begin - Ramdisk [ QSoft ] Free Version ; ; DriveLetter is set to Z: ; ; Ramdisk size, (DiskSize value) ; ; 4 MB 0x00400000 ; 8 MB 0x00800000 ; 16 MB: 0x01000000 ; 32 MB: 0x02000000 (maximum in free version) HKLM,"ControlSet001\Control\Class\{FFA1C341-4539-11D3-B88D-00C04FAD5172}","Class",0000000000,"RamDisk" HKLM,"ControlSet001\Control\Class\{FFA1C341-4539-11D3-B88D-00C04FAD5172}","",0000000000,"RAMDisk" HKLM,"ControlSet001\Control\Class\{FFA1C341-4539-11D3-B88D-00C04FAD5172}\0001","ProviderName",0000000000,"QSoft" HKLM,"ControlSet001\Control\Class\{FFA1C341-4539-11D3-B88D-00C04FAD5172}\0001","MatchingDeviceId",0000000000,"ramdriv" HKLM,"ControlSet001\Control\Class\{FFA1C341-4539-11D3-B88D-00C04FAD5172}\0001","DriverDesc",0000000000,"Ramdisk [ QSoft ]" HKLM,"ControlSet001\Enum\Root\UNKNOWN\9999","ClassGUID",0000000000,"{FFA1C341-4539-11D3-B88D-00C04FAD5172}" HKLM,"ControlSet001\Enum\Root\UNKNOWN\9999","Class",0000000000,"RamDisk" HKLM,"ControlSet001\Enum\Root\UNKNOWN\9999","ConfigFlags",0x00010001,0x4 HKLM,"ControlSet001\Enum\Root\UNKNOWN\9999","Mfg",0000000000,"QSoft" HKLM,"ControlSet001\Enum\Root\UNKNOWN\9999","HardwareID",0000000000,"ramdriv" HKLM,"ControlSet001\Enum\Root\UNKNOWN\9999","Service",0000000000,"Ramdriv" HKLM,"ControlSet001\Enum\Root\UNKNOWN\9999","DeviceDesc",0000000000,"Ramdisk [ QSoft ]" HKLM,"ControlSet001\Enum\Root\UNKNOWN\9999","Capabilities",0x00000000 HKLM,"ControlSet001\Enum\Root\UNKNOWN\9999","Driver",0000000000,"{FFA1C341-4539-11D3-B88D-00C04FAD5172}\0001" HKLM,"ControlSet001\Enum\Root\UNKNOWN\9999\Control","DisableCount",0x00010001,0x0 HKLM,"ControlSet001\Enum\Root\UNKNOWN\9999\Control",0000000000,"ActiveService","Ramdriv" HKLM,"ControlSet001\Services\Ramdriv","Type",0x00010001,0x1 HKLM,"ControlSet001\Services\Ramdriv","Start",0x00010001,0x3 HKLM,"ControlSet001\Services\Ramdriv","ErrorControl",0x00010001,0x1 HKLM,"ControlSet001\Services\Ramdriv","DisplayName",0000000000,"Ramdisk [ QSoft ]" HKLM,"ControlSet001\Services\Ramdriv","ImagePath",0x00020000,"system32\drivers\ramdrv.sys" HKLM,"ControlSet001\Services\Ramdriv\Parameters","BreakOnEntry",0x00010001,0x0 HKLM,"ControlSet001\Services\Ramdriv\Parameters","DebugLevel",0x00010001,0x5 HKLM,"ControlSet001\Services\Ramdriv\Parameters","DebugComp",0x00010001,0xffffffff HKLM,"ControlSet001\Services\Ramdriv\Parameters","DiskSize",0x00010001,0x02000000 HKLM,"ControlSet001\Services\Ramdriv\Parameters","DriveLetter",0000000000,"Z:" HKLM,"ControlSet001\Services\Ramdriv\Parameters","RootDirEntries",0x00010001,0x200 HKLM,"ControlSet001\Services\Ramdriv\Parameters","SectorsPerCluster",0x00010001,0x2 HKLM,"ControlSet001\Services\Ramdriv\Enum","0",0000000000,"Root\UNKNOWN\9999" HKLM,"ControlSet001\Services\Ramdriv\Enum","Count",0x00010001,0x1 HKLM,"ControlSet001\Services\Ramdriv\Enum","NextInstance",0x00010001,0x1 ; ; End - Ramdisk [ QSoft ] Free Version ; 4. Modify CONFIG.INF using the following info Change setupreg.hiv = .\winpesys.inf,AddReg - to - setupreg.hiv = .\winpesys.inf,AddReg,.\WINPE_RAMDISK.INF,AddReg 5. Insert the Windows XP SP2 CD-ROM (F: in this example). Start a command prompt and type this. cd c:\winpe mkimg.cmd F: c:\mywinpe 6. Extract the downloaded Ramdisk (installfiles.zip). Rename RAMDisk.inf to ramdrv.inf and rename RAMDisk.sys to ramdrv.sys 7. Edit ramdrv.inf, do a search and replace of ramdisk.sys with ramdrv.sys 8. Copy the ramdrv.inf file to c:\mywinpe\i386\inf 9. Copy the ramdrv.sys file to c:\mywinpe\i386\system32\drivers 10. Create a Bootable CD by starting a command prompt and type this. cd c:\winpe oscdimg -h -n -betfsboot.com c:\mywinpe c:\mywinpe.iso 11. Burn the .iso to a CD using Nero or other cdr burning software Reference FILE: Ramdisk.sys Sample Driver for Windows 2000 http://support.microsoft.com/?id=257405 Christiaan Ghijselinck's RAMDisk http://www.8ung.at/ramdisk/RAMDisk/RAMDisk_Free.htm