GOTOmsdos
铂金会员
C++启程者
积分 5154
发帖 1827
注册 2003-7-18
状态 离线
|
『第
87 楼』:
感觉英文文档有些很重要的使用说明没有写上去,现补充一些,等一下再写完它
HardDisk/Partition/Sector Backup/Restorer <by SECTOR CLONE>
TOdisk version 1.3 Alpha Copyright (C) 2006-2007 by GOTOmsdos, Jan 13 2007
Email : tdaim@sina.com
Homepage : http://mykool.go2.icpcn.com/
Many THANKS to :
johnsonlam(HONGKONG), fastslz from China DOS Union
Lizhi(author of DDCOPY)
Lucho(one of key developers of FreeDOS)
other enthusiasts
Welcome to visit(for DOS intercourse):
http://www.cn-dos.net/ <China DOS Union>
http://johnson.tmfc.net/dos/ <johnsonlam>
Environment for execution : MS-DOS / Win9x_MS-DOS_BOX
Syntax:
<DO mode>
TOdisk SRC1[,SRCn...] TO DST1[,[DSTn...] [-[[d|p][q][m][n][i|[[ir][iw]]]]]
<LOOK mode>
TOdisk [-D[n]|-P[[noz|noh|nozh|fn|f|l]|[n:n|A:]]]
<DO mode>
SRC/DST set: (DISK set, PARTITION set, DOSLETTER set, IMAGEFILE set)
1, DISK set >> 1 or 2...n
2, PARTITION set >> 1:2 or 2:3...n:n
3, DOSLETTER set >> C: or D:...Z:
4, IMAGEFILE set >>
Parameters for IMAGEFILE set:
=Cn - C : COMPRESS
n : compress level(1-9). Default 6 would be the optimum of
intensity and speed. Default is taken if no "n" is specified
=K - K : require KEY for compress
=Vn - V : multiVOLUME
n : every volume MBs(ranging from 1 to 2047<FAT16>,4095<FAT32>)
Default is 2047, if no "n" is specified. Needless if it's in SRC
=E? - E : put the compress key of first volume into EVERY following volume
? : PROMPT for compress key to every following volume
--A
as DST set:
(c:\image.to)
...
...
...
(c:\image.toz=Cn=K=Vn=E?)
Eaxmple:
(g:\image.toz=c7=k=v1000=e?)
(NOTICE:
In multi-task with FREE mode, if any IMAGEFILE set(s) as DST set are used,
they must be the LAST and the ONLY ONE IMAGEFILE set in all DST set(s) !
Examples:
Legal:
1:1 TO 2:3,3:4,(g:\image.toz=c=v)
1:1,2:2,3:3 TO 2:3,3:4,(g:\image.toz=c=v)
1:1,2:2,3:3 TO 2:3,(g:\image.toz=c=v),3:4 -p
1:1,3:4,4:4 TO 2:3,(f:\image1.toz=c=v),(g:\image2.toz=c=v) -p
Illegal 1:
1:1 TO 2:3,(g:\image.toz=c=v),3:4
1:1,2:2,3:3 TO 2:3,(g:\image.toz=c=v),3:4
(FREE mode, and not in the last)
Illegal 2:
1:1,3:4,4:4 TO 2:3,(f:\image1.toz=c=v),(g:\image2.toz=c=v)
(FREE mode, but more than one IMAGEFILE set)
)
--B
as SRC set: (Program automatically checks if it is compressed,
whether or not its extension is "toz". NO "=C" is needed)
(c:\image.toz) (not automatically search for SEPARATE VOLUMEs)
(c:\image.toz=v) (automatically search for SEPARATE VOLUMEs)
(As to IMAGEFILE name, to avoid confusion,
SUGGEST that extension be "to" for those without compression, "toz" for
those with compression, though the program doesn't force extension check
)
in SRC/DST set
- : specify start sector
+ : specify sectors to do
But neither of them are allowed in MATCHED mode, and no '-' is allowed in
IMAGEfile set
Examples:
1-5000
1:2+5000
D:-5000+10000
(g:\image.toz)+3000
SRC/DST set switches:
=q : quiet (no question to you)
=m : mute (no information words)
=i : ignore (ignore read(if it's in SRC) or write(if it's in DST) error,
not allowed in IMAGEFILE set)
=n : next (go to next task if any fatal error is encountered)
Example:
1:2=q=m,3:4 TO 4:1=i=n,(file=c)=q=m
Must be used after '-' and '+' if any, and only valid to this task with it
Example:
1:2-300+400=q=m,3:4 TO 4:1=i=n,(file=c)+500=q=m
Global Switch 1 (mode switch):
--A
(MATCHED mode)
-d|p: disk|partition subMode
In MATCHED mode, the number of SRC sets must EQUAL that of DST sets !
And in partition subMode, if a DST set is partition set, its partition ID
will be refreshed
Example for -d:
1,2 TO 3,4 -d
is equivalent to two separate operations:
1 TO 3
2 TO 4
is not equivalent to 1,2 TO 3,4
unless that 1, 2 have the same capacity as 3, 4 respectively
Example for -p:
1:2,4:3,2:2 TO 2:3,(d:\back.toz=c),4:5 -p
is equivalent to three separate operations:
1:2 TO 2:3 -p
4:3 TO (d:\back.toz=c)
2:2 TO 4:5 -p
Among them, because the first and the third task are both with one of MATCHED
modes <-p is one of it> and in partition writing operation<DST is partition
not IMAGEFILE>, -p is required for partitionID refreshing, even though it's
a separate operation
--B
(FREE mode)
NO -d|p switch
In FREE(UNmatched) mode, the number of SRC sets needn't equal that of DST
sets for there is a relation of succession between one task and its next
one in the course of data conveying
Example with equal number of SRC sets and DST sets:
given HardDisk 1 (all sectors is 1000)
HardDisk 2 (all sectors is 2000)
HardDisk 3 (all sectors is 1500)
HardDisk 4 (all sectors is 3000)
1,2 TO 3,4
This is FREE mode, the course is as follows:
Task 1:
1000 sectors of HardDisk 1 is copied to HardDisk 3
(The task of HardDisk 1 is completed, exit)
Task 2:
1500-1000=500 sectors of HardDisk 2 is copied to HardDisk 3
(The task of HardDisk 3 is completed, exit)
Task 3:
2000-500=1500 sectors of HardDisk 2 is copied to HardDisk 4
(The task of HardDisk 2 is completed, exit)
Either of SRC and DST has been completed, program exits
Example with unequal number of SRC sets and DST sets:
1 TO 2:3,3:4,4:5,(g:\file.to)
Global switch 2:
-q|quiet : no question to you
-m|mute : no information words
-i|ignore : ignore both read and write error
-ir|ignorereaderror : ignore read error
-iw|ignorewriteerror : ignore write error
-n|next : go to next task if fatal error is encountered
Example:
1:2,E: TO 2:3,(back.toz=c) -q -m -n -i
More examples:
Single-task:
1 TO 2
copy disk1 to disk2
1-100+1000 TO 2-200
at sector100 copy disk1 1000 sectors to disk2 at sector200
1:2 TO 2:3
copy disk1 partition2 to disk2 partition3
1:2-200+1000 TO 2:3-300
copy at sector200 disk1 partition2 to disk2 partition3 at sector300
1:2 TO (d:\backup.toz=c=k=v1000=e?)
backup disk1 partition2 to IMAGE file d:\backup.toz
c - compress level 6(default)
k - key
v1000 - separate volume, every is 1000 MBs
e? - prompt for compress key to every volume
Multi-task:
MATCHED mode:
1:2,(h:\image.toz=v),2:3 TO (g:\image.toz=c=v),D:,3:2 -p
FREE mode:
1:2,2:3-2345,3:4 TO 3:3-1234+300,4:1+3456,(i:\image.toz=c=v1000)
<LOOK mode>
-Dn show disk n info
-P show parition info
noz|nozero : not show zeroID partition
noh|nohidden : not show hidden partition
nozh|nozerohidden : not show zeroID and hidden partition
fn|fatntfs : show FAT and NTFS partition
f|fat : show FAT parition
l|linux : show linux parition
n:n - 1:2 or 2:3 ...
A: - C: or D: ... Z:
Examples:
-d : show all drive
-d2 : show drive 2
-p : show all partition
-pfn : show FAT and NTFS parition
-p2:3 : show disk2 partition3
-pc: : show C:
[ Last edited by GOTOmsdos on 2007-1-15 at 09:35 PM ]
|
|