|   
pierre1980 
新手上路
 
 
 
  
  
积分 4 
发帖 3 
注册 2009-1-23 
状态 离线
 | 
『楼 主』:
 关于SATA光驱启动盘恢复系统的问题。
 
使用 LLM 解释/回答一下
  
我在制作一张系统恢复光盘,需要实现插入光盘,恢复系统的功能,自己修改别人的程序,还没能实现,请大家帮帮忙,看是哪里的问题,谢谢。其中使用选项1执行系统恢复,相关语句为:ghost.exe-clone,mode=pload,src=D:\System Backup\XP_01222009.GHO,dst=1:1-fx-sure-rb 。恢复光盘中的系统启动引导文件加载在虚拟硬盘中,ghost.exe加载在光盘中。 
     
    程序如下: 
 
1.AUTOEXEC.BAT 
 
@ECHO OFF 
 
XMSDSK 4096 /Y 
 
LH MSCDEX /D:IDE-CD /D:SCSI-CD /D:SATA-CD /D:USB-CD /S /K 
FINDCD /S 
SET CDR=%CDROM1% 
 
%CDR% 
 
 
@echo off 
 
:loop 
 
%cdrom% 
cls 
echo. 
echo ******************************************************** 
echo. 
echo  Choice   Action 
echo. 
echo    1      Start Ghost 
echo. 
echo    2      Quit to MS-DOS 
echo. 
echo ******************************************************** 
echo. 
CHOICE /N /C:12 PICK A NUMBER (1, 2)%1  
echo. 
 
if errorlevel ==2 goto dos 
if errorlevel ==1 goto ghost 
 
:ghost 
cls 
pause 
ghost.exe-clone,mode=pload,src=D:\System Backup\XP_01222009.GHO,dst=1:1-fx-sure-rb  
 
:dos 
cls 
echo Opening MS-DOS Prompt 
echo. 
:: next 3 lines added on 9/10/02, L.Ebright, DimIPS 
echo Diskette drive A: has been re-assigned due to the CD-ROM boot process 
echo and is NOT available when the system is started using the CD. 
echo To use the Diskette drive, use drive letter B: 
echo.  
echo A RAMDISK drive is available for this boot cycle as %RAMD%: 
echo It contains several Hard Drive setup tools. Please use these 
echo tools only under the direction of Dell Support Staff. 
echo. 
echo Type "exit" to go back to the menu. 
echo. 
command 
goto loop 
 
:end 
cls 
 
2.config.sys 
 
files=10 
buffers=15 
dos=high,umb 
stacks=9,256 
lastdrive=z 
device=himem.sys /testmem:off 
DEVICEHIGH=VIDE-CDD.SYS /D:IDE-CD 
DEVICEHIGH=ASPICD.SYS /D:SCSI-CD 
DEVICEHIGH=gcdrom.sys /D:SATA-CD 
DEVICEHIGH=USBCD.SYS /D:USB-CD 
I'm making a system recovery CD and need to achieve the function of inserting the CD to restore the system. I've modified someone else's program but haven't succeeded yet. Please help see where the problem is. Thanks. The relevant statement for using option 1 to perform system recovery is: ghost.exe -clone,mode=pload,src=D:\System Backup\XP_01222009.GHO,dst=1:1 -fx -sure -rb. The system boot guide file in the recovery CD is loaded in the virtual hard disk, and ghost.exe is loaded on the CD. 
 
The program is as follows: 
 
1. AUTOEXEC.BAT 
 
@ECHO OFF 
 
XMSDSK 4096 /Y 
 
LH MSCDEX /D:IDE-CD /D:SCSI-CD /D:SATA-CD /D:USB-CD /S /K 
FINDCD /S 
SET CDR=%CDROM1% 
 
%CDR% 
 
 
@echo off 
 
:loop 
 
%cdrom% 
cls 
echo. 
echo ******************************************************** 
echo. 
echo  Choice   Action 
echo. 
echo    1      Start Ghost 
echo. 
echo    2      Quit to MS-DOS 
echo. 
echo ******************************************************** 
echo. 
CHOICE /N /C:12 PICK A NUMBER (1, 2)%1  
echo. 
 
if errorlevel ==2 goto dos 
if errorlevel ==1 goto ghost 
 
:ghost 
cls 
pause 
ghost.exe -clone,mode=pload,src=D:\System Backup\XP_01222009.GHO,dst=1:1 -fx -sure -rb  
 
:dos 
cls 
echo Opening MS-DOS Prompt 
echo. 
:: next 3 lines added on 9/10/02, L.Ebright, DimIPS 
echo Diskette drive A: has been re-assigned due to the CD-ROM boot process 
echo and is NOT available when the system is started using the CD. 
echo To use the Diskette drive, use drive letter B: 
echo.  
echo A RAMDISK drive is available for this boot cycle as %RAMD%: 
echo It contains several Hard Drive setup tools. Please use these 
echo tools only under the direction of Dell Support Staff. 
echo. 
echo Type "exit" to go back to the menu. 
echo. 
command 
goto loop 
 
:end 
cls 
 
2. config.sys 
 
files=10 
buffers=15 
dos=high,umb 
stacks=9,256 
lastdrive=z 
device=himem.sys /testmem:off 
DEVICEHIGH=VIDE-CDD.SYS /D:IDE-CD 
DEVICEHIGH=ASPICD.SYS /D:SCSI-CD 
DEVICEHIGH=gcdrom.sys /D:SATA-CD 
DEVICEHIGH=USBCD.SYS /D:USB-CD 
    
 
  
 |   
 |  
  2009-1-24 12:35 | 
  
 |  
 |   
pierre1980 
新手上路
 
 
 
  
  
积分 4 
发帖 3 
注册 2009-1-23 
状态 离线
 | 
『第 2 楼』:
 
 
使用 LLM 解释/回答一下
  
Originally posted by pierre1980 at 2009-1-24 12:35: 
我在制作一张系统恢复光盘,需要实现插入光盘,恢复系统的功能,自己修改别人的程序,还没能实现,请大家帮帮忙,看是哪里的问题,谢谢。其中 ...  
我自己感觉是调用ghost时候不应该使用硬盘盘符的绝对路径,即:D:\...,可我不知道如何获取硬盘盘符。  
Originally posted by pierre1980 at 2009-1-24 12:35: 
I am making a system recovery CD and need to implement the function of restoring the system when the CD is inserted. I have modified someone else's program but haven't been able to implement it yet. Please everyone help me and see where the problem is. Thank you. Among them...  
I myself feel that when calling Ghost, the absolute path of the hard disk drive letter should not be used, that is: D:\..., but I don't know how to obtain the hard disk drive letter.  
    
 
  
 |   
 |  
  2009-1-24 12:42 | 
  
 |  
 |   
pierre1980 
新手上路
 
 
 
  
  
积分 4 
发帖 3 
注册 2009-1-23 
状态 离线
 | 
『第 3 楼』:
 
 
使用 LLM 解释/回答一下
  
?!?!?!?!?! 
Please provide the relevant Chinese content that needs to be translated so that I can perform the translation as required. 
    
 
  
 |   
 |  
  2009-1-24 16:48 | 
  
 |  
 |   
chishingchan 
银牌会员
 
     
 
  
 
积分 1282 
发帖 538 
注册 2002-11-2 
状态 离线
 | 
 |  
  2009-10-27 23:50 | 
  
 |  
 |   
chishingchan 
银牌会员
 
     
 
  
 
积分 1282 
发帖 538 
注册 2002-11-2 
状态 离线
 | 
『第 5 楼』:
 提示:
 
使用 LLM 解释/回答一下
  
将硬盘列表以逗号分隔,使用 WBAT BOX 的按键功能选择 
List the hard drives separated by commas, and use the key functions of WBAT BOX to select 
    
 
  
 |   
 |  
  2009-10-27 23:53 | 
  
 |  
 |   
jh1688 
中级用户
 
   
 
  
  
积分 248 
发帖 126 
注册 2008-5-30 
状态 离线
 | 
『第 6 楼』:
 
 
使用 LLM 解释/回答一下
  
早些时候在坛子里发现的,自己稍改一下,可以满足楼主的需要…… 
 
@echo off 
:mini_BEGIN 
if exist mini_dd.txt del mini_dd.txt 
minito /nohp /p /ifs>mini_dd.txt 
strings lines=LINESIZE mini_dd.txt 
if %lines%#==0# goto fail 
strings lines=add %lines%,1 
set line=1 
echo 硬盘信息: 
:mini 
strings line=add %line%,1 
if %line%#==%lines%# goto mini_1 
strings lined=read mini_dd.txt,%line% 
strings row1=left %lined%,3 
strings row3=mid %lined%,8,2 
strings row5=mid %lined%,19,3 
strings row7=right %lined%,7 
if %row5%#==YES# set actp=%row1% 
set lastp=%row1% 
set lastd=%row3% 
set lastk=%row7% 
if not %lined%#==# echo %lined% 
goto mini 
 
:mini_1 
echo. 
echo  请根据上面显示的硬盘信息确认识别结果。 
echo. 
echo  自动识别结果: 
echo  活动分区是:%actp% 
echo  最后分区是:%lastp% 
echo  最后分区对应的盘符是:%lastd% 
echo  最后分区可用空间是:%lastk%Mb 
echo. 
if exist mini_dd.txt del mini_dd.txt 
goto exit 
 
:fail 
cls 
echo. 
echo  很抱歉,本工具采用的软件未能获得有效硬盘信息。 
echo. 
if exist mini_dd.txt del mini_dd.txt 
:exit 
 
另: 
ghost.exe-clone,mode=pload,src=D:\System Backup\XP_01222009.GHO,dst=1:1-fx-sure-rb  
 
应该写成: 
ghost.exe-clone,mode=pload,src=D:\System Backup\XP_01222009.GHO:1,dst=1:1 -fx -sure -rb 
 
 Last edited by jh1688 on 2009-11-9 at 19:12 ] 
Found earlier in the forum, modified a bit myself, which can meet the building - owner's needs... 
 
@echo off 
:mini_BEGIN 
if exist mini_dd.txt del mini_dd.txt 
minito /nohp /p /ifs>mini_dd.txt 
strings lines=LINESIZE mini_dd.txt 
if %lines%#==0# goto fail 
strings lines=add %lines%,1 
set line=1 
echo Hard disk information: 
:mini 
strings line=add %line%,1 
if %line%#==%lines%# goto mini_1 
strings lined=read mini_dd.txt,%line% 
strings row1=left %lined%,3 
strings row3=mid %lined%,8,2 
strings row5=mid %lined%,19,3 
strings row7=right %lined%,7 
if %row5%#==YES# set actp=%row1% 
set lastp=%row1% 
set lastd=%row3% 
set lastk=%row7% 
if not %lined%#==# echo %lined% 
goto mini 
 
:mini_1 
echo. 
echo  Please confirm the recognition result according to the hard disk information displayed above. 
echo. 
echo  Automatic recognition result: 
echo  Active partition is: %actp% 
echo  Last partition is: %lastp% 
echo  The drive letter corresponding to the last partition is: %lastd% 
echo  The free space of the last partition is: %lastk%Mb 
echo. 
if exist mini_dd.txt del mini_dd.txt 
goto exit 
 
:fail 
cls 
echo. 
echo  Sorry, the software used by this tool failed to obtain valid hard disk information. 
echo. 
if exist mini_dd.txt del mini_dd.txt 
:exit 
 
Also: 
ghost.exe-clone,mode=pload,src=D:\System Backup\XP_01222009.GHO,dst=1:1-fx-sure-rb  
 
Should be written as: 
ghost.exe-clone,mode=pload,src=D:\System Backup\XP_01222009.GHO:1,dst=1:1 -fx -sure -rb 
 
 Last edited by jh1688 on 2009-11-9 at 19:12 ] 
    
 
  
 |   
 |  
  2009-11-9 19:05 | 
  
 |  
  |