|
抛砖引玉:利用ghost的ghststat.txt确定活动分区及最后有效分区的方法 [09.06.19]
特点:此方法完全利用ghost自身的信息来进行一键恢复类工具所需的基本信息的处理。
1,用ghost -dd取得硬盘信息。
2,对生成的ghststat.txt进行处理,适用于ghost v8.0~ v11.02。
DOS处理脚本及结果见附图:
ghststat.txt文件内容:
*********************************
Date : Fri Jun 19 08:14:26 2009
Error Number: (0)
Message: Stats Dump
Version: 11.0.2.1573 (Nov 14 2007, Build=1573)
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
0x0039846c
0x0009d011
0x0000307e
0x00004d09
0x00003f2f
0x003a1698
End Call Stack
Start heap available: 250216448
Cur heap available: 250019840
Total Memory: 257753088
Allocated
1024 DpmiDjgpp.cpp:56
33504 ghost.cpp:1396
48 DiskDriveAccessExInt13.cpp:152
528 IdeDmaServerPci.cpp:127
528 IdeDmaServerPci.cpp:127
512 DiskDriveAccessExInt13.cpp:152
512 DiskDriveAccessExInt13.cpp:152
Free
16 MsdosLfoFilesystem.cpp:408
80 DiskDriveAccessExInt13.cpp:115
512 DiskDriveAccessInt13.cpp:189
1024 DiskDriveAccessExInt13.cpp:236
2048 DiskDriveAccessExInt13.cpp:236
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.......10506069
estimatedUsedCount.....0
numPartitions..............8
Version............0
# Ord Boot Id Ext First Num Last Used NTFS
0 0 0 1b No 63 2056257 2056320 0 No
1 1 1 b No 2056320 2457945 4514265 0 No
2 2 0 b Yes 4514328 1028097 5542425 0 No
3 3 0 7 Yes 5542488 3084417 8626905 0 No
4 4 0 83 Yes 8626968 417627 9044595 0 No
5 5 0 83 Yes 9044658 626472 9671130 0 No
6 6 0 82 Yes 9671193 626472 10297665 0 No
7 7 0 b Yes 10297728 208782 10506510 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 CntxCorpHD
Int 13h
Total Sectors 16434495
Bytes per Sector 512
MB 8024
Cylinders 1023
Heads 255
Sectors per Track 63
Successful IO Count 0
Extended Int 13h (Active)
Total Sectors 33554304
Bytes per Sector 512
MB 16383
Successful IO Count 199
IDE using PIO
Total Sectors 33554304
Bytes per Sector 512
MB 16383
Cylinders 33288
Heads 16
Sectors per Track 63
Successful IO Count 0
Drive 129 CntxCorpHD
Int 13h (Active)
Total Sectors 4185216
Bytes per Sector 512
MB 2043
Cylinders 519
Heads 128
Sectors per Track 63
Successful IO Count 103
Extended Int 13h
Total Sectors 4194288
Bytes per Sector 512
MB 2047
Cylinders 4161
Heads 16
Sectors per Track 63
Successful IO Count 0
IDE using PIO
Total Sectors 4194288
Bytes per Sector 512
MB 2047
Cylinders 4161
Heads 16
Sectors per Track 63
Successful IO Count 0
Floppy Drives
Drive 0
Int 13h (Active)
Total Sectors 18720
Bytes per Sector 512
MB 9
Cylinders 260
Heads 2
Sectors per Track 36
Successful IO Count 1
Extended Int 13h
Total Sectors 18720
Bytes per Sector 512
MB 9
Cylinders 260
Heads 2
Sectors per Track 36
Successful IO Count 0
Remote Drives
AsyncIo : 0
Image Devices
Key[1] 1.1:
Key[2] 1:1
Path 1.1:
Desc 1.1: [WIN_1]
Type FAT
Disk 0
Offset 63
Key[1] 1.2:
Key[2] 1:2
Key[3] C:
Path C:
Desc C: 1.2: [WINXP_C]
Type FAT
Disk 0
Offset 2056320
Key[1] 1.3:
Key[2] 1:3
Key[3] D:
Path D:
Desc D: 1.3: [PRO]
Type FAT
Disk 0
Offset 4514328
Key[1] 1.4:
Key[2] 1:4
Path 1.4:
Desc 1.4: [DATA]
Type NTFS
Disk 0
Offset 5542488
Key[1] 1.8:
Key[2] 1:8
Key[3] E:
Path E:
Desc E: 1.8: [TEST4]
Type FAT
Disk 0
Offset 10297728
Key[1] 2.1:
Key[2] 2:1
Path 2.1:
Desc 2.1: [SYSTEM]
Type NTFS
Disk 1
Offset 63
Key[1] 2.2:
Key[2] 2:2
Path 2.2:
Desc 2.2: [DSK1_VOL2]
Type NTFS
Disk 1
Offset 822591
Key[1] 2.3:
Key[2] 2:3
Path 2.3:
Desc 2.3: [DSK1_VOL3]
Type NTFS
Disk 1
Offset 1846719
Key[1] 2.4:
Key[2] 2:4
Key[3] F:
Path F:
Desc F: 2.4: [TEST_PRI2]
Type FAT
Disk 1
Offset 3911103
Key[1] A:
Path A:
Desc A:
Type Floppy
Key[1] @CD-R1
Path @CD-R1
Desc @CD-R1 CntxCorpC/DVD-ROM
Type CD
ConvMemoryAllocationFactoryDpmi diagnostic...
=============================================
Conventional Memory
Initial Conventional Memory Size = 419824
Current Conventional Memory Size = 346544
Allocated
1024 DpmiDjgpp.cpp:56
33504 ghost.cpp:1396
48 DiskDriveAccessExInt13.cpp:152
528 IdeDmaServerPci.cpp:127
528 IdeDmaServerPci.cpp:127
512 DiskDriveAccessExInt13.cpp:152
512 DiskDriveAccessExInt13.cpp:152
Free
16 MsdosLfoFilesystem.cpp:408
80 DiskDriveAccessExInt13.cpp:115
512 DiskDriveAccessInt13.cpp:189
1024 DiskDriveAccessExInt13.cpp:236
2048 DiskDriveAccessExInt13.cpp:236
32768 BlockDeviceDosDrive.cpp:392
DiskManager diagnostic...
=========================
Fixed Drives
Drive 128 CntxCorpHD
Int 13h
Total Sectors 16434495
Bytes per Sector 512
MB 8024
Cylinders 1023
Heads 255
Sectors per Track 63
Successful IO Count 0
Extended Int 13h (Active)
Total Sectors 33554304
Bytes per Sector 512
MB 16383
Successful IO Count 204
IDE using PIO
Total Sectors 33554304
Bytes per Sector 512
MB 16383
Cylinders 33288
Heads 16
Sectors per Track 63
Successful IO Count 0
Drive 129 CntxCorpHD
Int 13h (Active)
Total Sectors 4185216
Bytes per Sector 512
MB 2043
Cylinders 519
Heads 128
Sectors per Track 63
Successful IO Count 103
Extended Int 13h
Total Sectors 4194288
Bytes per Sector 512
MB 2047
Cylinders 4161
Heads 16
Sectors per Track 63
Successful IO Count 0
IDE using PIO
Total Sectors 4194288
Bytes per Sector 512
MB 2047
Cylinders 4161
Heads 16
Sectors per Track 63
Successful IO Count 0
Floppy Drives
Drive 0
Int 13h (Active)
Total Sectors 18720
Bytes per Sector 512
MB 9
Cylinders 260
Heads 2
Sectors per Track 36
Successful IO Count 1
Extended Int 13h
Total Sectors 18720
Bytes per Sector 512
MB 9
Cylinders 260
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: 0x8086, Device: 0x7192
(0x00, 0x07, 0x00): IRQ: 0x00, INT#: -, Link: 0x00
Class: Bridge, SubClass: PCI/ISA
Vendor: 0x8086, Device: 0x7110, RoutePINS: 0x00, 0x00, 0x00, 0x63,
(0x00, 0x07, 0x01): IRQ: 0x00, INT#: -, Link: 0x00
Class: Mass Storage, SubClass: IDE Controller
Vendor: 0x8086, Device: 0x7111, RoutePINS: 0x00, 0x00, 0x00, 0x63,
(0x00, 0x07, 0x03): IRQ: 0x00, INT#: A, Link: 0x00
Class: Bridge, SubClass: Other Bridge
Vendor: 0x8086, Device: 0x7113, RoutePINS: 0x00, 0x00, 0x00, 0x63,
(0x00, 0x08, 0x00): IRQ: 0x00, INT#: -, Link: 0x00
Class: Display, SubClass: VGA compatible
Vendor: 0x5333, Device: 0x8811, RoutePINS: 0x60, 0x61, 0x62, 0x63,
The following hard wire-ord devices share IRQ 11:
(0x00, 0x0a, 0x00): IRQ: 0x0b, INT#: A, Link: 0x60
Class: Network, SubClass: Ethernet
Vendor: 0x1011, Device: 0x0009, RoutePINS: 0x60, 0x61, 0x62, 0x63,
The following hard wire-ord devices share IRQ 255:
(0x00, 0x07, 0x02): IRQ: 0xff, INT#: D, Link: 0x63
Class: , SubClass:
Vendor: 0x0000, Device: 0x0000, RoutePINS: 0x00, 0x00, 0x00, 0x63,
FilesystemManager diagnostic...
===============================
Volume 1
VolumePos: 1.2:
DriveLetter: C:
Description: 1.17GB Primary Disk 0 Offset 1004.06MB 1.17GB CntxCorpHD
Type: fsfFat32
Name: WINXP_C
Volume 2
VolumePos: 1.3:
DriveLetter: D:
Description: 502MB Logical Disk 0 Offset 2.15GB 502MB CntxCorpHD
Type: fsfFat32
Name: PRO
Volume 3
VolumePos: 1.8:
DriveLetter: E:
Description: 101.94MB Logical Disk 0 Offset 4.91GB 101.94MB CntxCorpHD
Type: fsfFat32
Name: TEST4
Volume 4
VolumePos: 2.4:
DriveLetter: F:
Description: 137.78MB Logical Disk 1 Offset 1.86GB 137.78MB CntxCorpHD
Type: fsfFat32
Name: TEST_PRI2
Volume 5
VolumePos: 1.1:
DriveLetter:
Description: 1004.03MB Primary Disk 0 Offset 31.50KB 1004.03MB CntxCorpHD
Type: fsfFat32
Name: WIN_1
Volume 6
VolumePos: 1.4:
DriveLetter:
Description: 1.47GB Logical Disk 0 Offset 2.64GB 1.47GB CntxCorpHD
Type: fsfNtfsWindowsXP
Name: DATA
Volume 7
VolumePos: 1.5:
DriveLetter:
Description: 203.92MB Logical Disk 0 Offset 4.11GB 203.92MB CntxCorpHD
Type: fsfExt2
Name: TEST1********************************* |
|