|
打开Win7PE的WIM镜像;
将Win7PE系统目录里的system32\config\system注册表配置文件挂载为SYS,然后导入如下注册表:- Windows Registry Editor Version 5.00
- [HKEY_LOCAL_MACHINE\sys\ControlSet001\services\ImDisk]
- "Type"=dword:00000001
- "Start"=dword:00000001
- "ErrorControl"=dword:00000000
- "ImagePath"="system32\\DRIVERS\\imdisk.sys"
- "DisplayName"="ImDisk Virtual Disk Driver"
- "Description"="Disk emulation driver"
- [HKEY_LOCAL_MACHINE\sys\ControlSet001\services\ImDisk\Enum]
- "0"="Root\\LEGACY_IMDISK\\0000"
- "Count"=dword:00000001
- "NextInstance"=dword:00000001
- [HKEY_LOCAL_MACHINE\sys\ControlSet001\Enum\Root\LEGACY_IMDISK]
- "NextInstance"=dword:00000001
- [HKEY_LOCAL_MACHINE\sys\ControlSet001\Enum\Root\LEGACY_IMDISK\0000]
- "Service"="ImDisk"
- "Legacy"=dword:00000001
- "ConfigFlags"=dword:00000000
- "Class"="LegacyDriver"
- "ClassGUID"="{8ECC055D-047F-11D1-A537-0000F8753ED1}"
- "DeviceDesc"="ImDisk Virtual Disk Driver"
- [HKEY_LOCAL_MACHINE\sys\ControlSet001\Enum\Root\LEGACY_IMDISK\0000\Control]
- "*NewlyCreated*"=dword:00000000
- "ActiveService"="ImDisk"
复制代码 然后卸载system注册表配置文件
之后再将imdisk.sys驱动文件放到Win7PE的system32\drivers目录,imdisk.exe放在system32目录。
保存修改后的WIM镜像就可以了。
要虚拟内存盘还需在PECMD的配置文件用 RAMD命令或调用批处理来生成。
[ 本帖最后由 yjstone 于 2011-4-13 20:18 编辑 ] |
|