在WinPE中如何多建立一个Ramdisk盘
解开winpe.is_,得到winpe.iso,然后提取setupreg.hiv,用注册表编辑器加载到HKEY_LOCAL_MACHINE下,取名为!system,然后导入下面这个reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\!system] [HKEY_LOCAL_MACHINE\!system\ControlSet001] [HKEY_LOCAL_MACHINE\!system\ControlSet001\Enum] [HKEY_LOCAL_MACHINE\!system\ControlSet001\Enum\Root] [HKEY_LOCAL_MACHINE\!system\ControlSet001\Enum\Root\UNKNOWN] [HKEY_LOCAL_MACHINE\!system\ControlSet001\Enum\Root\UNKNOWN\9999]
"ClassGUID"="{FFA1C341-4539-11D3-B88D-00C04FAD5172}"
"Class"="RamDisk"
"ConfigFlags"=dword:00000004
"Mfg"="Nu2 Productions"
"HardwareID"=hex(7):72,00,61,00,6d,00,64,00,72,00,69,00,76,00,00,00,00,00
"Service"="Ramdriv"
"DeviceDesc"="Ramdisk"
"Capabilities"=dword:00000000
"Driver"="{FFA1C341-4539-11D3-B88D-00C04FAD5172}\\0001" [HKEY_LOCAL_MACHINE\!system\ControlSet001\Enum\Root\UNKNOWN\9999\Control]
"DisableCount"=dword:00000000
"ActiveService"="Ramdriv"
"FilteredConfigVector"=hex(7):30,00,30,00,00,00,30,00,30,00,00,00,30,00,30,00,\
00,00,30,00,30,00,00,00,30,00,30,00,00,00,30,00,30,00,00,00,30,00,30,00,00,\
00,30,00,30,00,00,00,30,00,30,00,00,00,30,00,30,00,00,00,30,00,30,00,00,00,\
30,00,30,00,00,00,00,00 [HKEY_LOCAL_MACHINE\!system\ControlSet001\Services] [HKEY_LOCAL_MACHINE\!system\ControlSet001\Services\Ramdriv]
"Type"=dword:00000001
"Start"=dword:00000003
"ErrorControl"=dword:00000001
"DisplayName"="Ramdisk"
"ImagePath"="system32\\drivers\\ramdriv.sys" [HKEY_LOCAL_MACHINE\!system\ControlSet001\Services\Ramdriv\Enum]
"0"="Root\\UNKNOWN\\9999"
"Count"=dword:00000001
"NextInstance"=dword:00000001 [HKEY_LOCAL_MACHINE\!system\ControlSet001\Services\Ramdriv\Parameters]
"BreakOnEntry"=dword:00000000
"DebugLevel"=dword:00000005
"DebugComp"=dword:ffffffff
"DiskSize"=dword:00100000
"DriveLetter"="B:"
"RootDirEntries"=dword:00000200
"SectorsPerCluster"=dword:00000002
其中DiskSize是内存盘的大小,DriveLetter是内存盘盘符
DiskSize是内存盘的大小
32 m 0x02000000
64 m 0x04000000
96 m 0x06000000
128 m 0x08000000
最后把修改好的setupreg.hiv卸载并放回winpe.iso中,system32\drivers还要加入Ramdriv.sys。
另外可以把Ramdriv.sys 改名,并修改相关的注册表就可再建其它Ramdisk盘
(责任编辑:www.upzxt.com)