标题: 请高手帮我修改下备份文件程序...谢谢!!!!!
[打印本页]
作者: zch1366
时间: 2007-4-22 01:02
标题: 请高手帮我修改下备份文件程序...谢谢!!!!!
自动一键备份
ghost -dd >NUL
set p=1
call ghost.bat 1 2 3 4 5 6 7 8 9 10 11 12 13 14
GHOST.EXE -CLONE,MODE=PDUMP,SRC=1:1,DST=%LastP%\win.gho -sure -Z3 -FX
goto exit;
自动一键恢复
ghost -dd >NUL
set p=1
call ghost.bat 1 2 3 4 5 6 7 8 9 10 11 12 13 14
GHOST.EXE -CLONE,MODE=PLOAD,SRC=%LastP%\ghost\win.gho:1,DST=1:1 -sure -FX -RB
goto exit;
ghost.bat
:1
FIND /i "%p%:%1" GHSTSTAT.TXT >NUL
if errorlevel 1 goto 2
set LastP=%p%:%1
Shift
goto 1
:2
:del GHSTSTAT.TXT
成功自动备份和恢复....备份还原时能自动识别到最后一个分区,但是只是在根目录下,我想在备份时能自动在最后一个分区新建目录GHOST.并隐藏ghost文件夹..
请高手帮我修改下备份文件程序...谢谢!!!!!
作者: bc12060101
时间: 2007-4-22 02:54
自动一键备份
ghost -dd >NUL
set p=1
call ghost.bat 1 2 3 4 5 6 7 8 9 10 11 12 13 14
path=a:
%LastP%
md ghost
attrib +h +s ghost
a:
GHOST.EXE -CLONE,MODE=PDUMP,SRC=1:1,DST=%LastP%\ghost\win.gho -sure -Z3 -FX
goto exit;
作者: zch1366
时间: 2007-4-22 06:33
谢谢你帮忙.....很可惜还是不能新建目录GHOST文件夹..
作者: bc12060101
时间: 2007-4-22 08:20
嘿嘿,把你的完整的.img镜像发上来,测试过再说!
作者: lianjiang2004
时间: 2007-4-22 08:44
要建目录,还需获得分区号与盘符的对应关系。
还要考虑NTFS分区对盘符的影响。
比备份到分区根目录复杂不少。
作者: lianjiang2004
时间: 2007-4-22 08:47
Originally posted by bc12060101 at 2007-4-22 02:54:
自动一键备份
ghost -dd >NUL
set p=1
call ghost.bat 1 2 3 4 5 6 7 8 9 10 11 12 13 14
path=a:
%LastP%
md ghost
attrib +h +s ghost
a:
GHOST.EXE -CLONE,MODE=PDUMP,SRC=1:1,DST=%Las ...
%LastP%获得的是分区号吧?如何能建目录?
作者: bc12060101
时间: 2007-4-22 10:04
嘿嘿,lianjiang2004兄说的极是,%LastP%获得的是分区号!此点乃偶的错误。惭愧!
作者: zch1366
时间: 2007-4-22 13:23
作者: lianjiang2004
时间: 2007-4-22 21:38
Originally posted by zch1366 at 2007-4-22 13:23:
谢谢大家热心...支持32位分区就ok了
从通用性的角度,应考虑NTFS分区问题。
对于你自己的特定机子的话,个人以为无需查找分区,直接写上分区号不就完了?反正不通用。能简单就不必搞复杂了。
关键在于你的用途。
作者: lianjiang2004
时间: 2007-4-22 21:41
作者: sypl
时间: 2007-4-23 00:19
怎样让数字分区号1 2 3 4变成对应的c d e f 盘符号呢?期待高手的出现.
作者: lianjiang2004
时间: 2007-4-23 00:26
Originally posted by sypl at 2007-4-23 00:19:
怎样让数字分区号1 2 3 4变成对应的c d e f 盘符号呢?期待高手的出现.
可以下载minito这个辅助工具。本论坛有。
作者: sypl
时间: 2007-4-23 01:01
lianjiang兄,你的悟性很好,又写教程又做盘,你还不把这问题解决一下。
作者: lianjiang2004
时间: 2007-4-23 01:57
Originally posted by sypl at 2007-4-23 01:01:
lianjiang兄,你的悟性很好,又写教程又做盘,你还不把这问题解决一下。
这是我在回答另一类似问题时的答复。
本人水平有限,只会用些比较笨的办法。
-----------
提供思路:
因最后分区可能是FAT,这好办,直接建目录即可。也可能是NTFS分区,需加载NTFS驱动,这样盘符也会乱掉。
下面是本人的gghost中采用的办法思路,供参考,不一定是最好的。
以在最后分区建aaa目录,备份文件名为sys.gho为例:
1,加载ntfs驱动,自动在所有分区建aaa目录。
2,通过用ghost -dd或其他如dpit等工具方法获得最后分区号%lastp%.
3,备份系统至1:%lastp%:\aaa\sys.gho。
4,自动在所有盘运行rd aaa,这样未保存sys.gho的所有空aaa目录将被删掉了。
5,重启。
-------------
注:最近看到miniTo这个工具,能获得分区号与盘符的对应,可以不用在所有分区先建目录了。用这工具应能简化批处理。
只是我现在还没有决定是否要换用miniTO,尚无现成批处理。
作者: zch1366
时间: 2007-4-23 02:18
Originally posted by lianjiang2004 at 2007-4-22 21:38:
从通用性的角度,应考虑NTFS分区问题。
对于你自己的特定机子的话,个人以为无需查找分区,直接写上分区号不就完了?反正不通用。能简单就不必搞复杂了。
关键在于你的用途。
我是装杌用...帮客户备份...我全是32位格式..NTFS分区极少...
支持NTFS分区复杂很多....不想太麻烦大家
作者: lianjiang2004
时间: 2007-4-23 02:51
下面的例子,仅对最后分区为FAT分区有效。请测试。
自动一键备份
ghost -dd >NUL
set p=1
call ghost.bat 1 2 3 4 5 6 7 8 9 10 11 12 13 14
for %%p in (c: d: e: f: g: h: i: j: k: l: m: n:) do set lastd=%%p
if not exist %lastd%\ghost>nul md %lastd%\ghost >nul
attrib %lastd%\ghost +h +s +r
GHOST.EXE -CLONE,MODE=PDUMP,SRC=1:1,DST=%LastP%\win.gho -sure -Z3 -FX
作者: sypl
时间: 2007-4-23 02:55
通过用ghost -dd获得最后分区号%lastp%发现有错误,本人电脑有五个分区,全是FAT32格式,然而获得最后分区是F盘,不得其解。
作者: lianjiang2004
时间: 2007-4-23 02:58
作者: sypl
时间: 2007-4-23 03:20
没有保存GHSTSTAT.TXT,我是用grub调用的IMG文件,ghost程序退出到DOS显示的盘符是H:
作者: lianjiang2004
时间: 2007-4-23 03:24
作者: sypl
时间: 2007-4-23 04:25
*********************************
Date : Sun Apr 22 15:08:18 2007
Error Number: (0)
Message: Stats Dump
Version: 11.0.0.1502 (Dec 4 2006, Build=1502)
OS Version: DOS v7.10
Command line arguments: -dd
Active Switches :
AutoName
PathName :
DumpFile :
DumpPos : 0
FlagImplode : 0
FlagExplode : 0
Operation Details :
Total size.........0
MB copied..........0
MB remaining.......0
Percent complete...0%
Speed..............0 MB/min
Time elapsed.......0:00
Time remaining.....0:00
Program Call Stack
sub_main
main
Call Stack
0x0039623c
0x0009cbd1
0x0000307e
0x00004ce1
0x00003f2f
0x0039f468
End Call Stack
Start heap available: 520814592
Cur heap available: 520552448
Total Memory: 528285696
Allocated
1024 DpmiDjgpp.cpp:56
33504 ghost.cpp:1394
64 DiskDriveAccessExInt13.cpp:139
48 DiskDriveAccessExInt13.cpp:139
528 IdeDmaServerPci.cpp:127
528 IdeDmaServerPci.cpp:127
528 IdeDmaServerPci.cpp:127
528 IdeDmaServerPci.cpp:127
Free
80 DiskDriveAccessExInt13.cpp:102
512 DiskDriveAccessInt13.cpp:184
32768 BlockDeviceDosDrive.cpp:392
Fat details:
NTFS details:
----------------
NTFS Global Flags:
----------------
contiguousWrite=1 forceDiskClusterMapping=0
inhibitCHKDSK=1 ignoreBadLog=0 ignoreCHKDSKBit=0
enable_cache=0 xfrbuflen=0
last_attr_type = 0
loadExact = 0
----------------
Disk Info :
remote.............0
drive..............0
sectorsUsedCount.......190466388
estimatedUsedCount.....0
numPartitions..............4
Version............0
# Ord Boot Id Ext First Num Last Used NTFS
0 0 1 c No 63 40965687 40965750 0 No
1 1 0 b Yes 40965813 47102517 88068330 0 No
2 2 0 b Yes 88068393 51199092 139267485 0 No
3 3 0 b Yes 139267548 51199092 190466640 0 No
Disk Info :
remote.............0
drive..............0
sectorsUsedCount.......0
estimatedUsedCount.....0
numPartitions..............0
Version............0
# Ord Boot Id Ext First Num Last Used NTFS
Fixed Drives
Drive 128 ST3120022A 5JT3RVZJ
Int 13h
Total Sectors 16450560
Bytes per Sector 512
MB 8032
Cylinders 1024
Heads 255
Sectors per Track 63
Successful IO Count 0
Extended Int 13h
Total Sectors 226621519
Bytes per Sector 512
MB 110655
Successful IO Count 0
IDE using PIO
Total Sectors 226621519
Bytes per Sector 512
MB 110655
Cylinders 16383
Heads 16
Sectors per Track 63
Successful IO Count 0
IDE using UDMA (Active)
Total Sectors 226621519
Bytes per Sector 512
MB 110655
Cylinders 16383
Heads 16
Sectors per Track 63
Successful IO Count 217
Floppy Drives
Drive 0
Int 13h (Active)
Total Sectors 5760
Bytes per Sector 512
MB 2
Cylinders 80
Heads 2
Sectors per Track 36
Successful IO Count 1
Extended Int 13h
Total Sectors 5760
Bytes per Sector 512
MB 2
Cylinders 80
Heads 2
Sectors per Track 36
Successful IO Count 0
Remote Drives
AsyncIo : 0
Image Devices
Key[1] 1.1:
Key[2] 1:1
Key[3] C:
Path C:
Desc C: 1.1: []
Type FAT
Disk 0
Offset 63
Key[1] 1.2:
Key[2] 1:2
Key[3] D:
Path D:
Desc D: 1.2: []
Type FAT
Disk 0
Offset 40965813
Key[1] 1.3:
Key[2] 1:3
Key[3] E:
Path E:
Desc E: 1.3: []
Type FAT
Disk 0
Offset 88068393
Key[1] 1.4:
Key[2] 1:4
Key[3] F:
Path F:
Desc F: 1.4: []
Type FAT
Disk 0
Offset 139267548
Key[1] A:
Path A:
Desc A:
Type Floppy
Key[1] G:
Path G:
Desc G: []
Type Disk
Key[1] H:
Path H:
Desc H: [MS-RAMDRIVE]
Type Disk
Key[1] @CD-R1
Path @CD-R1
Desc @CD-R1 HL-DT-STRW/DVD GCC-4481B
Type DVD
ConvMemoryAllocationFactoryDpmi diagnostic...
=============================================
Conventional Memory
Initial Conventional Memory Size = 472048
Current Conventional Memory Size = 401904
Allocated
1024 DpmiDjgpp.cpp:56
33504 ghost.cpp:1394
64 DiskDriveAccessExInt13.cpp:139
48 DiskDriveAccessExInt13.cpp:139
528 IdeDmaServerPci.cpp:127
528 IdeDmaServerPci.cpp:127
528 IdeDmaServerPci.cpp:127
528 IdeDmaServerPci.cpp:127
Free
80 DiskDriveAccessExInt13.cpp:102
512 DiskDriveAccessInt13.cpp:184
32768 BlockDeviceDosDrive.cpp:392
DiskManager diagnostic...
=========================
Fixed Drives
Drive 128 ST3120022A 5JT3RVZJ
Int 13h
Total Sectors 16450560
Bytes per Sector 512
MB 8032
Cylinders 1024
Heads 255
Sectors per Track 63
Successful IO Count 0
Extended Int 13h
Total Sectors 226621519
Bytes per Sector 512
MB 110655
Successful IO Count 0
IDE using PIO
Total Sectors 226621519
Bytes per Sector 512
MB 110655
Cylinders 16383
Heads 16
Sectors per Track 63
Successful IO Count 0
IDE using UDMA (Active)
Total Sectors 226621519
Bytes per Sector 512
MB 110655
Cylinders 16383
Heads 16
Sectors per Track 63
Successful IO Count 217
Floppy Drives
Drive 0
Int 13h (Active)
Total Sectors 5760
Bytes per Sector 512
MB 2
Cylinders 80
Heads 2
Sectors per Track 36
Successful IO Count 1
Extended Int 13h
Total Sectors 5760
Bytes per Sector 512
MB 2
Cylinders 80
Heads 2
Sectors per Track 36
Successful IO Count 0
The following devices do not use an IRQ:
(0x00, 0x00, 0x00): IRQ: 0x00, INT#: -, Link: 0x00
Class: Bridge, SubClass: Host/PCI
Vendor: 0x1106, Device: 0x3188
(0x00, 0x01, 0x00): IRQ: 0x00, INT#: -, Link: 0x00
Class: Bridge, SubClass: PCI/PCI
Vendor: 0x1106, Device: 0xb188, RoutePINS: 0x01, 0x02, 0x03, 0x05,
(0x00, 0x11, 0x00): IRQ: 0x00, INT#: -, Link: 0x00
Class: Bridge, SubClass: PCI/ISA
Vendor: 0x1106, Device: 0x3227, RoutePINS: 0x00, 0x00, 0x03, 0x05,
(0x00, 0x18, 0x00): IRQ: 0x00, INT#: -, Link: 0x00
Class: Bridge, SubClass: Host/PCI
Vendor: 0x1022, Device: 0x1100
(0x00, 0x18, 0x01): IRQ: 0x00, INT#: -, Link: 0x00
Class: Bridge, SubClass: Host/PCI
Vendor: 0x1022, Device: 0x1101
(0x00, 0x18, 0x02): IRQ: 0x00, INT#: -, Link: 0x00
Class: Bridge, SubClass: Host/PCI
Vendor: 0x1022, Device: 0x1102
(0x00, 0x18, 0x03): IRQ: 0x00, INT#: -, Link: 0x00
Class: Bridge, SubClass: Host/PCI
Vendor: 0x1022, Device: 0x1103
The following hard wire-ord devices share IRQ 10:
(0x00, 0x0f, 0x01): IRQ: 0xff, INT#: A, Link: 0x01
Class: Mass Storage, SubClass: IDE Controller
Vendor: 0x1106, Device: 0x0571, RoutePINS: 0x01, 0x02, 0x03, 0x05,
(0x00, 0x10, 0x00): IRQ: 0x0a, INT#: A, Link: 0x01
Class: Serial Bus, SubClass: USB UHCI
Vendor: 0x1106, Device: 0x3038, RoutePINS: 0x01, 0x02, 0x03, 0x05,
(0x00, 0x10, 0x01): IRQ: 0x0a, INT#: A, Link: 0x01
Class: Serial Bus, SubClass: USB UHCI
Vendor: 0x1106, Device: 0x3038, RoutePINS: 0x01, 0x02, 0x03, 0x05,
(0x00, 0x12, 0x00): IRQ: 0x0a, INT#: A, Link: 0x01
Class: Network, SubClass: Ethernet
Vendor: 0x1106, Device: 0x3065, RoutePINS: 0x01, 0x00, 0x00, 0x00,
(0x01, 0x00, 0x00): IRQ: 0x0a, INT#: A, Link: 0x01
Class: Display, SubClass: VGA compatible
Vendor: 0x10de, Device: 0x0342, RoutePINS: 0x01, 0x02, 0x03, 0x05,
The following hard wire-ord devices share IRQ 11:
(0x00, 0x06, 0x00): IRQ: 0x0b, INT#: A, Link: 0x02
Class: Serial Bus, SubClass: IEEE 1394 OpenHCI
Vendor: 0x1106, Device: 0x3044, RoutePINS: 0x02, 0x03, 0x05, 0x01,
(0x00, 0x0f, 0x00): IRQ: 0x0b, INT#: B, Link: 0x02
Class: Mass Storage, SubClass: IDE Controller
Vendor: 0x1106, Device: 0x3149, RoutePINS: 0x01, 0x02, 0x03, 0x05,
(0x00, 0x10, 0x02): IRQ: 0x0b, INT#: B, Link: 0x02
Class: Serial Bus, SubClass: USB UHCI
Vendor: 0x1106, Device: 0x3038, RoutePINS: 0x01, 0x02, 0x03, 0x05,
(0x00, 0x10, 0x03): IRQ: 0x0b, INT#: B, Link: 0x02
Class: Serial Bus, SubClass: USB UHCI
Vendor: 0x1106, Device: 0x3038, RoutePINS: 0x01, 0x02, 0x03, 0x05,
The following hard wire-ord devices share IRQ 12:
(0x00, 0x10, 0x04): IRQ: 0x0c, INT#: C, Link: 0x03
Class: Serial Bus, SubClass: USB EHCI
Vendor: 0x1106, Device: 0x3104, RoutePINS: 0x01, 0x02, 0x03, 0x05,
(0x00, 0x11, 0x05): IRQ: 0x0c, INT#: C, Link: 0x03
Class: Multimedia, SubClass: Audio
Vendor: 0x1106, Device: 0x3059, RoutePINS: 0x00, 0x00, 0x03, 0x05,
>> Found Mass storage & network controller hard wire-ord together !!
FilesystemManager diagnostic...
===============================
Volume 1
VolumePos: 1.1:
DriveLetter: C:
Description: 19.53GB Primary Disk 0 Offset 31.50KB 19.53GB ST3120022A 5JT3RVZJ
Type: fsfFat32
Name:
Volume 2
VolumePos: 1.2:
DriveLetter: D:
Description: 22.46GB Logical Disk 0 Offset 19.53GB 22.46GB ST3120022A 5JT3RVZJ
Type: fsfFat32
Name:
Volume 3
VolumePos: 1.3:
DriveLetter: E:
Description: 24.41GB Logical Disk 0 Offset 41.99GB 24.41GB ST3120022A 5JT3RVZJ
Type: fsfFat32
Name:
Volume 4
VolumePos: 1.4:
DriveLetter: F:
Description: 24.41GB Logical Disk 0 Offset 66.41GB 24.41GB ST3120022A 5JT3RVZJ
Type: fsfFat32
Name:
FilesystemMounter diagnostic...
===============================
LfoFilesystemManager diagnostic...
==================================
Filesystem Index: 0
Filesystem Descriptor:
ID's:
ID Type: 2
ID: A:
DriveType: 2
No FilesystemInfo structure.
Filesystem has no VolumePtr
Filesystem Index: 1
Filesystem Descriptor:
ID's:
ID Type: 2
ID: C:
ID Type: 1
ID: 1.1:
DriveType: 4
FilesystemInfo:
formatType: 3
volumeName:
Filesystem Index: 2
Filesystem Descriptor:
ID's:
ID Type: 2
ID: D:
ID Type: 1
ID: 1.2:
DriveType: 4
FilesystemInfo:
formatType: 3
volumeName:
Filesystem Index: 3
Filesystem Descriptor:
ID's:
ID Type: 2
ID: E:
ID Type: 1
ID: 1.3:
DriveType: 4
FilesystemInfo:
formatType: 3
volumeName:
Filesystem Index: 4
Filesystem Descriptor:
ID's:
ID Type: 2
ID: F:
ID Type: 1
ID: 1.4:
DriveType: 4
FilesystemInfo:
formatType: 3
volumeName:
Filesystem Index: 5
Filesystem Descriptor:
ID's:
ID Type: 2
ID: G:
DriveType: 4
No FilesystemInfo structure.
Filesystem has no VolumePtr
Filesystem Index: 6
Filesystem Descriptor:
ID's:
ID Type: 2
ID: H:
DriveType: 32
No FilesystemInfo structure.
Filesystem has no VolumePtr
*********************************
作者: lianjiang2004
时间: 2007-4-23 04:40
作者: zch1366
时间: 2007-4-23 08:05
作者: sypl
时间: 2007-4-23 09:30
作者: cchessbd
时间: 2007-4-23 10:25
Originally posted by zch1366 at 2007-4-22 01:02:
自动一键备份
ghost -dd >NUL
set p=1
call ghost.bat 1 2 3 4 5 6 7 8 9 10 11 12 13 14
GHOST.EXE -CLONE,MODE=PDUMP,SRC=1:1,DST=%LastP%\win.gho -sure -Z3 -FX
goto exit;
自动一键恢 ...
不是Wangsea大侠的P处理吗……
。。。
牛人就是牛啊 菜鸟也比较菜。。。
作者: cchessbd
时间: 2007-4-23 10:26
Originally posted by zch1366 at 2007-4-23 02:18:
我是装杌用...帮客户备份...我全是32位格式..NTFS分区极少...
支持NTFS分区复杂很多....不想太麻烦大家
最好把1去掉,假如只有一个分区的话,哼哼……
作者: terse
时间: 2007-4-23 14:19
GOTOmsdos做的miniTo这个工具和GHOST的结合很好 这几天在试用,已经试用!除今天对U盘操作不能以外!加载IFS后无论是NTFS还是FAT都成功,可实现盘符转换!建议试用;做自动一键备份/恢复可以看看!这两天做点事,等过后我可以贴图,
www.cn-dos.net/forum/viewthrea ...
[
Last edited by terse on 2007-4-23 at 02:23 PM ]
作者: zch1366
时间: 2007-4-25 09:34
都是不能在最后创建文件夹
ghost -dd >NUL
set p=1
call ghost.bat 1 2 3 4 5 6 7 8 9 10 11 12 13 14
for %%p in (c: d: e: f: g: h: i: j: k: l: m: n:) do set lastd=%%p
if not exist %lastd%\ghost>nul md %lastd%\ghost >nul
attrib %lastd%\ghost +h +s +r
GHOST.EXE -CLONE,MODE=PDUMP,SRC=1:1,DST=%LastP%\ghost\win.gho -sure -Z3 -FX
作者: lianjiang2004
时间: 2007-4-25 09:42
看了一下,这里写错了。
if not exist %lastd%\ghost>nul md %lastd%\ghost >nul
改成
if not exist %lastd%\ghost\nul md %lastd%\ghost >nul
试过回来报告。
作者: zch1366
时间: 2007-4-25 10:03
都是不能在最后创建文件夹....我是虚以软驱启动....在C:\下运行备份程序...不好意思麻烦你了...
GHOSTERR文件
*********************************
Date : Tue Apr 24 20:41:19 2007
Error Number: (662)
Message: Cannot create image file D:\GHOST\WIN.GHO
Filesystem error (2): File or directory does not exist
Version: 11.0.0.1502 (Dec 4 2006, Build=1502)
OS Version: DOS v7.10
Command line arguments: -CLONE,MODE=PDUMP,SRC=1:1,DST=1:2\ghost\win.gho -sure -Z3 -FX
Active Switches :
AutoName
PathName :
DumpFile : 1:2\GHOST\WIN.GHO
DumpPos : 0
Last LFO Buffersize : 0
Last LFO Path :
Full Path : 1:2\GHOST\WIN.GHO
Disk:Partition : 1:2
Drive Letter : D:\
Last LFO Filesystem : Proprietary
Last LFO Error : Filesystem error (2): File or directory does not exist
Last LFO Error Path :
Full Path : 1:2\GHOST\WIN.GHO
Disk:Partition : 1:2
Drive Letter : D:\
FlagImplode : 4
FlagExplode : 0
CloneSrc : 1
BatchPartSrc : 1
BatchPartMSrc : 1
CloneDst : 1:2\GHOST\WIN.GHO
BatchPartDst : 0
Operation Details :
Total size.........0
MB copied..........0
MB remaining.......0
Percent complete...0%
Speed..............0 MB/min
Time elapsed.......0:00
Time remaining.....0:00
Program Call Stack
AbortLog
Generic_Abort
CopyPartToFile
CopyMainline
AttemptOperation
sub_main
main
Call Stack
0x0039623c
0x0009cbd1
0x0009c40c
0x0009bae7
0x0009d6ee
0x000c6519
0x0000222b
0x00002374
0x0000502f
0x00003f2f
0x0039f468
End Call Stack
Start heap available: 250888192
Cur heap available: 250232832
Total Memory: 258424832
Allocated
1024 DpmiDjgpp.cpp:56
33504 ghost.cpp:1394
64 DiskDriveAccessExInt13.cpp:139
48 DiskDriveAccessExInt13.cpp:139
528 IdeDmaServerPci.cpp:127
528 IdeDmaServerPci.cpp:127
Free
80 DiskDriveAccessExInt13.cpp:102
512 DiskDriveAccessInt13.cpp:184
32768 BlockDeviceDosDrive.cpp:392
Fat details:
SRC:
FatType..........32
firstSector.......63
ClusterSize......4096
clusters.........1022134
root_next_avail..0
data_next_avail..0
dir_sector.......0
root_sector......16008
data_sector......16008
FAT_sector.......0
NTFS details:
----------------
NTFS Global Flags:
----------------
contiguousWrite=1 forceDiskClusterMapping=0
inhibitCHKDSK=1 ignoreBadLog=0 ignoreCHKDSKBit=0
enable_cache=0 xfrbuflen=0
last_attr_type = 0
loadExact = 0
----------------
Disk Info :
remote.............0
drive..............0
sectorsUsedCount.......19743822
estimatedUsedCount.....10035488
numPartitions..............1
Version............0
# Ord Boot Id Ext First Num Last Used NTFS
0 0 1 b No 63 8193087 8193150 3528048 No
Disk Info :
remote.............0
drive..............0
sectorsUsedCount.......0
estimatedUsedCount.....0
numPartitions..............0
Version............0
# Ord Boot Id Ext First Num Last Used NTFS
Fixed Drives
Drive 128 Maxtor 91021U2 G21BFVLC
Int 13h
Total Sectors 16450560
Bytes per Sector 512
MB 8032
Cylinders 1024
Heads 255
Sectors per Track 63
Successful IO Count 0
Extended Int 13h
Total Sectors 19746720
Bytes per Sector 512
MB 9641
Successful IO Count 0
IDE using PIO
Total Sectors 19746720
Bytes per Sector 512
MB 9641
Cylinders 16383
Heads 16
Sectors per Track 63
Successful IO Count 0
IDE using UDMA (Active)
Total Sectors 19746720
Bytes per Sector 512
MB 9641
Cylinders 16383
Heads 16
Sectors per Track 63
Successful IO Count 121
Floppy Drives
Drive 0
Int 13h (Active)
Total Sectors 8640
Bytes per Sector 512
MB 4
Cylinders 120
Heads 2
Sectors per Track 36
Successful IO Count 1
Extended Int 13h
Total Sectors 8640
Bytes per Sector 512
MB 4
Cylinders 120
Heads 2
Sectors per Track 36
Successful IO Count 0
Remote Drives
AsyncIo : 0
Image Devices
Key[1] 1.1:
Key[2] 1:1
Key[3] C:
Path C:
Desc C: 1.1: []
Type FAT
Disk 0
Offset 63
Key[1] 1.2:
Key[2] 1:2
Key[3] D:
Path D:
Desc D: 1.2: []
Type FAT
Disk 0
Offset 8193150
Key[1] A:
Path A:
Desc A:
Type Floppy
Key[1] E:
Path E:
Desc E: [MS-RAMDRIVE]
Type Disk
Key[1] F:
Path F:
Desc F: []
Type CD
Key[1] @CD-R1
Path @CD-R1
Desc @CD-R1 SONY CD-RW CRX300E
Type DVD
ConvMemoryAllocationFactoryDpmi diagnostic...
=============================================
Conventional Memory
Initial Conventional Memory Size = 463856
Current Conventional Memory Size = 389584
Allocated
1024 DpmiDjgpp.cpp:56
33504 ghost.cpp:1394
64 DiskDriveAccessExInt13.cpp:139
48 DiskDriveAccessExInt13.cpp:139
528 IdeDmaServerPci.cpp:127
528 IdeDmaServerPci.cpp:127
Free
80 DiskDriveAccessExInt13.cpp:102
512 DiskDriveAccessInt13.cpp:184
32768 BlockDeviceDosDrive.cpp:392
DiskManager diagnostic...
=========================
Fixed Drives
Drive 128 Maxtor 91021U2 G21BFVLC
Int 13h
Total Sectors 16450560
Bytes per Sector 512
MB 8032
Cylinders 1024
Heads 255
Sectors per Track 63
Successful IO Count 0
Extended Int 13h
Total Sectors 19746720
Bytes per Sector 512
MB 9641
Successful IO Count 0
IDE using PIO
Total Sectors 19746720
Bytes per Sector 512
MB 9641
Cylinders 16383
Heads 16
Sectors per Track 63
Successful IO Count 0
IDE using UDMA (Active)
Total Sectors 19746720
Bytes per Sector 512
MB 9641
Cylinders 16383
Heads 16
Sectors per Track 63
Successful IO Count 121
Floppy Drives
Drive 0
Int 13h (Active)
Total Sectors 8640
Bytes per Sector 512
MB 4
Cylinders 120
Heads 2
Sectors per Track 36
Successful IO Count 1
Extended Int 13h
Total Sectors 8640
Bytes per Sector 512
MB 4
Cylinders 120
Heads 2
Sectors per Track 36
Successful IO Count 0
The following devices do not use an IRQ:
(0x00, 0x00, 0x00): IRQ: 0x00, INT#: -, Link: 0x00
Class: Bridge, SubClass: Host/PCI
Vendor: 0x1039, Device: 0x0648
(0x00, 0x01, 0x00): IRQ: 0x00, INT#: -, Link: 0x00
Class: Bridge, SubClass: PCI/PCI
Vendor: 0x1039, Device: 0x0001
(0x00, 0x02, 0x00): IRQ: 0x00, INT#: -, Link: 0x00
Class: Bridge, SubClass: PCI/ISA
Vendor: 0x1039, Device: 0x0963, RoutePINS: 0x41, 0x42, 0x43, 0x44,
(0x01, 0x00, 0x00): IRQ: 0x00, INT#: -, Link: 0x00
Class: Display, SubClass: VGA compatible
Vendor: 0x1039, Device: 0x0330, RoutePINS: 0x41, 0x42, 0x00, 0x00,
The following hard wire-ord devices share IRQ 11:
(0x00, 0x02, 0x05): IRQ: 0x0b, INT#: A, Link: 0x41
Class: Mass Storage, SubClass: IDE Controller
Vendor: 0x1039, Device: 0x5513, RoutePINS: 0x41, 0x42, 0x43, 0x44,
The following hard wire-ord devices share IRQ 10:
(0x00, 0x02, 0x07): IRQ: 0x0a, INT#: C, Link: 0x43
Class: Multimedia, SubClass: Audio
Vendor: 0x1039, Device: 0x7012, RoutePINS: 0x41, 0x42, 0x43, 0x44,
The following hard wire-ord devices share IRQ 3:
(0x00, 0x04, 0x00): IRQ: 0x03, INT#: A, Link: 0x44
Class: Network, SubClass: Ethernet
Vendor: 0x1039, Device: 0x0900, RoutePINS: 0x44, 0x00, 0x00, 0x00,
The following hard wire-ord devices share IRQ 5:
(0x00, 0x03, 0x00): IRQ: 0x05, INT#: A, Link: 0x60
Class: Serial Bus, SubClass: USB OHCI
Vendor: 0x1039, Device: 0x7001, RoutePINS: 0x60, 0x61, 0x62, 0x63,
The following hard wire-ord devices share IRQ 6:
(0x00, 0x03, 0x01): IRQ: 0x06, INT#: B, Link: 0x61
Class: Serial Bus, SubClass: USB OHCI
Vendor: 0x1039, Device: 0x7001, RoutePINS: 0x60, 0x61, 0x62, 0x63,
The following hard wire-ord devices share IRQ 9:
(0x00, 0x03, 0x02): IRQ: 0x09, INT#: D, Link: 0x63
Class: Serial Bus, SubClass: USB EHCI
Vendor: 0x1039, Device: 0x7002, RoutePINS: 0x60, 0x61, 0x62, 0x63,
FilesystemManager diagnostic...
===============================
Volume 1
VolumePos: 1.1:
DriveLetter: C:
Description: 3.91GB Primary Disk 0 Offset 31.50KB 3.91GB Maxtor 91021U2 G21BFVLC
Type: fsfFat32
Name:
Volume 2
VolumePos: 1.2:
DriveLetter: D:
Description: 5.51GB Primary Disk 0 Offset 3.91GB 5.51GB Maxtor 91021U2 G21BFVLC
Type: fsfFat32
Name:
FilesystemMounter diagnostic...
===============================
LfoFilesystemManager diagnostic...
==================================
Filesystem Index: 0
Filesystem Descriptor:
ID's:
ID Type: 2
ID: A:
DriveType: 2
No FilesystemInfo structure.
Filesystem has no VolumePtr
Filesystem Index: 1
Filesystem Descriptor:
ID's:
ID Type: 2
ID: C:
ID Type: 1
ID: 1.1:
DriveType: 4
FilesystemInfo:
formatType: 3
volumeName:
Filesystem Index: 2
Filesystem Descriptor:
ID's:
ID Type: 2
ID: D:
ID Type: 1
ID: 1.2:
DriveType: 4
FilesystemInfo:
formatType: 3
volumeName:
Filesystem Index: 3
Filesystem Descriptor:
ID's:
ID Type: 2
ID: E:
DriveType: 32
No FilesystemInfo structure.
Filesystem has no VolumePtr
Filesystem Index: 4
Filesystem Descriptor:
ID's:
ID Type: 2
ID: F:
DriveType: 8
No FilesystemInfo structure.
Filesystem has no VolumePtr
GHSTSTAT文件
*********************************
Date : Tue Apr 24 20:41:12 2007
Error Number: (0)
Message: Stats Dump
Version: 11.0.0.1502 (Dec 4 2006, Build=1502)
OS Version: DOS v7.10
Command line arguments: -dd
Active Switches :
AutoName
PathName :
DumpFile :
DumpPos : 0
FlagImplode : 0
FlagExplode : 0
Operation Details :
Total size.........0
MB copied..........0
MB remaining.......0
Percent complete...0%
Speed..............0 MB/min
Time elapsed.......0:00
Time remaining.....0:00
Program Call Stack
sub_main
main
Call Stack
0x0039623c
0x0009cbd1
0x0000307e
0x00004ce1
0x00003f2f
0x0039f468
End Call Stack
Start heap available: 250953728
Cur heap available: 250757120
Total Memory: 258424832
Allocated
1024 DpmiDjgpp.cpp:56
33504 ghost.cpp:1394
64 DiskDriveAccessExInt13.cpp:139
48 DiskDriveAccessExInt13.cpp:139
528 IdeDmaServerPci.cpp:127
528 IdeDmaServerPci.cpp:127
Free
80 DiskDriveAccessExInt13.cpp:102
512 DiskDriveAccessInt13.cpp:184
32768 BlockDeviceDosDrive.cpp:392
Fat details:
NTFS details:
----------------
NTFS Global Flags:
----------------
contiguousWrite=1 forceDiskClusterMapping=0
inhibitCHKDSK=1 ignoreBadLog=0 ignoreCHKDSKBit=0
enable_cache=0 xfrbuflen=0
last_attr_type = 0
loadExact = 0
----------------
Disk Info :
remote.............0
drive..............0
sectorsUsedCount.......19743822
estimatedUsedCount.....0
numPartitions..............2
Version............0
# Ord Boot Id Ext First Num Last Used NTFS
0 0 1 b No 63 8193087 8193150 0 No
1 1 0 c No 8193150 11550735 19743885 0 No
Disk Info :
remote.............0
drive..............0
sectorsUsedCount.......0
estimatedUsedCount.....0
numPartitions..............0
Version............0
# Ord Boot Id Ext First Num Last Used NTFS
Fixed Drives
Drive 128 Maxtor 91021U2 G21BFVLC
Int 13h
Total Sectors 16450560
Bytes per Sector 512
MB 8032
Cylinders 1024
Heads 255
Sectors per Track 63
Successful IO Count 0
Extended Int 13h
Total Sectors 19746720
Bytes per Sector 512
MB 9641
Successful IO Count 0
IDE using PIO
Total Sectors 19746720
Bytes per Sector 512
MB 9641
Cylinders 16383
Heads 16
Sectors per Track 63
Successful IO Count 0
IDE using UDMA (Active)
Total Sectors 19746720
Bytes per Sector 512
MB 9641
Cylinders 16383
Heads 16
Sectors per Track 63
Successful IO Count 98
Floppy Drives
Drive 0
Int 13h (Active)
Total Sectors 8640
Bytes per Sector 512
MB 4
Cylinders 120
Heads 2
Sectors per Track 36
Successful IO Count 1
Extended Int 13h
Total Sectors 8640
Bytes per Sector 512
MB 4
Cylinders 120
Heads 2
Sectors per Track 36
Successful IO Count 0
Remote Drives
AsyncIo : 0
Image Devices
Key[1] 1.1:
Key[2] 1:1
Key[3] C:
Path C:
Desc C: 1.1: []
Type FAT
Disk 0
Offset 63
Key[1] 1.2:
Key[2] 1:2
Key[3] D:
Path D:
Desc D: 1.2: []
Type FAT
Disk 0
Offset 8193150
Key[1] A:
Path A:
Desc A:
Type Floppy
Key[1] E:
Path E:
Desc E: [MS-RAMDRIVE]
Type Disk
Key[1] F:
Path F:
Desc F: []
Type CD
Key[1] @CD-R1
Path @CD-R1
Desc @CD-R1 SONY CD-RW CRX300E
Type DVD
ConvMemoryAllocationFactoryDpmi diagnostic...
=============================================
Conventional Memory
Initial Conventional Memory Size = 463856
Current Conventional Memory Size = 389584
Allocated
1024 DpmiDjgpp.cpp:56
33504 ghost.cpp:1394
64 DiskDriveAccessExInt13.cpp:139
48 DiskDriveAccessExInt13.cpp:139
528 IdeDmaServerPci.cpp:127
528 IdeDmaServerPci.cpp:127
Free
80 DiskDriveAccessExInt13.cpp:102
512 DiskDriveAccessInt13.cpp:184
32768 BlockDeviceDosDrive.cpp:392
DiskManager diagnostic...
=========================
Fixed Drives
Drive 128 Maxtor 91021U2 G21BFVLC
Int 13h
Total Sectors 16450560
Bytes per Sector 512
MB 8032
Cylinders 1024
Heads 255
Sectors per Track 63
Successful IO Count 0
Extended Int 13h
Total Sectors 19746720
Bytes per Sector 512
MB 9641
Successful IO Count 0
IDE using PIO
Total Sectors 19746720
Bytes per Sector 512
MB 9641
Cylinders 16383
Heads 16
Sectors per Track 63
Successful IO Count 0
IDE using UDMA (Active)
Total Sectors 19746720
Bytes per Sector 512
MB 9641
Cylinders 16383
Heads 16
Sectors per Track 63
Successful IO Count 98
Floppy Drives
Drive 0
Int 13h (Active)
Total Sectors 8640
Bytes per Sector 512
MB 4
Cylinders 120
Heads 2
Sectors per Track 36
Successful IO Count 1
Extended Int 13h
Total Sectors 8640
Bytes per Sector 512
MB 4
Cylinders 120
Heads 2
Sectors per Track 36
Successful IO Count 0
The following devices do not use an IRQ:
(0x00, 0x00, 0x00): IRQ: 0x00, INT#: -, Link: 0x00
Class: Bridge, SubClass: Host/PCI
Vendor: 0x1039, Device: 0x0648
(0x00, 0x01, 0x00): IRQ: 0x00, INT#: -, Link: 0x00
Class: Bridge, SubClass: PCI/PCI
Vendor: 0x1039, Device: 0x0001
(0x00, 0x02, 0x00): IRQ: 0x00, INT#: -, Link: 0x00
Class: Bridge, SubClass: PCI/ISA
Vendor: 0x1039, Device: 0x0963, RoutePINS: 0x41, 0x42, 0x43, 0x44,
(0x01, 0x00, 0x00): IRQ: 0x00, INT#: -, Link: 0x00
Class: Display, SubClass: VGA compatible
Vendor: 0x1039, Device: 0x0330, RoutePINS: 0x41, 0x42, 0x00, 0x00,
The following hard wire-ord devices share IRQ 11:
(0x00, 0x02, 0x05): IRQ: 0x0b, INT#: A, Link: 0x41
Class: Mass Storage, SubClass: IDE Controller
Vendor: 0x1039, Device: 0x5513, RoutePINS: 0x41, 0x42, 0x43, 0x44,
The following hard wire-ord devices share IRQ 10:
(0x00, 0x02, 0x07): IRQ: 0x0a, INT#: C, Link: 0x43
Class: Multimedia, SubClass: Audio
Vendor: 0x1039, Device: 0x7012, RoutePINS: 0x41, 0x42, 0x43, 0x44,
The following hard wire-ord devices share IRQ 3:
(0x00, 0x04, 0x00): IRQ: 0x03, INT#: A, Link: 0x44
Class: Network, SubClass: Ethernet
Vendor: 0x1039, Device: 0x0900, RoutePINS: 0x44, 0x00, 0x00, 0x00,
The following hard wire-ord devices share IRQ 5:
(0x00, 0x03, 0x00): IRQ: 0x05, INT#: A, Link: 0x60
Class: Serial Bus, SubClass: USB OHCI
Vendor: 0x1039, Device: 0x7001, RoutePINS: 0x60, 0x61, 0x62, 0x63,
The following hard wire-ord devices share IRQ 6:
(0x00, 0x03, 0x01): IRQ: 0x06, INT#: B, Link: 0x61
Class: Serial Bus, SubClass: USB OHCI
Vendor: 0x1039, Device: 0x7001, RoutePINS: 0x60, 0x61, 0x62, 0x63,
The following hard wire-ord devices share IRQ 9:
(0x00, 0x03, 0x02): IRQ: 0x09, INT#: D, Link: 0x63
Class: Serial Bus, SubClass: USB EHCI
Vendor: 0x1039, Device: 0x7002, RoutePINS: 0x60, 0x61, 0x62, 0x63,
FilesystemManager diagnostic...
===============================
Volume 1
VolumePos: 1.1:
DriveLetter: C:
Description: 3.91GB Primary Disk 0 Offset 31.50KB 3.91GB Maxtor 91021U2 G21BFVLC
Type: fsfFat32
Name:
Volume 2
VolumePos: 1.2:
DriveLetter: D:
Description: 5.51GB Primary Disk 0 Offset 3.91GB 5.51GB Maxtor 91021U2 G21BFVLC
Type: fsfFat32
Name:
FilesystemMounter diagnostic...
===============================
LfoFilesystemManager diagnostic...
==================================
Filesystem Index: 0
Filesystem Descriptor:
ID's:
ID Type: 2
ID: A:
DriveType: 2
No FilesystemInfo structure.
Filesystem has no VolumePtr
Filesystem Index: 1
Filesystem Descriptor:
ID's:
ID Type: 2
ID: C:
ID Type: 1
ID: 1.1:
DriveType: 4
FilesystemInfo:
formatType: 3
volumeName:
Filesystem Index: 2
Filesystem Descriptor:
ID's:
ID Type: 2
ID: D:
ID Type: 1
ID: 1.2:
DriveType: 4
FilesystemInfo:
formatType: 3
volumeName:
Filesystem Index: 3
Filesystem Descriptor:
ID's:
ID Type: 2
ID: E:
DriveType: 32
No FilesystemInfo structure.
Filesystem has no VolumePtr
Filesystem Index: 4
Filesystem Descriptor:
ID's:
ID Type: 2
ID: F:
DriveType: 8
No FilesystemInfo structure.
Filesystem has no VolumePtr
作者: lianjiang2004
时间: 2007-4-25 10:36
作者: zch1366
时间: 2007-4-25 10:49
作者: lianjiang2004
时间: 2007-4-25 11:02
测试通过代码。
-----------
ghost -dd >NUL
set p=1
call ghost.bat 1 2 3 4 5 6 7 8 9 10 11 12 13 14
for %%p in (c: d: e: f: g: h: i: j: k: l: m: n:) do if exist %%p\nul set lastd=%%p
if not exist %lastd%\ghost\nul md %lastd%\ghost >nul
attrib %lastd%\ghost +h +s +r
GHOST.EXE -CLONE,MODE=PDUMP,SRC=1:1,DST=%Lastd%\ghost\win.gho -sure -Z3 -FX
作者: lianjiang2004
时间: 2007-4-25 11:04
注意:ghost中用的是 %Lastd%\ghost\win.gho
作者: lianjiang2004
时间: 2007-4-25 11:05
我的代码里,实际上最后分区号的确定部分代码可以不要,直接确定最后盘符,建目录,备份就行了。
作者: zch1366
时间: 2007-4-25 11:37
作者: lianjiang2004
时间: 2007-4-25 20:12
作者: lianjiang2004
时间: 2007-4-25 20:27
作者: zch1366
时间: 2007-4-25 21:42
这里能学习电脑知识...高手们都相当热情........很有人情味.!现在很难得!!!!!
作者: lianjiang2004
时间: 2007-4-25 22:12
修改了1.bat 和ghost.bat ,增加lastd.bat用于确定最后分区对应的盘符。
以下代码在我自己的img里测试通过。因你给的img似乎文件不全,无法创建ghststat.txt,不能通过。
--------------------
1.bat
ghost -dd >NUL
set p=1
call ghost.bat 1 2 3 4 5 6 7 8 9 10 11 12 13 14
call lastd.bat c: d: e: f: g: h: i: j: k: l: m: n: o:
if not exist %lastd%\ghost\nul md %lastd%\ghost >nul
attrib %lastd%\ghost +h +s +r
GHOST.EXE -CLONE,MODE=PDUMP,SRC=1:1,DST=%LastP%\ghost\win.gho -sure -Z3 -FX
-------------------------
ghost.bat
:1
FIND /i "%p%:%1" GHSTSTAT.TXT >NUL
if errorlevel 1 goto 2
set LastP=%p%:%1
Shift
goto 1
:2
rem del GHSTSTAT.TXT
---------------------
lastd.bat
:1
FIND /i "%1 %lastp%" GHSTSTAT.TXT >NUL
if errorlevel 1 goto 3
set Lastd=%1
if not %lastd%#==# goto 2
:3
Shift
goto 1
:2
del GHSTSTAT.TXT
[ Last edited by lianjiang2004 on 2007-4-25 at 10:15 PM ]
作者: lianjiang2004
时间: 2007-4-25 22:30
另外,假如用第三方软件minito的话,就不用分区与盘符找两次,一次就可确定了。
感兴趣的话可找相关帖子。
作者: zch1366
时间: 2007-4-26 00:07
作者: zch1366
时间: 2007-4-26 00:28
作者: zch1366
时间: 2007-4-26 00:29
无法创建ghststat.txt
原因是什么...要添加什么文件到img里...谢谢!!!!
作者: lianjiang2004
时间: 2007-4-26 00:57
ghost-dd运行时将生成ghststat.txt,由于你现在的img当前盘符是A:,这是不可写的,因此需把路径改到虚拟内存盘,应就可以了。
作者: lianjiang2004
时间: 2007-4-26 01:00
我用的就是gghost,可从我网盘下载。
然后40楼的代码,分别拷贝到3个文件,添加到img中,启动后运行1.bat即可进行测试。
作者: zch1366
时间: 2007-4-26 01:23
你的作品写的很好..值的珍藏!
在你作品测试成功了....谢谢!!!!!!
为何复制到c:\盘下就不成功...不停从复搜索文件?
GHSTSTAT文件
Date : Wed Apr 25 12:00:01 2007
Error Number: (0)
Message: Stats Dump
Version: 11.0.0.1502 (Dec 4 2006, Build=1502)
OS Version: DOS v7.10
Command line arguments: -dd
Active Switches :
AutoName
PathName :
DumpFile :
DumpPos : 0
FlagImplode : 0
FlagExplode : 0
Operation Details :
Total size.........0
MB copied..........0
MB remaining.......0
Percent complete...0%
Speed..............0 MB/min
Time elapsed.......0:00
Time remaining.....0:00
Program Call Stack
sub_main
main
Call Stack
0x0039623c
0x0009cbd1
0x0000307e
0x00004ce1
0x00003f2f
0x0039f468
End Call Stack
Start heap available: 512557056
Cur heap available: 512360448
Total Memory: 520028160
Allocated
1024 DpmiDjgpp.cpp:56
33504 ghost.cpp:1394
64 DiskDriveAccessExInt13.cpp:139
48 DiskDriveAccessExInt13.cpp:139
528 IdeDmaServerPci.cpp:127
528 IdeDmaServerPci.cpp:127
Free
80 DiskDriveAccessExInt13.cpp:102
512 DiskDriveAccessInt13.cpp:184
32768 BlockDeviceDosDrive.cpp:392
Fat details:
NTFS details:
----------------
NTFS Global Flags:
----------------
contiguousWrite=1 forceDiskClusterMapping=0
inhibitCHKDSK=1 ignoreBadLog=0 ignoreCHKDSKBit=0
enable_cache=0 xfrbuflen=0
last_attr_type = 0
loadExact = 0
----------------
Disk Info :
remote.............0
drive..............0
sectorsUsedCount.......19743822
estimatedUsedCount.....0
numPartitions..............2
Version............0
# Ord Boot Id Ext First Num Last Used NTFS
0 0 1 b No 63 8193087 8193150 0 No
1 1 0 c No 8193150 11550735 19743885 0 No
Disk Info :
remote.............0
drive..............0
sectorsUsedCount.......0
estimatedUsedCount.....0
numPartitions..............0
Version............0
# Ord Boot Id Ext First Num Last Used NTFS
Fixed Drives
Drive 128 Maxtor 91021U2 G21BFVLC
Int 13h
Total Sectors 16450560
Bytes per Sector 512
MB 8032
Cylinders 1024
Heads 255
Sectors per Track 63
Successful IO Count 0
Extended Int 13h
Total Sectors 19746720
Bytes per Sector 512
MB 9641
Successful IO Count 0
IDE using PIO
Total Sectors 19746720
Bytes per Sector 512
MB 9641
Cylinders 16383
Heads 16
Sectors per Track 63
Successful IO Count 0
IDE using UDMA (Active)
Total Sectors 19746720
Bytes per Sector 512
MB 9641
Cylinders 16383
Heads 16
Sectors per Track 63
Successful IO Count 98
Floppy Drives
Drive 0
Int 13h (Active)
Total Sectors 13824
Bytes per Sector 512
MB 6
Cylinders 192
Heads 2
Sectors per Track 36
Successful IO Count 1
Extended Int 13h
Total Sectors 13788
Bytes per Sector 512
MB 6
Cylinders 192
Heads 2
Sectors per Track 36
Successful IO Count 0
Remote Drives
AsyncIo : 0
Image Devices
Key[1] 1.1:
Key[2] 1:1
Key[3] C:
Path C:
Desc C: 1.1: []
Type FAT
Disk 0
Offset 63
Key[1] 1.2:
Key[2] 1:2
Key[3] D:
Path D:
Desc D: 1.2: []
Type FAT
Disk 0
Offset 8193150
Key[1] A:
Path A:
Desc A:
Type Floppy
Key[1] X:
Path X:
Desc X: [MS-RAMDRIVE]
Type Disk
Key[1] @CD-R1
Path @CD-R1
Desc @CD-R1 SONY CD-RW CRX300E
Type DVD
ConvMemoryAllocationFactoryDpmi diagnostic...
=============================================
Conventional Memory
Initial Conventional Memory Size = 435184
Current Conventional Memory Size = 360912
Allocated
1024 DpmiDjgpp.cpp:56
33504 ghost.cpp:1394
64 DiskDriveAccessExInt13.cpp:139
48 DiskDriveAccessExInt13.cpp:139
528 IdeDmaServerPci.cpp:127
528 IdeDmaServerPci.cpp:127
Free
80 DiskDriveAccessExInt13.cpp:102
512 DiskDriveAccessInt13.cpp:184
32768 BlockDeviceDosDrive.cpp:392
DiskManager diagnostic...
=========================
Fixed Drives
Drive 128 Maxtor 91021U2 G21BFVLC
Int 13h
Total Sectors 16450560
Bytes per Sector 512
MB 8032
Cylinders 1024
Heads 255
Sectors per Track 63
Successful IO Count 0
Extended Int 13h
Total Sectors 19746720
Bytes per Sector 512
MB 9641
Successful IO Count 0
IDE using PIO
Total Sectors 19746720
Bytes per Sector 512
MB 9641
Cylinders 16383
Heads 16
Sectors per Track 63
Successful IO Count 0
IDE using UDMA (Active)
Total Sectors 19746720
Bytes per Sector 512
MB 9641
Cylinders 16383
Heads 16
Sectors per Track 63
Successful IO Count 98
Floppy Drives
Drive 0
Int 13h (Active)
Total Sectors 13824
Bytes per Sector 512
MB 6
Cylinders 192
Heads 2
Sectors per Track 36
Successful IO Count 1
Extended Int 13h
Total Sectors 13788
Bytes per Sector 512
MB 6
Cylinders 192
Heads 2
Sectors per Track 36
Successful IO Count 0
The following devices do not use an IRQ:
(0x00, 0x00, 0x00): IRQ: 0x00, INT#: -, Link: 0x00
Class: Bridge, SubClass: Host/PCI
Vendor: 0x1039, Device: 0x0648
(0x00, 0x01, 0x00): IRQ: 0x00, INT#: -, Link: 0x00
Class: Bridge, SubClass: PCI/PCI
Vendor: 0x1039, Device: 0x0001
(0x00, 0x02, 0x00): IRQ: 0x00, INT#: -, Link: 0x00
Class: Bridge, SubClass: PCI/ISA
Vendor: 0x1039, Device: 0x0963, RoutePINS: 0x41, 0x42, 0x43, 0x44,
(0x01, 0x00, 0x00): IRQ: 0x00, INT#: -, Link: 0x00
Class: Display, SubClass: VGA compatible
Vendor: 0x1039, Device: 0x0330, RoutePINS: 0x41, 0x42, 0x00, 0x00,
The following hard wire-ord devices share IRQ 11:
(0x00, 0x02, 0x05): IRQ: 0x0b, INT#: A, Link: 0x41
Class: Mass Storage, SubClass: IDE Controller
Vendor: 0x1039, Device: 0x5513, RoutePINS: 0x41, 0x42, 0x43, 0x44,
The following hard wire-ord devices share IRQ 10:
(0x00, 0x02, 0x07): IRQ: 0x0a, INT#: C, Link: 0x43
Class: Multimedia, SubClass: Audio
Vendor: 0x1039, Device: 0x7012, RoutePINS: 0x41, 0x42, 0x43, 0x44,
The following hard wire-ord devices share IRQ 3:
(0x00, 0x04, 0x00): IRQ: 0x03, INT#: A, Link: 0x44
Class: Network, SubClass: Ethernet
Vendor: 0x1039, Device: 0x0900, RoutePINS: 0x44, 0x00, 0x00, 0x00,
The following hard wire-ord devices share IRQ 5:
(0x00, 0x03, 0x00): IRQ: 0x05, INT#: A, Link: 0x60
Class: Serial Bus, SubClass: USB OHCI
Vendor: 0x1039, Device: 0x7001, RoutePINS: 0x60, 0x61, 0x62, 0x63,
The following hard wire-ord devices share IRQ 6:
(0x00, 0x03, 0x01): IRQ: 0x06, INT#: B, Link: 0x61
Class: Serial Bus, SubClass: USB OHCI
Vendor: 0x1039, Device: 0x7001, RoutePINS: 0x60, 0x61, 0x62, 0x63,
The following hard wire-ord devices share IRQ 9:
(0x00, 0x03, 0x02): IRQ: 0x09, INT#: D, Link: 0x63
Class: Serial Bus, SubClass: USB EHCI
Vendor: 0x1039, Device: 0x7002, RoutePINS: 0x60, 0x61, 0x62, 0x63,
FilesystemManager diagnostic...
===============================
Volume 1
VolumePos: 1.1:
DriveLetter: C:
Description: 3.91GB Primary Disk 0 Offset 31.50KB 3.91GB Maxtor 91021U2 G21BFVLC
Type: fsfFat32
Name:
Volume 2
VolumePos: 1.2:
DriveLetter: D:
Description: 5.51GB Primary Disk 0 Offset 3.91GB 5.51GB Maxtor 91021U2 G21BFVLC
Type: fsfFat32
Name:
FilesystemMounter diagnostic...
===============================
LfoFilesystemManager diagnostic...
==================================
Filesystem Index: 0
Filesystem Descriptor:
ID's:
ID Type: 2
ID: A:
DriveType: 2
No FilesystemInfo structure.
Filesystem has no VolumePtr
Filesystem Index: 1
Filesystem Descriptor:
ID's:
ID Type: 2
ID: C:
ID Type: 1
ID: 1.1:
DriveType: 4
FilesystemInfo:
formatType: 3
volumeName:
Filesystem Index: 2
Filesystem Descriptor:
ID's:
ID Type: 2
ID: D:
ID Type: 1
ID: 1.2:
DriveType: 4
FilesystemInfo:
formatType: 3
volumeName:
Filesystem Index: 3
Filesystem Descriptor:
ID's:
ID Type: 2
ID: X:
DriveType: 32
No FilesystemInfo structure.
Filesystem has no VolumePtr
*********************************
[ Last edited by zch1366 on 2007-4-26 at 01:25 AM ]
作者: lianjiang2004
时间: 2007-4-26 02:15
对你的autoexec.bat和config.sys进行小改后,用你的img中通过测试。
----------
【config.sys】
devicehigh=ramdrive.sys /E 8192
-------------------
【autoexec.bat】
SET TEMP=%RAMD%:
SET TMP=%RAMD%:
copy *.* %RAMD%: /y >nul
%RAMD%:
1.bat
--------------------
【1.bat】
:1
ghost.exe -dd >NUL
FIND /i "1.1:" GHSTSTAT.TXT >NUL
if errorlevel 1 goto sub_a
set dot=.
goto sub_b
:sub_a
set dot=:
:sub_b
set p=1
call ghost.bat 1 2 3 4 5 6 7 8 9 10 11 12 13 14
call lastd.bat c: d: e: f: g: h: i: j: k: l: m: n: o:
if not exist %lastd%\ghost\nul md %lastd%\ghost >nul
attrib %lastd%\ghost +h +s +r
GHOST.EXE -CLONE,MODE=PDUMP,SRC=1:1,DST=%p%:%LastP%\ghost\win.gho -sure -Z3 -FX -RB
goto exit
:2
ghost -dd >NUL
set p=1
call ghost.bat 1 2 3 4 5 6 7 8 9 10 11 12 13 14
GHOST.EXE -CLONE,MODE=PLOAD,SRC=%p%:%LastP%\ghost\win.gho:1,DST=1:1 -sure -FX -RB
goto exit
------------------------
【ghost.bat】
:1
FIND /i "%p%:%1" GHSTSTAT.TXT >NUL
if errorlevel 1 goto 2
rem set LastP=%p%:%1
set LastP=%1
Shift
goto 1
:2
rem del GHSTSTAT.TXT
--------------------
【lastd.bat】
:1
FIND /i "%1 1%dot%%lastp%" GHSTSTAT.TXT >NUL
if errorlevel 1 goto 3
set Lastd=%1
if not %lastd%#==# goto 2
:3
Shift
goto 1
:2
del GHSTSTAT.TXT
作者: zch1366
时间: 2007-4-26 06:24
我试过缺少文件.....你把修改好的img文件传给我了....不好意思..麻烦你一天了...
153999855 在线等...非常感谢
作者: lianjiang2004
时间: 2007-4-26 08:23
作者: zch1366
时间: 2007-4-26 12:44
作者: zch1366
时间: 2007-4-26 12:54
按照您说的,我终于成功!!!
历害,我算服了您了,懂得那么多,从您这里我学到了不少的东西,真是无以言表,只能说一声谢谢您了!
作者: zch1366
时间: 2007-4-26 14:28
经过小改动....以是全自动了!!!
非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!非常感谢!!!