IPB

Welcome Guest ( Log In | Register )

> FixIDE Plugin, All files for the fixide plugin
allow
post Sep 5 2007, 04:34 AM
Post #1


Silver Member
***

Group: Members
Posts: 103
Joined: 16-October 03
Member No.: 2,062



As people keep asking me for the FixIDE Plugin, and as my website is down, i decided to put it in this forum.

This is an updated version made by Daniel Lamb, and i did not use it for fixing any system yet, so please post if it works for you or not...

At the moment it can be downloaded from http://www.dlcomputing.co.uk/fixide/

OK:
- make a folder called fixide under plugins
- inside fixide make a folder called files
- inside fixide\files make a folder called sata
- inside fixide\files make a folder called ide

in plugins\fixide put these files

fixide.inf
CODE
; Fixide, see readme.txt
; made by Markus Debus www.pecd.net

[Version]
Signature= "$Windows NT$"

[PEBuilder]
Name="APP: FIX IDE trouble after changing Mainboard/IDE controller - www.pecd.net"
Enable=1
Help="fixide.htm"
version=0.4.3

[WinntDirectories]
a="Programs\fixide",2

[SourceDisksFolders]
files=a

[Append]
nu2menu.xml, fixide_nu2menu.xml


fixide_nu2menu.xml

CODE
<NU2MENU>
<MENU ID="Programs">               
<MITEM TYPE="POPUP" DISABLED="@Not(@FileExists(@GetWindir()\system32\*.*))" MENUID="FIXIDE">FIX-IDE</MITEM>
</MENU>

<MENU ID="FIXIDE">               
<MITEM TYPE="ITEM" CMD="RUN" FUNC="@SetEnvVar('target_root', @GetFolderDialog('Select target windows directory. (for example c:\windows)', @GetEnvVar('target_root'))) @Reload()">FIRST Set Target Root (current=@GetEnvVar('target_root'))</MITEM>
<MITEM TYPE="ITEM" DISABLED="@Not(@FileExists(@GetProgramDrive()\programs\fixide\ide\fixide.cmd))" CMD="RUN" FUNC="@GetProgramDrive()\programs\fixide\ide\fixide.cmd">Fix IDE</MITEM>
<MITEM TYPE="ITEM" DISABLED="@Not(@FileExists(@GetProgramDrive()\programs\fixide\sata\fixsata.cmd))" CMD="RUN" FUNC="@GetProgramDrive()\programs\fixide\sata\fixsata.cmd">Fix SATA</MITEM>
</MENU>


</NU2MENU>



fixide.htm

CODE
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title>FixIDE</title>
  <meta content="Daniel Lamb" name="author">
</head>

<body>


<p class="MsoNormal"><i><span lang="EN-GB">BartPE  plugin</span></i><span lang="EN-GB"> <o:p></o:p></span></p>


<div class="MsoNormal" style="text-align: center;" align="center"><span lang="EN-GB">

<hr align="center" size="2" width="100%">

</span></div>


<h1>APP: FixIDE<br>

<span style="font-size: 12pt;">v 1</span><o:p></o:p></h1>


<p>FixIDE by Markus Debus (info@citro-computer.de) changed by Daniel Lamb<br>

Ideas and help from samplempg, dani2, joshua<o:p></o:p></p>


<p>Homepage: <a href="http://www.pecd.net/" target="_blank">http://www.dlcomputing.co.uk/fixide</a><o:p></o:p></p>


<div class="MsoNormal" style="text-align: center;" align="center"><span lang="EN-GB">

<hr align="center" size="2" width="100%">

</span></div>


<p><strong>General:</strong><o:p></o:p></p>


<p>info on this plugin can be found at <br>

<a href="http://www.pecd.net/" target="_blank">http://www.dlcomputing.co.uk/fixide</a></p>


<p><a href="http://support.microsoft.com/default.aspx?scid=kb;en-us;Q314082" target="_blank">http://support.microsoft.com/default.aspx?scid=kb;en-us;Q314082</a><br>

<a href="http://support.microsoft.com/default.aspx?scid=kb;de;271965" target="_blank">http://support.microsoft.com/default.aspx?scid=kb;de;271965</a>
(sorry german, could not find the us version)<o:p></o:p></p>


<p><strong>Files you may need:</strong><o:p></o:p></p>


<p>reg.exe <br>

You may already have it in your WinPE, so check first.<br>

If not, get it from <a href="http://www.dynawell.com/reskit/microsoft/win2000/reg.zip" target="_blank">http://www.dynawell.com/reskit/microsoft/win2000/reg.zip</a>
(or from Windows2000 ResourceKit)<o:p></o:p></p>


<p>expand.exe<br>

Should already be in your WinPE, else look in the system32 folder of your
windows<o:p></o:p></p>


<p>For SATA support you have to put the driver files in the dirs, see files.txt
(in each dir) for details.<o:p></o:p></p>


<p>For the OS detection to work you have to use the "Help plugin"
from <a href="http://www.pecd.net/" target="_blank">www.pecd.net</a>, or else
the regional settings of your WinPE are missing and the find command will not
work.<br>

This ist more ore less cosmetic, but the "Help plugin" can be useful,
so why not install it :-)<o:p></o:p></p>


<div class="MsoNormal" style="text-align: center;" align="center"><span lang="EN-GB">

<hr align="center" size="2" width="100%">

</span></div>


<p><strong>History:</strong><o:p></o:p></p>


<p>1</p>


<p>Made by Daniel Lamb, changed settings for registry keys to run with sp2. <o:p></o:p></p>


<p>0.4.4 <br>

added info about OS detection to readme<o:p></o:p></p>


<p>0.4.3<br>

fixed typo in XML<o:p></o:p></p>


<p>0.4a<br>

added better OS detection for fixide (OS detection is only for information,
igonre it if it gives errors)<br>

html help file added<o:p></o:p></p>


<p>0.4 <br>

added sata support based on files from joshua/dani2 (still untested)<br>

organized files in dirs<br>

fixed bug in 2k regfiles<o:p></o:p></p>


<p>0.3<br>

modified batch files<br>

added restore<o:p></o:p></p>


<p>0.2 <br>

fixed bad bug where importing the regfiles destroyed the registry<o:p></o:p></p>


<p>0.1 <br>

inital release<o:p></o:p></p>


<p> <o:p></o:p></p>


<div class="MsoNormal" style="text-align: center;" align="center"><span lang="EN-GB">

<hr align="center" size="2" width="100%">

</span></div>


<p><strong>Additional info:</strong><o:p></o:p></p>


<p>This text is from a package i received from dani2, and it may be helpful:<o:p></o:p></p>


<p>-- <o:p></o:p></p>


<p>Here are instructions on how to install drivers into your own system when
this program doesn't work.<o:p></o:p></p>


<p>1) Copy the inf files for your driver to your %systemroot%\inf directory<br>

2) Copy the .sys files for your driver to your %systemroot%\system32\drivers
directory<br>

3) Copy any .dll,.exe,.ini or any other files (they might not exist in your
driver) to your %systemroot%\system32 directory.<br>

4) If when you start this CD up and you see the SATA hard drive then this CD
nativley supports your SATA card. If it doesn't, create a driver diskette (make
sure txtsetup.oem is in the root of the floppy disk) and press F6 when starting
up DanitechPE. Follow the onscreen instructions on adding your driver into the
CD. Following this procedure will not add your driver to the CD as it is a
CDROM... but just for now it will work.<br>

5) Open up the inf file from the driver diskette for the target operating
system, and take note of the following information:<br>

- the PCIVEN lines<br>

- the service names<br>

- any other registry entries required by the drivers<br>

6) Open up the registry editor for the local computer (using ERD commander or
Bart's AVAST registry editor).<br>

7) Point to HKEY_LOCAL_MACHINE\ControlSet001\Control\CriticalDeviceDatabase<br>

8) Create a new key for each of the PCIVEN entries. Form your registry key like
this : pci#VEN_1106&DEV_3149<br>

9) Create two new strings under each key you create. <br>

" ClassGUID"="{4D36E97B-E325-11CE-BFC1-08002BE10318}"<br>

" Service"="servicename"<br>

where servicename is the name of the service listen in the inf file.<br>

10) Create the services used by the driver by pointing to
HKEY_LOCAL_MACHINE\ControlSet001\Services\servicename<br>

11) You need to create a few keys in here as well...<o:p></o:p></p>


<p>Dword - "ErrorControl"= 00000001<br>

String- "Group"="SCSI miniport"<br>

dword - "Start"= 00000000<br>

dword - "Tag"= 00000003<br>

dword - "Type"= 00000001<br>

MultiString Value - "ImagePath"=
"System32\Drivers\driverfile.sys" where <br>

driverfile.sys was the sys file you copied to the %systemroot%\system32\drivers
directory up in step 2<o:p></o:p></p>


<p>string - "DisplayName"="Whatever you want your driver to show
up as in the Device Manager"<o:p></o:p></p>


<p>12) Restart the system and hope it works! (It should though as long as you
followed these instructions properly...)<br>

13) I *STRONGLY* suggest you install the drivers from the diskette once you get
into windows, your driver might not be fully / properly installed by doing this
hacked method.<o:p></o:p></p>


<p><br>

Download this plugin at <a href="http://www.pecd.net/" target="_blank">http://www.dlcomputing.co.uk/fixide</a><o:p></o:p></p>

<p><o:p></o:p></p>


<div class="MsoNormal" style="text-align: center;" align="center"><span lang="EN-GB">

<hr align="center" size="2" width="100%">

</span></div>


<p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>

</body>
</html>


Put the following files inside fixide\files\ide

fixide.cmd
CODE
@Echo off
REM Fixide, see readme.txt
rem made by Markus Debus www.pecd.net

reg UNLOAD HKLM\SYSTEM_00
if "%target_root%" == "" goto error
if not exist %target_root% goto error

:Ask
cls
ECHO.
ECHO  Fix for Stop 0x0000007B Errors
ECHO.
ECHO  TargetRoot: %target_root%
ECHO  Drivers   : %target_root%\system32\drivers\
ECHO.
if not exist "%target_root%\system32\prodspec.ini" goto mscfg
FOR /F "tokens=1* delims==" %%A IN ('TYPE "%target_root%\system32\prodspec.ini" 2^>NUL ^| FINDSTR /I /B /R "DriverVer="') DO (
        SET RegKey1=%%~A
        SET RegVal1=%%~B
    )
)

FOR /F "tokens=1* delims==" %%A IN ('TYPE "%target_root%\system32\prodspec.ini" 2^>NUL ^| FINDSTR /I /B /R "Product="') DO (
        SET RegKey2=%%~A
        SET RegVal2=%%~B
    )
)
echo  System in %target_root% is %RegVal2% %RegVal1%
goto contin
:mscfg
if exist %target_root%\PCHealth\HelpCtr\Binaries\msconfig.exe echo System in %target_root% seems to be Windows XP or higher
if not exist %target_root%\PCHealth\HelpCtr\Binaries\msconfig.exe echo System in %target_root% seems to be Windows 2000
:contin
echo.
if exist %target_root%\system32\config\SYSTEM.fixide ECHO  Backup exists and can be restored
if not exist %target_root%\system32\config\SYSTEM.fixide ECHO  Backup does not exist and will be created
ECHO.
ECHO  (1) Fix Windows XP
ECHO  (2) Fix Windows 2000
ECHO.
if exist %target_root%\system32\config\SYSTEM.fixide ECHO  (R) Restore Backup
ECHO.
ECHO  (0) Do nothing and exit
ECHO.

set /p _task=Your choice ?

if "%_task%" == "1" goto WinXP
if "%_task%" == "2" goto Win2000
if "%_task%" == "R" goto restore
if "%_task%" == "r" goto restore
if "%_task%" == "0" goto end

:restore
echo restoring %target_root%\system32\config\SYSTEM
if exist %target_root%\system32\config\SYSTEM.fixsata move %target_root%\system32\config\SYSTEM.fixsata %target_root%\system32\config\SYSTEM
goto end

:error
Echo An error occoured, exiting...
pause
goto end

:WinXP
if not exist %target_root%\system32\config\SYSTEM.fixide echo creating backup of %target_root%\system32\config\SYSTEM
if not exist %target_root%\system32\config\SYSTEM.fixide copy %target_root%\system32\config\SYSTEM %target_root%\system32\config\SYSTEM.fixide
echo copying/expanding drivers from %target_root%\Driver Cache\i386\driver.cab
expand "%target_root%\Driver Cache\i386\driver.cab" -F:atapi.sys %target_root%\System32\Drivers
expand "%target_root%\Driver Cache\i386\driver.cab" -F:Intelide.sys %target_root%\System32\Drivers
expand "%target_root%\Driver Cache\i386\driver.cab" -F:Pciide.sys %target_root%\System32\Drivers
expand "%target_root%\Driver Cache\i386\driver.cab" -F:Pciidex.sys %target_root%\System32\Drivers
reg LOAD HKLM\SYSTEM_00 %target_root%\system32\config\SYSTEM
regedit /S fixidexp.reg
reg UNLOAD HKLM\SYSTEM_00
goto end

:Win2000
if not exist %target_root%\system32\config\SYSTEM.fixide echo creating backup of %target_root%\system32\config\SYSTEM
if not exist %target_root%\system32\config\SYSTEM.fixide copy %target_root%\system32\config\SYSTEM %target_root%\system32\config\SYSTEM.fixide
echo copying/expanding drivers from %target_root%\Driver Cache\i386\driver.cab
expand "%target_root%\Driver Cache\i386\driver.cab" -F:atapi.sys %target_root%\System32\Drivers
expand "%target_root%\Driver Cache\i386\driver.cab" -F:Intelide.sys %target_root%\System32\Drivers
expand "%target_root%\Driver Cache\i386\driver.cab" -F:Pciide.sys %target_root%\System32\Drivers
expand "%target_root%\Driver Cache\i386\driver.cab" -F:Pciidex.sys %target_root%\System32\Drivers
reg LOAD HKLM\SYSTEM_00 %target_root%\system32\config\SYSTEM
regedit /S fixide2k.reg
reg UNLOAD HKLM\SYSTEM_00
goto end

:end
pause


fixide2k.reg

CODE
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM_00\ControlSet001\Control\CriticalDeviceDatabase\primary_ide_channel]
"ClassGUID"="{4D36E96A-E325-11CE-BFC1-08002BE10318}"
"Service"="atapi"

[HKEY_LOCAL_MACHINE\SYSTEM_00\ControlSet001\Control\CriticalDeviceDatabase\secondary_ide_channel]
"ClassGUID"="{4D36E96A-E325-11CE-BFC1-08002BE10318}"
"Service"="atapi"

[HKEY_LOCAL_MACHINE\SYSTEM_00\ControlSet001\Control\CriticalDeviceDatabase\*pnp0600]
"ClassGUID"="{4D36E96A-E325-11CE-BFC1-08002BE10318}"
"Service"="atapi"

[HKEY_LOCAL_MACHINE\SYSTEM_00\ControlSet001\Control\CriticalDeviceDatabase\*azt0502]
"ClassGUID"="{4D36E96A-E325-11CE-BFC1-08002BE10318}"
"Service"="atapi"

[HKEY_LOCAL_MACHINE\SYSTEM_00\ControlSet001\Control\CriticalDeviceDatabase\gendisk]
"ClassGUID"="{4D36E967-E325-11CE-BFC1-08002BE10318}"
"Service"="disk"

[HKEY_LOCAL_MACHINE\SYSTEM_00\ControlSet001\Control\CriticalDeviceDatabase\pci#cc_0101]
"ClassGUID"="{4D36E96A-E325-11CE-BFC1-08002BE10318}"
"Service"="pciide"

[HKEY_LOCAL_MACHINE\SYSTEM_00\ControlSet001\Control\CriticalDeviceDatabase\pci#ven_0e11&dev_ae33]
"ClassGUID"="{4D36E96A-E325-11CE-BFC1-08002BE10318}"
"Service"="pciide"

[HKEY_LOCAL_MACHINE\SYSTEM_00\ControlSet001\Control\CriticalDeviceDatabase\pci#ven_1039&dev_0601]
"ClassGUID"="{4D36E96A-E325-11CE-BFC1-08002BE10318}"
"Service"="pciide"


[HKEY_LOCAL_MACHINE\SYSTEM_00\ControlSet001\Control\CriticalDeviceDatabase\pci#ven_1039&dev_5513]
"ClassGUID"="{4D36E96A-E325-11CE-BFC1-08002BE10318}"
"Service"="pciide"

[HKEY_LOCAL_MACHINE\SYSTEM_00\ControlSet001\Control\CriticalDeviceDatabase\pci#ven_1042&dev_1000]
"ClassGUID"="{4D36E96A-E325-11CE-BFC1-08002BE10318}"
"Service"="pciide"

[HKEY_LOCAL_MACHINE\SYSTEM_00\ControlSet001\Control\CriticalDeviceDatabase\pci#ven_105a&dev_4d33]
"ClassGUID"="{4D36E96A-E325-11CE-BFC1-08002BE10318}"
"Service"="pciide"

[HKEY_LOCAL_MACHINE\SYSTEM_00\ControlSet001\Control\CriticalDeviceDatabase\pci#ven_1095&dev_0640]
"ClassGUID"="{4D36E96A-E325-11CE-BFC1-08002BE10318}"
"Service"="pciide"

[HKEY_LOCAL_MACHINE\SYSTEM_00\ControlSet001\Control\CriticalDeviceDatabase\pci#ven_1095&dev_0646]
"ClassGUID"="{4D36E96A-E325-11CE-BFC1-08002BE10318}"
"Service"="pciide"

[HKEY_LOCAL_MACHINE\SYSTEM_00\ControlSet001\Control\CriticalDeviceDatabase\pci#ven_1097&dev_0038]
"ClassGUID"="{4D36E96A-E325-11CE-BFC1-08002BE10318}"
"Service"="pciide"

[HKEY_LOCAL_MACHINE\SYSTEM_00\ControlSet001\Control\CriticalDeviceDatabase\pci#ven_10ad&dev_0001]
"ClassGUID"="{4D36E96A-E325-11CE-BFC1-08002BE10318}"
"Service"="pciide"

[HKEY_LOCAL_MACHINE\SYSTEM_00\ControlSet001\Control\CriticalDeviceDatabase\pci#ven_10ad&dev_0150]
"ClassGUID"="{4D36E96A-E325-11CE-BFC1-08002BE10318}"
"Service"="pciide"

[HKEY_LOCAL_MACHINE\SYSTEM_00\ControlSet001\Control\CriticalDeviceDatabase\pci#ven_10b9&dev_5215]
"ClassGUID"="{4D36E96A-E325-11CE-BFC1-08002BE10318}"
"Service"="pciide"

[HKEY_LOCAL_MACHINE\SYSTEM_00\ControlSet001\Control\CriticalDeviceDatabase\pci#ven_10b9&dev_5219]
"ClassGUID"="{4D36E96A-E325-11CE-BFC1-08002BE10318}"
"Service"="pciide"

[HKEY_LOCAL_MACHINE\SYSTEM_00\ControlSet001\Control\CriticalDeviceDatabase\pci#ven_10b9&dev_5229]
"ClassGUID"="{4D36E96A-E325-11CE-BFC1-08002BE10318}"
"Service"="pciide"

[HKEY_LOCAL_MACHINE\SYSTEM_00\ControlSet001\Control\CriticalDeviceDatabase\pci#ven_1106&dev_0571]
"Service"="pciide"
"ClassGUID"="{4D36E96A-E325-11CE-BFC1-08002BE10318}"

[HKEY_LOCAL_MACHINE\SYSTEM_00\ControlSet001\Control\CriticalDeviceDatabase\pci#ven_8086&dev_1222]
"ClassGUID"="{4D36E96A-E325-11CE-BFC1-08002BE10318}"
"Service"="intelide"

[HKEY_LOCAL_MACHINE\SYSTEM_00\ControlSet001\Control\CriticalDeviceDatabase\pci#ven_8086&dev_1230]
"ClassGUID"="{4D36E96A-E325-11CE-BFC1-08002BE10318}"
"Service"="intelide"

[HKEY_LOCAL_MACHINE\SYSTEM_00\ControlSet001\Control\CriticalDeviceDatabase\pci#ven_8086&dev_2411]
"ClassGUID"="{4D36E96A-E325-11CE-BFC1-08002BE10318}"
"Service"="intelide"

[HKEY_LOCAL_MACHINE\SYSTEM_00\ControlSet001\Control\CriticalDeviceDatabase\pci#ven_8086&dev_2421]
"ClassGUID"="{4D36E96A-E325-11CE-BFC1-08002BE10318}"
"Service"="intelide"

[HKEY_LOCAL_MACHINE\SYSTEM_00\ControlSet001\Control\CriticalDeviceDatabase\pci#ven_8086&dev_7010]
"ClassGUID"="{4D36E96A-E325-11CE-BFC1-08002BE10318}"
"Service"="intelide"

[HKEY_LOCAL_MACHINE\SYSTEM_00\ControlSet001\Control\CriticalDeviceDatabase\pci#ven_8086&dev_7111]
"ClassGUID"="{4D36E96A-E325-11CE-BFC1-08002BE10318}"
"Service"="intelide"

[HKEY_LOCAL_MACHINE\SYSTEM_00\ControlSet001\Control\CriticalDeviceDatabase\pci#ven_8086&dev_7199]
"ClassGUID"="{4D36E96A-E325-11CE-BFC1-08002BE10318}"
"Service"="intelide"

;Add driver for Atapi (requires atapi.sys in drivers directory)

[HKEY_LOCAL_MACHINE\SYSTEM_00\ControlSet001\Services\atapi]
"ErrorControl"=dword:00000001
"Group"="SCSI miniport"
"Start"=dword:00000000
"Tag"=dword:00000019
"Type"=dword:00000001
"DisplayName"="Standard IDE/ESDI Hard Disk Controller"
"ImagePath"=hex(2):53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,44,00,\
  52,00,49,00,56,00,45,00,52,00,53,00,5c,00,61,00,74,00,61,00,70,00,69,00,2e,\
  00,73,00,79,00,73,00,00,00

;Add driver for intelide (requires intelide.sys in drivers directory)

[HKEY_LOCAL_MACHINE\SYSTEM_00\ControlSet001\Services\IntelIde]
"ErrorControl"=dword:00000001
"Group"="System Bus Extender"
"Start"=dword:00000000
"Tag"=dword:00000004
"Type"=dword:00000001
"ImagePath"=hex(2):53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,44,00,\
  52,00,49,00,56,00,45,00,52,00,53,00,5c,00,69,00,6e,00,74,00,65,00,6c,00,69,\
  00,64,00,65,00,2e,00,73,00,79,00,73,00,00,00


;Add driver for pciide (requires pciide.sys and pciidex.sys in drivers directory)

[HKEY_LOCAL_MACHINE\SYSTEM_00\ControlSet001\Services\PCIIde]
"ErrorControl"=dword:00000001
"Group"="System Bus Extender"
"Start"=dword:00000000
"Tag"=dword:00000003
"Type"=dword:00000001
"ImagePath"=hex(2):53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,44,00,\
  52,00,49,00,56,00,45,00,52,00,53,00,5c,00,70,00,63,00,69,00,69,00,64,00,65,\
  00,2e,00,73,00,79,00,73,00,00,00


fixidexp.reg

CODE
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE_ON_C\SYSTEM\ControlSet001\Control\CriticalDeviceDatabase\primary_ide_channel]
"ClassGUID"="{4D36E96A-E325-11CE-BFC1-08002BE10318}"
"Service"="atapi"

[HKEY_LOCAL_MACHINE_ON_C\SYSTEM\ControlSet001\Control\CriticalDeviceDatabase\secondary_ide_channel]
"ClassGUID"="{4D36E96A-E325-11CE-BFC1-08002BE10318}"
"Service"="atapi"

[HKEY_LOCAL_MACHINE_ON_C\SYSTEM\ControlSet001\Control\CriticalDeviceDatabase\*pnp0600]
"ClassGUID"="{4D36E96A-E325-11CE-BFC1-08002BE10318}"
"Service"="atapi"

[HKEY_LOCAL_MACHINE_ON_C\SYSTEM\ControlSet001\Control\CriticalDeviceDatabase\*azt0502]
"ClassGUID"="{4D36E96A-E325-11CE-BFC1-08002BE10318}"
"Service"="atapi"

[HKEY_LOCAL_MACHINE_ON_C\SYSTEM\ControlSet001\Control\CriticalDeviceDatabase\gendisk]
"ClassGUID"="{4D36E967-E325-11CE-BFC1-08002BE10318}"
"Service"="disk"

[HKEY_LOCAL_MACHINE_ON_C\SYSTEM\ControlSet001\Control\CriticalDeviceDatabase\pci#cc_0101]
"ClassGUID"="{4D36E96A-E325-11CE-BFC1-08002BE10318}"
"Service"="pciide"

[HKEY_LOCAL_MACHINE_ON_C\SYSTEM_00\ControlSet001\Control\CriticalDeviceDatabase\pci#ven_0e11&dev_ae33]
"ClassGUID"="{4D36E96A-E325-11CE-BFC1-08002BE10318}"
"Service"="pciide"

[HKEY_LOCAL_MACHINE_ON_C\SYSTEM_00\ControlSet001\Control\CriticalDeviceDatabase\pci#ven_1039&dev_0601]
"ClassGUID"="{4D36E96A-E325-11CE-BFC1-08002BE10318}"
"Service"="pciide"

[HKEY_LOCAL_MACHINE_ON_C\SYSTEM\ControlSet001\Control\CriticalDeviceDatabase\pci#ven_1039&dev_5513]
"ClassGUID"="{4D36E96A-E325-11CE-BFC1-08002BE10318}"
"Service"="pciide"

[HKEY_LOCAL_MACHINE_ON_C\SYSTEM\ControlSet001\Control\CriticalDeviceDatabase\pci#ven_1042&dev_1000]
"ClassGUID"="{4D36E96A-E325-11CE-BFC1-08002BE10318}"
"Service"="pciide"

[HKEY_LOCAL_MACHINE_ON_C\SYSTEM\ControlSet001\Control\CriticalDeviceDatabase\pci#ven_105a&dev_4d33]
"ClassGUID"="{4D36E96A-E325-11CE-BFC1-08002BE10318}"
"Service"="pciide"

[HKEY_LOCAL_MACHINE_ON_C\SYSTEM\ControlSet001\Control\CriticalDeviceDatabase\pci#ven_1095&dev_0640]
"ClassGUID"="{4D36E96A-E325-11CE-BFC1-08002BE10318}"
"Service"="pciide"

[HKEY_LOCAL_MACHINE_ON_C\SYSTEM\ControlSet001\Control\CriticalDeviceDatabase\pci#ven_1095&dev_0646]
"ClassGUID"="{4D36E96A-E325-11CE-BFC1-08002BE10318}"
"Service"="pciide"

[HKEY_LOCAL_MACHINE_ON_C\SYSTEM\ControlSet001\Control\CriticalDeviceDatabase\pci#ven_1095&dev_0646&REV_05]
"ClassGUID"="{4D36E96A-E325-11CE-BFC1-08002BE10318}"
"Service"="pciide"

[HKEY_LOCAL_MACHINE_ON_C\SYSTEM\ControlSet001\Control\CriticalDeviceDatabase\pci#ven_1095&dev_0646&REV_07]
"ClassGUID"="{4D36E96A-E325-11CE-BFC1-08002BE10318}"
"Service"="pciide"

[HKEY_LOCAL_MACHINE_ON_C\SYSTEM\ControlSet001\Control\CriticalDeviceDatabase\pci#ven_1095&dev_0648]
"ClassGUID"="{4D36E96A-E325-11CE-BFC1-08002BE10318}"
"Service"="pciide"

[HKEY_LOCAL_MACHINE_ON_C\SYSTEM\ControlSet001\Control\CriticalDeviceDatabase\pci#ven_1095&dev_0649]
"ClassGUID"="{4D36E96A-E325-11CE-BFC1-08002BE10318}"
"Service"="pciide"

[HKEY_LOCAL_MACHINE_ON_C\SYSTEM\ControlSet001\Control\CriticalDeviceDatabase\pci#ven_1097&dev_0038]
"ClassGUID"="{4D36E96A-E325-11CE-BFC1-08002BE10318}"
"Service"="pciide"

[HKEY_LOCAL_MACHINE_ON_C\SYSTEM\ControlSet001\Control\CriticalDeviceDatabase\pci#ven_10ad&dev_0001]
"ClassGUID"="{4D36E96A-E325-11CE-BFC1-08002BE10318}"
"Service"="pciide"

[HKEY_LOCAL_MACHINE_ON_C\SYSTEM\ControlSet001\Control\CriticalDeviceDatabase\pci#ven_10ad&dev_0150]
"ClassGUID"="{4D36E96A-E325-11CE-BFC1-08002BE10318}"
"Service"="pciide"

[HKEY_LOCAL_MACHINE_ON_C\SYSTEM\ControlSet001\Control\CriticalDeviceDatabase\pci#ven_10b9&dev_5215]
"ClassGUID"="{4D36E96A-E325-11CE-BFC1-08002BE10318}"
"Service"="pciide"

[HKEY_LOCAL_MACHINE_ON_C\SYSTEM\ControlSet001\Control\CriticalDeviceDatabase\pci#ven_10b9&dev_5219]
"ClassGUID"="{4D36E96A-E325-11CE-BFC1-08002BE10318}"
"Service"="pciide"

[HKEY_LOCAL_MACHINE_ON_C\SYSTEM\ControlSet001\Control\CriticalDeviceDatabase\pci#ven_10b9&dev_5229]
"ClassGUID"="{4D36E96A-E325-11CE-BFC1-08002BE10318}"
"Service"="pciide"

[HKEY_LOCAL_MACHINE_ON_C\SYSTEM\ControlSet001\Control\CriticalDeviceDatabase\pci#ven_1106&dev_0571]
"Service"="pciide"
"ClassGUID"="{4D36E96A-E325-11CE-BFC1-08002BE10318}"

[HKEY_LOCAL_MACHINE_ON_C\SYSTEM\ControlSet001\Control\CriticalDeviceDatabase\pci#ven_8086&dev_1222]
"ClassGUID"="{4D36E96A-E325-11CE-BFC1-08002BE10318}"
"Service"="intelide"

[HKEY_LOCAL_MACHINE_ON_C\SYSTEM\ControlSet001\Control\CriticalDeviceDatabase\pci#ven_8086&dev_1230]
"ClassGUID"="{4D36E96A-E325-11CE-BFC1-08002BE10318}"
"Service"="intelide"

[HKEY_LOCAL_MACHINE_ON_C\SYSTEM_00\ControlSet001\Control\CriticalDeviceDatabase\pci#ven_8086&dev_2411]
"ClassGUID"="{4D36E96A-E325-11CE-BFC1-08002BE10318}"
"Service"="intelide"

[HKEY_LOCAL_MACHINE_ON_C\SYSTEM\ControlSet001\Control\CriticalDeviceDatabase\pci#ven_8086&dev_2421]
"ClassGUID"="{4D36E96A-E325-11CE-BFC1-08002BE10318}"
"Service"="intelide"

[HKEY_LOCAL_MACHINE_ON_C\SYSTEM\ControlSet001\Control\CriticalDeviceDatabase\pci#ven_8086&dev_7010]
"ClassGUID"="{4D36E96A-E325-11CE-BFC1-08002BE10318}"
"Service"="intelide"

[HKEY_LOCAL_MACHINE_ON_C\SYSTEM\ControlSet001\Control\CriticalDeviceDatabase\pci#ven_8086&dev_7111]
"ClassGUID"="{4D36E96A-E325-11CE-BFC1-08002BE10318}"
"Service"="intelide"

[HKEY_LOCAL_MACHINE_ON_C\SYSTEM\ControlSet001\Control\CriticalDeviceDatabase\pci#ven_8086&dev_7199]
"ClassGUID"="{4D36E96A-E325-11CE-BFC1-08002BE10318}"
"Service"="intelide"

;Add driver for Atapi (requires Atapi.sys in Drivers directory)

[HKEY_LOCAL_MACHINE_ON_C\system\ControlSet001\Services\atapi]
"ErrorControl"=dword:00000001
"Group"="SCSI miniport"
"Start"=dword:00000000
"Tag"=dword:00000019
"Type"=dword:00000001
"DisplayName"="Standard IDE/ESDI Hard Disk Controller"
"ImagePath"=hex(2):53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,44,00,\
  52,00,49,00,56,00,45,00,52,00,53,00,5c,00,61,00,74,00,61,00,70,00,69,00,2e,\
  00,73,00,79,00,73,00,00,00

;Add driver for intelide (requires intelide.sys in drivers directory)

[HKEY_LOCAL_MACHINE_ON_C\system\ControlSet001\Services\IntelIde]
"ErrorControl"=dword:00000001
"Group"="System Bus Extender"
"Start"=dword:00000000
"Tag"=dword:00000004
"Type"=dword:00000001
"ImagePath"=hex(2):53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,44,00,\
  52,00,49,00,56,00,45,00,52,00,53,00,5c,00,69,00,6e,00,74,00,65,00,6c,00,69,\
  00,64,00,65,00,2e,00,73,00,79,00,73,00,00,00


;Add driver for Pciide (requires Pciide.sys and Pciidex.sys in Drivers directory)

[HKEY_LOCAL_MACHINE_ON_C\system\ControlSet001\Services\PCIIde]
"ErrorControl"=dword:00000001
"Group"="System Bus Extender"
"Start"=dword:00000000
"Tag"=dword:00000003
"Type"=dword:00000001
"ImagePath"=hex(2):53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,44,00,\
  52,00,49,00,56,00,45,00,52,00,53,00,5c,00,70,00,63,00,69,00,69,00,64,00,65,\
  00,2e,00,73,00,79,00,73,00,00,00


Put the following files inside fixide\files\sata

fixsata.cmd

CODE
@Echo off
REM Fixsata, see readme.txt
rem made by Markus Debus www.pecd.net

reg UNLOAD HKLM\SYSTEM_00
set doall=0

if "%target_root%" == "" goto error
if not exist %target_root% goto error

:Ask
cls
ECHO.
ECHO  TargetRoot: %target_root%
ECHO  Drivers   : %target_root%\system32\drivers\
ECHO  INF       : %target_root%\inf
ECHO.
if exist %target_root%\system32\config\SYSTEM.fixsata ECHO  Backup exists and can be restored
if not exist %target_root%\system32\config\SYSTEM.fixsata ECHO  Backup does not exist and will be created
ECHO.
ECHO  (1) Install Highpoint 1540/1640 SATA drivers
ECHO  (2) Install Highpoint 182x SATA drivers
ECHO  (3) Install INTEL 82801ER SATA drivers
ECHO  (4) Install VIA SATA drivers
rem ECHO  (5) Add drivers here
rem ECHO  (6) Add drivers here
rem ECHO  (7) Add drivers here
ECHO.
ECHO  (8) Install all drivers
ECHO  (9) Install drivers from Floppy (A:)
ECHO.
if exist %target_root%\system32\config\SYSTEM.fixsata ECHO  (R) Restore Backup
ECHO.
ECHO  (0) Do nothing and exit
ECHO.

set /p _task=Your choice ?

if "%_task%" == "1" goto hpt1
if "%_task%" == "2" goto hpt2
if "%_task%" == "3" goto intel1
if "%_task%" == "4" goto via1
if "%_task%" == "5" goto ex1
if "%_task%" == "6" goto ex2
if "%_task%" == "7" goto ex3
if "%_task%" == "8" goto all
if "%_task%" == "9" goto floppy
if "%_task%" == "R" goto restore
if "%_task%" == "r" goto restore
if "%_task%" == "0" goto end

:restore

echo restoring %target_root%\system32\config\SYSTEM
if exist %target_root%\system32\config\SYSTEM.fixsata move %target_root%\system32\config\SYSTEM.fixsata %target_root%\system32\config\SYSTEM
goto end

:error
Echo An error occoured, exiting...
pause
goto end

:floppy
Echo copying driver files from floppy
xcopy a:\*.inf %target_root%\inf\*.inf /Y
xcopy a:\*.cat %target_root%\inf\*.cat /Y
xcopy a:\*.sys %target_root%\system32\drivers\*.sys /Y
if not exist %target_root%\system32\config\SYSTEM.fixsata echo creating backup of %target_root%\system32\config\SYSTEM
if not exist %target_root%\system32\config\SYSTEM.fixsata copy %target_root%\system32\config\SYSTEM %target_root%\system32\config\SYSTEM.fixsata
reg LOAD HKLM\SYSTEM_00 %target_root%\system32\config\SYSTEM
regedit /S a:\fixsata.reg
reg UNLOAD HKLM\SYSTEM_00
goto end

:all
set doall=1

:hpt1
Echo copying driver files hpt1
xcopy .\hpt374\*.inf %target_root%\inf\*.inf /Y
xcopy .\hpt374\*.cat %target_root%\inf\*.cat /Y
xcopy .\hpt374\*.sys %target_root%\system32\drivers\*.sys /Y
if not exist %target_root%\system32\config\SYSTEM.fixsata echo creating backup of %target_root%\system32\config\SYSTEM
if not exist %target_root%\system32\config\SYSTEM.fixsata copy %target_root%\system32\config\SYSTEM %target_root%\system32\config\SYSTEM.fixsata
reg LOAD HKLM\SYSTEM_00 %target_root%\system32\config\SYSTEM
regedit /S .\hpt374\fixsata.reg
reg UNLOAD HKLM\SYSTEM_00
if "%doall%" == "1" goto hpt2
goto end

:hpt2
Echo copying driver files hpt2
xcopy .\hptmv\*.inf %target_root%\inf\*.inf /Y
xcopy .\hptmv\*.cat %target_root%\inf\*.cat /Y
xcopy .\hptmv\*.sys %target_root%\system32\drivers\*.sys /Y
if not exist %target_root%\system32\config\SYSTEM.fixsata echo creating backup of %target_root%\system32\config\SYSTEM
if not exist %target_root%\system32\config\SYSTEM.fixsata copy %target_root%\system32\config\SYSTEM %target_root%\system32\config\SYSTEM.fixsata
reg LOAD HKLM\SYSTEM_00 %target_root%\system32\config\SYSTEM
regedit /S .\hptmv\fixsata.reg
reg UNLOAD HKLM\SYSTEM_00
if "%doall%" == "1" goto intel1
goto end



:intel1
Echo copying driver files intel1
xcopy .\iastor\*.inf %target_root%\inf\*.inf /Y
xcopy .\iastor\*.cat %target_root%\inf\*.cat /Y
xcopy .\iastor\*.sys %target_root%\system32\drivers\*.sys /Y
if not exist %target_root%\system32\config\SYSTEM.fixsata echo creating backup of %target_root%\system32\config\SYSTEM
if not exist %target_root%\system32\config\SYSTEM.fixsata copy %target_root%\system32\config\SYSTEM %target_root%\system32\config\SYSTEM.fixsata
reg LOAD HKLM\SYSTEM_00 %target_root%\system32\config\SYSTEM
regedit /S .\iastor\fixsata.reg
reg UNLOAD HKLM\SYSTEM_00
if "%doall%" == "1" goto via1
goto end


:via1
Echo copying driver files via1
xcopy .\via\*.inf %target_root%\inf\*.inf /Y
xcopy .\via\*.cat %target_root%\inf\*.cat /Y
xcopy .\via\*.sys %target_root%\system32\drivers\*.sys /Y
if not exist %target_root%\system32\config\SYSTEM.fixsata echo creating backup of %target_root%\system32\config\SYSTEM
if not exist %target_root%\system32\config\SYSTEM.fixsata copy %target_root%\system32\config\SYSTEM %target_root%\system32\config\SYSTEM.fixsata
reg LOAD HKLM\SYSTEM_00 %target_root%\system32\config\SYSTEM
regedit /S .\via\fixsata.reg
reg UNLOAD HKLM\SYSTEM_00
if "%doall%" == "1" goto ex1
goto end

:ex1

if "%doall%" == "1" goto ex2
goto end

:ex2

if "%doall%" == "1" goto ex3
goto end

:ex3

goto end

:end
pause


rest see next post...

EDIT 03.10.07: changed some HKLM\SYSTEM to HKLM\SYSTEM_00 please test if this works

This post has been edited by allow: Oct 3 2007, 05:43 AM
Go to the top of the page
 
+Quote Post

Posts in this topic


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



Lo-Fi Version Time is now: 20th November 2009 - 05:07 PM