|
原帖由 keai958 于 2011-1-17 21:51 发表
好吧,提供几条命令,你自己整理下用吧
打开CMD(一定要管理员权限,PE下的system权限也可以)
挂载vhd:diskpart→select vdisk file="*.vhd" →attach vdisk(如果已经格式化过,多数会自动分配盘 ...
用以上的方法只能用在XP系统上,但是win2003的vboot内文件是vbootsmp.sys,inf配置是
;---------------------------------------------------------------------------
---
; vbootsmp.inf
; INF file to install the VMLite VBoot virtual disk adapter
; Copyright (C) VMLite 2010
;---------------------------------------------------------------------------
---
[Version]
Signature = "$Windows NT$"
Provider = "VMLite Inc."
Class = SCSIAdapter
ClassGUID = {4D36E97B-E325-11CE-BFC1-08002BE10318} ; scsi adapter
class guid
CatalogFile = vbootsmp.cat
DriverVer=05/15/2011,3.2.6.28941
[DestinationDirs]
DefaultDestDir = 12
[Manufacturer]
"VMLite" = Models, NTamd64 ; x86, x64 supported
[Models]
%ADAPTERNAME% = vbootsmp, root\vbootsmp
[Models.NTamd64]
%ADAPTERNAME% = vbootsmp, root\vbootsmp
[vbootsmp]
CopyFiles = @vbootsmp.sys
AddReg = vbootsmp.Registry
[vbootsmp.Registry]
HKR, , LocationInformationOverride,,Virtual
[vbootsmp.Services]
AddService = vbootsmp, 2, Service
[Service]
ServiceType = %SERVICE_KERNEL_DRIVER%
StartType = %SERVICE_BOOT_START%
ErrorControl = %SERVICE_ERROR_IGNORE%
;LoadOrderGroup = SCSI Miniport
ServiceBinary = %12%\vbootsmp.sys
AddReg = Registry
[Registry]
HKR, "Parameters\Device", "DriverParameter", 0x00000000, "c:\vbootsmp.vhd" ;
virtual disk filename
[SourceDisksFiles]
vbootsmp.sys = 1
[SourceDisksNames.x86]
1 = %DISKNAME%,,, ; 32-bit
[SourceDisksNames.amd64]
1 = %DISKNAME%,,, ; amd64
[Strings]
;
; Localizable Strings
;
DISKNAME = "Install Disk"
ADAPTERNAME = "VMLite VBoot Virtual Disk SCSI Storport Adapter"
;
; Non-Localizable Strings
;
REG_DWORD = 0x00010001
SERVICE_KERNEL_DRIVER = 1
SERVICE_BOOT_START = 0
SERVICE_DEMAND_START = 3
SERVICE_ERROR_IGNORE = 0
请问如何修改注册表?谢谢! |
|