做一份备忘录
采用imdisk的注册表方式开机自动加载所需的镜像文件
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\ImDisk\Parameters]
"LoadDevices"=dword:00000002
"Size0"=hex(b):00,00,00,08,00,00,00,00
"ImageOffset0"=hex(b):00,10,00,00,00,00,00,00
"FileName0"="\\DosDevices\\D:\\1.vhd"
"DriveLetter0"="O"
"DriveLetter1"="R"
"FileName1"="\\??\\physicaldrive0"
"Flags0"=dword:00000000
"ImageOffset1"=hex(b):00,00,00,c0,07,00,00,00
"Size1"=hex(b):00,00,00,c0,00,00,00,00
一个是用1.vhd开机挂载,另一个是把扇区序列拿来开机挂载了
其中flagsx参数如果修改为0x200 会把镜像加载到内存
已经win7 64位测试成功了
|