Jump to content











Photo
- - - - -

need helping installing winvblock to VHD (g4d boot)


  • Please log in to reply
3 replies to this topic

#1 ndog37

ndog37

    Member

  • Members
  • 88 posts
  •  
    New Zealand

Posted 04 October 2015 - 12:22 PM

I have been at my computer all day trying to get this to work and want to cry

The frustrating thing, is that it used to work in the past, and now i can't figure out why it doesnt work.

 

I was hoping someone who actually knows how to install winvblock into offline windows XP could look at what is wrong with my script

 

I keep getting STOP 7b.

This computer I am testing on currently is set to native IDE and does not need an extra driver

 

I am using

- winvblock from wimb IMG_XP\WinVBlock_Install

- grub4dos 0.4.6a

- windows xp wim file, tested several wims which are working ok with normal install, (not to fixed VHD)

 

install.cmd

@echo off&cls

set _wvbDir=\\server\dir\IMG_XP\WinVBlock_Install
set _vhd=d:\wXP-7GB.vhd

echo.
echo Create 7 GB VHD - 913 cyliners, 255 heads, 63 sectors = 14667345 * 512 = 7509680640
del "%_vhd%" 2>nul
fsutil file createnew "%_vhd%" 7509680640

echo.
echo Mount disk with winvblock
"%_wvbDir%\winvblk.exe" -cmd attach -m h -u "%_vhd%"
ping localhost -n 3 >nul

echo.
echo change disk letter to m:
set _tmp=%temp%\dp.lst
for /f "tokens=2" %%g in ('echo list dis ^| diskpart ^| find "716"') do (
  echo sel dis %%g >"%_tmp%"
  echo cre par pri >>"%_tmp%"
  echo sel par 1 >>"%_tmp%"
  echo ass letter=M >>"%_tmp%"
  )
diskpart /s "%_tmp%"
del "%_tmp%" 2>nul >nul

echo.
echo format m:
echo WARNING THIS WILL TAKE OVER 2~3 MINUTES TO START FORMATTING THE DRIVE!!!
format m: /fs:ntfs /v:WINXP /y

echo.
echo Use imagex to apply wim to m:
"\\server\dir\imagex(x86).exe" /apply "\\server\dir\winxp\sysprep.wim" 1 m:

echo.
echo Make m: bootable
"\\server\dir\bootsect(x86).exe" /nt52 m: /force

echo.
echo fix_hdc.cmd - massstorage drivers into registry
:: fix_hdc by cd0b - not neccesary as this computer uses native IDE
REM start /wait "" "\\server\dir\hdc_xp\fix_hdc.cmd" -t m:\Windows


echo.
echo Install winvblock into registry
copy /y "%_wvbDir%\WVBlk32.sys" "m:\Windows\system32\drivers"
reg UNLOAD HKLM\SYSTEM_00 >nul 2>&1
reg LOAD HKLM\SYSTEM_00 M:\WINDOWS\system32\config\SYSTEM >nul 2>&1
rem detect CurrentControlSet
for /f "tokens=3" %%a in ('reg.exe query "HKLM\SYSTEM_00\Select" /v "Current"') do set /a ControlSet=%%a
set ControlSet=00000%ControlSet%
set ControlSet=ControlSet%ControlSet:~-3%
echo. &echo ControlSet "%ControlSet%" used.

echo.
echo --== generate WinVBlock registry entries ==--
 (echo REGEDIT4
  echo.
  echo [HKEY_LOCAL_MACHINE\SYSTEM_00\%ControlSet%\Enum\Root\WinVBlock]
  echo [HKEY_LOCAL_MACHINE\SYSTEM_00\%ControlSet%\Enum\Root\WinVBlock\0000]
  echo "ConfigFlags"=dword:00000000
  echo "Legacy"=dword:00000000
  echo "DeviceReported"=dword:00000001
  echo "Service"="WinVBlock"
  echo "Capabilities"=dword:00000000
  echo "ClassGUID"="{4D36E97B-E325-11CE-BFC1-08002BE10318}"
  echo "Class"="SCSIAdapter"
  echo "Driver"="{4D36E97B-E325-11CE-BFC1-08002BE10318}\\0001"
  echo "Mfg"="WinVBlock"
  echo "DeviceDesc"="WinVBlock Bus"
  echo "ParentIdPrefix"="1&2509509&0"
  echo [HKEY_LOCAL_MACHINE\SYSTEM_00\%ControlSet%\Enum\Root\WinVBlock\0000\LogConf]
  echo [HKEY_LOCAL_MACHINE\SYSTEM_00\%ControlSet%\Enum\Root\WinVBlock\0000\Control]
  echo "ActiveService"="WinVBlock"
  echo.
  echo [HKEY_LOCAL_MACHINE\SYSTEM_00\%ControlSet%\Services\WinVBlock]
  echo "DisplayName"="WinVBlock"
  echo "Group"="SCSI miniport"
  echo "Type"=dword:00000001
  echo "Start"=dword:00000000
  echo "Group"="SCSI miniport"
  echo "ErrorControl"=dword:00000001
  echo "PdoDone"=dword:00000001
  echo "Tag"=dword:00000022
  echo.
  echo [HKEY_LOCAL_MACHINE\SYSTEM_00\%ControlSet%\Services\WinVBlock\Enum]
  echo "0"="Root\\WinVBlock\\0000"
  echo "Count"=dword:00000001
  echo "NextInstance"=dword:00000001
  echo.
  echo.
  echo [HKEY_LOCAL_MACHINE\SYSTEM_00\%ControlSet%\Control\Class\{4D36E97B-E325-11CE-BFC1-08002BE10318}]
  echo "LegacyAdapterDetection"=dword:00000000
  echo "Class"="SCSIAdapter"
  echo @="SCSI and RAID controllers"
  echo "Installer32"="SysSetup.Dll,ScsiClassInstaller"
  echo "Icon"="-10"
  echo "LegacyInfOption"="SCSI"
  echo.
  echo.
 )>"%temp%\install_winvblock.reg"

echo.
echo --== import registry key (as SYSTEM) ==--
:: bartPE - does not require psexec to import permissions
"%~dp0PsExec.exe" -i -s /accepteula reg import "%temp%\install_winvblock.reg"
"%~dp0PsExec.exe" -i -s /accepteula reg add "HKLM\SYSTEM_00\%ControlSet%\Enum\Root\WinVBlock\0000" /v "CompatibleIDs" /t REG_MULTI_SZ /d "DETECTEDInternal\WVBlk32\0DETECTED\WVBlk32\0" /f
"%~dp0PsExec.exe" -i -s /accepteula reg add "HKLM\SYSTEM_00\%ControlSet%\Services\WinVBlock" /v "ImagePath" /t REG_EXPAND_SZ /d "System32\Drivers\WVBlk32.Sys" /f

pause

:: unload registry
reg UNLOAD HKLM\SYSTEM_00 >nul 2>&1

echo.
echo Unmount disk
ping localhost -n 5 >nul
"%_wvbDir%\winvblk.exe" -cmd detach -d 1

menu.lst

title wXP-7GB.vhd - WinVBlock driver - 7000 MB
find --set-root --ignore-floppies /wXP-7GB.vhd
map /wXP-7GB.vhd (hd0)
map --hook
root (hd0,0)
chainloader /ntldr

I am just continually tweaking the registry script to import the correct settings for winvblock, but it simply refuses to work. Ah make me crazy...... Maybe somelike like shao or wonko can help i will be so grateful.



#2 Wonko the Sane

Wonko the Sane

    The Finder

  • Advanced user
  • 15386 posts
  • Location:The Outside of the Asylum (gate is closed)
  •  
    Italy

Posted 04 October 2015 - 01:14 PM

Well, I guess you need somehow to explicit the "correct settings for WinVblock".

 

I am not sure there is an actual verified record of them. :dubbio:

 

In any case, since the idea is that of modifying an offline Registry, you could use an offline registry tool (it won't in any way solve the issue if the settigns are "wrong", but at least you won't have to "translate" to SYSTEM_00 or whatever):

http://reboot.pro/to...fline-registry/

 

Another "random" thought (again not an answer to your question :(), would Integratedrv work with Winvblock? MSSTmake seemingly doesn't:

http://www.msfn.org/...p-v3851/page-10

http://reboot.pro/to...d-boot-from-it/

 

But what about installing "normally" the Winvblock through setup before capturing the .wim? 

 

:duff:

Wonko



#3 ndog37

ndog37

    Member

  • Members
  • 88 posts
  •  
    New Zealand

Posted 06 October 2015 - 09:42 AM

Hi Wonko

Thanks for your suggestion.

I rebuilt the windows XP ISO with ryanvm, installed fresh to a VMware, installed winvblock, syspreped, shutdown, injected the universal HAL driver and re captured the wim file.

I then ran the above process, without the modifying the registry, however it still throws the 7b error.

My next steps will be to use a vanilla windows XP, and if that fails, to locate a different winvblock version.

Will keep you posted

edit:
tried older winvblock driver and installed with sc create method which failed too

Edited by ndog37, 06 October 2015 - 10:09 AM.


#4 Wonko the Sane

Wonko the Sane

    The Finder

  • Advanced user
  • 15386 posts
  • Location:The Outside of the Asylum (gate is closed)
  •  
    Italy

Posted 07 October 2015 - 04:49 PM

For the sake of the experiment, use Qemu instead of VmWare (it is slower, but it uses more standard hardware and you need not to inject the "Standard dual PCI IDE controller" as that is what is natively used).

 

Also, from your post it is not clear (to me at least) if you actually tested a copy of the (working) "original" against the one created by applying the .wim to a new .vhd.

 

I mean, why don't you simply try creating a "universal" XP .img (or VHD) using wimb's tool and check what (different) settings in the Registry (related to Winvblock or to other drivers/whatever) it creates when compared to the one created through your procedure?

http://reboot.pro/to...-and-windows-7/

 

:duff:

Wonko






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users