Tutorial to add a ramdrive to Windows PE:
Note: You must use the Windows PE specivic Ramdisk driver!
This seems to be the problem for most users!
You can find it here (more detailed explained below):
http://download.microsoft.com/download/win...ploymentKit.exe
To create a custom version of Windows PE:
1. Create a Folder on your Harddisk (maybe call it OWN)
2. Copy the content of \WINPE of your original WINPE-CD to the previeusliy installed directory so that this direktory contain this:
Verzeichnis von E:\OWN
03.02.2003 08:04 <DIR> .
03.02.2003 06:33 <DIR> ..
28.08.2002 17:08 38.400 BLDHIVES.EXE
13.09.2002 12:38 99.085 BUILDOPTIONALCOMPONENTS.VBS
28.08.2002 13:00 2.096 CONFIG.INF
14.09.2002 14:04 90.112 DEFAULT
28.08.2002 17:09 13.312 DEPEND.EXE
28.08.2002 17:09 8.192 DSKIMAGE.EXE
28.08.2002 17:30 68.608 EFINVR.EXE
25.03.2002 11:53 2.048 ETFSBOOT.COM
09.09.2002 02:21 11.966 EULA.TXT
13.09.2002 13:38 2.818 EXTRA.INF
17.08.2001 04:03 70.683 FONT.INF
22.08.2001 21:00 212.893 HIVECLS.INF
22.08.2001 21:00 152.986 HIVEDEF.INF
22.08.2001 21:00 299.169 HIVESFT.INF
22.08.2001 21:00 333.380 HIVESYS.INF
22.08.2001 21:00 163.801 HIVEUSD.INF
28.08.2002 17:30 305.664 IA64FACTORY.EXE
28.08.2002 17:30 33.280 IA64NETCFG.EXE
22.08.2001 21:00 807.322 INTL.INF
13.09.2002 13:32 8.636 MKIMG.CMD
28.08.2002 17:08 55.808 OEMMINT.EXE
28.08.2002 13:20 75.776 OSCDIMG.EXE
25.03.2002 11:53 0 SAM
25.03.2002 11:53 0 SAM.LOG
25.03.2002 11:53 0 SECURITY
25.03.2002 11:53 0 SECURITY.LOG
14.09.2002 14:04 147.456 SETUPREG.HIV
14.09.2002 14:04 630.784 SOFTWARE
25.03.2002 11:53 0 SOFTWARE.LOG
25.03.2002 11:54 106 STARTNET.CMD
25.03.2002 11:54 14 STARTOPK.CMD
25.03.2002 11:54 167 WINBOM.INI
28.08.2002 13:00 1.224 WINPEDEF.INF
25.03.2002 11:54 1.190 WINPEOEM.SIF
28.08.2002 13:00 30.802 WINPESFT.INF
28.08.2002 13:00 99.116 WINPESYS.INF
25.03.2002 11:54 11.463 WPEMSCLI.INF
25.03.2002 11:54 2.042 WPENB.INF
12.07.2002 10:42 20.573 WPETCPIP.INF
28.08.2002 17:08 120.832 X86FACTORY.EXE
28.08.2002 17:08 15.360 X86NETCFG.EXE
41 Datei(en) 3.937.164 Bytes
2 Verzeichnis(se), 0 Bytes frei
3. Rename X86FACTORY.EXE to Factory.exe and X86NETCFG.EXE to NETCFG.EXE Note that this is for X86 systems.
4. Edit the WinPESys.inf like following ( you can also use an already modified version, see step 5):
Locate the string "; Nls" (without the quotes).
The following text should be inserted immediately following the Nls registry key settings.
------------------------------------------------------------------------------------------------------------------------------------------
;
;RAMDRV (SAMPLE) Implementation (Based on Rajuram - DDK Support)
;ENTRIES ADDED BY (Sivakn - DS OPK Support)
;
HKLM,"SYSTEM\ControlSet001\Control\Class\{78A1C341-4539-11D3-B88D-
00C04FAD5171},"Class",0000000000,"Sample"
HKLM,"SYSTEM\ControlSet001\Control\Class\{78A1C341-4539-11D3-B88D-
00C04FAD5171},"Icon",0000000000,"-5"
HKLM,"SYSTEM\ControlSet001\Control\Class\{78A1C341-4539-11D3-B88D-
00C04FAD5171}\0000","DriverDate",0000000000,"11-14-1999"
HKLM,"SYSTEM\ControlSet001\Control\Class\{78A1C341-4539-11D3-B88D-
00C04FAD5171}\0000","DriverDesc",0000000000,"Ramdrv Driver"
HKLM,"SYSTEM\ControlSet001\Control\Class\{78A1C341-4539-11D3-B88D-
00C04FAD5171}\0000","DriverVersion",0000000000,"5.0.2183.1"
HKLM,"SYSTEM\ControlSet001\Control\Class\{78A1C341-4539-11D3-B88D-
00C04FAD5171}\0000","InfPath",0000000000,"ramdrv.inf"
HKLM,"SYSTEM\ControlSet001\Control\Class\{78A1C341-4539-11D3-B88D-
00C04FAD5171}\0000","InfSection",0000000000,"DiskInstall"
HKLM,"SYSTEM\ControlSet001\Control\Class\{78A1C341-4539-11D3-B88D-
00C04FAD5171}\0000","InfSectionExt",0000000000,".NT"
HKLM,"SYSTEM\ControlSet001\Control\Class\{78A1C341-4539-11D3-B88D-
00C04FAD5171}\0000","MatchingDeviceId",0000000000,"ramdrv"
HKLM,"SYSTEM\ControlSet001\Control\Class\{78A1C341-4539-11D3-B88D-
00C04FAD5171}\0000","ProviderName",0000000000,"Microsoft"
HKLM,"SYSTEM\ControlSet001\Enum\Root\SAMPLE",,0x00000010
HKLM,"SYSTEM\ControlSet001\Enum\Root\SAMPLE\0000","Capabilities",0x00010001,0x0
HKLM,"SYSTEM\ControlSet001\Enum\Root\SAMPLE\0000","Class",0000000000,"Sample"
HKLM,"SYSTEM\ControlSet001\Enum\Root\SAMPLE\0000","ClassGUID",0000000000,
"{78A1C341-4539-11D3-B88D-00C04FAD5171}"
HKLM,"SYSTEM\ControlSet001\Enum\Root\SAMPLE\0000","ConfigFlags",0x00010001,0x4
HKLM,"SYSTEM\ControlSet001\Enum\Root\SAMPLE\0000","DeviceDesc",0000000000,"Ramdrv Driver"
HKLM,"SYSTEM\ControlSet001\Enum\Root\SAMPLE\0000","Driver",0000000000,
"{78A1C341-4539-11D3-B88D-00C04FAD5171}\0000"
HKLM,"SYSTEM\ControlSet001\Enum\Root\SAMPLE\0000","HardwareID",0x00010000,"ROOT\ramdrv"
HKLM,"SYSTEM\ControlSet001\Enum\Root\SAMPLE\0000","Mfg",0000000000,"Microsoft"
HKLM,"SYSTEM\ControlSet001\Enum\Root\SAMPLE\0000","Service",0000000000,"Ramdrv"
HKLM,"SYSTEM\ControlSet001\Enum\Root\SAMPLE\0000\Control","ActiveService",0000000000,"Ramdrv"
HKLM,"SYSTEM\ControlSet001\Enum\Root\SAMPLE\0000\LogConf",,0x00000010
HKLM,"SYSTEM\ControlSet001\Services\ramdrv","DisplayName",0000000000,"Ramdrv Driver"
HKLM,"SYSTEM\ControlSet001\Services\ramdrv","ErrorControl",0x00010001,0x1
HKLM,"SYSTEM\ControlSet001\Services\ramdrv","ImagePath",0x00020000,
"System32\DRIVERS\ramdrv.sys"
HKLM,"SYSTEM\ControlSet001\Services\ramdrv","Start",0x00010001,0x0
HKLM,"SYSTEM\ControlSet001\Services\ramdrv","Type",0x00010001,0x1
HKLM,"SYSTEM\ControlSet001\Services\ramdrv\Enum","0",0000000000,"ROOT\SAMPLE\0000"
HKLM,"SYSTEM\ControlSet001\Services\ramdrv\Enum","Count",0x00010001,0x1
HKLM,"SYSTEM\ControlSet001\Services\ramdrv\Enum","NextInstance",0x00010001,0x1
HKLM,"SYSTEM\ControlSet001\Services\ramdrv\Parameters","BreakOnEntry",0x00010001,0x0
HKLM,"SYSTEM\ControlSet001\Services\ramdrv\Parameters","DebugComp",
0x00010001,0xffffffff
HKLM,"SYSTEM\ControlSet001\Services\ramdrv\Parameters","DebugLevel",0x00010001,0x0
HKLM,"SYSTEM\ControlSet001\Services\ramdrv\Parameters","DiskSize",0x00010001,0x400000
HKLM,"SYSTEM\ControlSet001\Services\ramdrv\Parameters","DriveLetter",0000000000,"R:"
HKLM,"SYSTEM\ControlSet001\Services\ramdrv\Parameters","RootDirEntries",0x00010001,0x200
HKLM,"SYSTEM\ControlSet001\Services\ramdrv\Parameters","SectorsPerCluster",0x00010001,0x2
;
; END ENTRIES ADDED by (sivakn - RAMDRV SUPPORT)
;
------------------------------------------------------------------------------------------------------------------------------------------
The default drive letter for the RAM disk drive will be R:. It is defined by the reg key:
HKLM\System\ControlerSet001\Services\ramdrv\Parameters\DriveLetter
The default size for the RAM disk drive is 4MB. It is defined by the reg key:
HKLM\System\ControlerSet001\Services\ramdrv\Parameters\DiskSize
5.Get the ram disk driver files. These files are provided in the MSA EDC Deployment Kit.
Look here and use this driver.
Note Using any other Driver will fail!!!!!!!
I think this is the main Problem for most users:
http://download.microsoft.com/download/win...ploymentKit.exe
Execute this file and let it extract to a Folder (maybe MSDEP)
In the directory MSDEP\EDCAPFDeployment\WinPESupport
you will find the ramdisk drivers needet and also an working WinPESys.inf .
6. Build the Windows PE Files from an Windows XP Pro
Mkimg.cmd source /ownPE/
Source must be the path to an Windows XP PRo CD or the path to the I386 Folder of an Windows XP Pro.
Windows Pe will be build to /ownpe/
7. Go to the created /ownpe/ and add the downloaded Ramdrive to it:
Put the RAMDrv.sys to \i386\System32\Drivers and
RAMDrv.inf to \i386\inf
8. Use Oscdimg.exe to build the Image and burn it.
Optionally you can only build the Registry files and add the new registry files and the ramdisk driver to your existing windows PE so you would not need an Windows XP Pro.
Hope this will help a bit!