Chinaunix首页 | 论坛 | 博客
  • 博客访问: 3563
  • 博文数量: 3
  • 博客积分: 75
  • 博客等级: 民兵
  • 技术积分: 45
  • 用 户 组: 普通用户
  • 注册时间: 2012-03-20 15:35
文章分类
文章存档

2012年(3)

我的朋友
最近访客

分类: 网络与安全

2012-03-22 15:02:11

一直以来,在PE下安装硬盘控制器驱动都是失败的,因为都是使用DEVCON类。SCSI驱动是不是也可以使用类似的方法呢?实验证明,我的想法有一定的可行性(因无条件进行全面测试)!
 
具体安装方法.
1、把这个驱动的SYS文件复制到DRIVERS目录,其它文件复制到(不需要INF文件)SYSTEM32(注:一般都只有一个SYS文件,所以只要把这个SYS文件复制到DRIVERS目录就好了)。
2,把这个SYS文件设为服务并启动。
3、好了,如果服务正常启动,那系统中就会显示出你的SCSI硬盘。
 
附上测试效果图,使用VMSARE测试的,附件4为下面批处理脚本,可在PE下使用(注:测试图为了方便,我是直接使用VCdControlTool加载的驱动,正常使用可以直接使用下面的脚本)。
 
@echo off
title 在PE下安装硬盘控制器驱动简单脚本 by chenall 2008-12-14
rem 使用方法: 1.可直接拖放,即把对应驱动的SYS文件拖放到这个程序的图标上.
rem  2.使用命令行pe_scsi.cmd [你的SYS文件]
rem ....
rem ...
if "%1"=="" goto :eof
>"%temp%\scsi_serv.inf" echo.
>>"%temp%\scsi_serv.inf" echo.[Version]
>>"%temp%\scsi_serv.inf" echo.signature = "$Windows NT$"
>>"%temp%\scsi_serv.inf" echo.[DefaultInstall.Services]
>>"%temp%\scsi_serv.inf" echo.AddService = %~n1,,Service
>>"%temp%\scsi_serv.inf" echo.[Service]
>>"%temp%\scsi_serv.inf" echo.DisplayName = "%~n1 Service"
>>"%temp%\scsi_serv.inf" echo.Description = "%~1"
>>"%temp%\scsi_serv.inf" echo.ServiceType = 2
>>"%temp%\scsi_serv.inf" echo.StartType = 2
>>"%temp%\scsi_serv.inf" echo.ErrorControl = 1
>>"%temp%\scsi_serv.inf" echo.ServiceBinary = %%12%%\%~nx1
copy /y %1 %WinDir%\system32\drivers >nul
rundll32.exe setupapi,InstallHinfSection DefaultInstall 132 %temp%\scsi_serv.inf
if not errorlevel 1 (echo.%~nX1驱动安装成功!&pecmd serv %~n1&pause) else (echo.安装失败!&pause)
del /f /q "%temp%\scsi_serv.inf"
阅读(862) | 评论(0) | 转发(0) |
0

上一篇:ADSL宽带经典问题一问一答

下一篇:没有了

给主人留下些什么吧!~~