感觉英文文档有些很重要的使用说明没有写上去,现补充一些,等一下再写完它
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 TO DST1 ]]]]
<LOOK mode>
TOdisk |-P|]]
<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 ]
感觉英文文档有些很重要的使用说明没有写上去,现补充一些,等一下再写完它
硬盘/分区/扇区备份/恢复工具 <通过扇区克隆>
TOdisk 版本 1.3 Alpha 版权 (C) 2006-2007 由 GOTOmsdos 所有,2007 年 1 月 13 日
邮箱 :
tdaim@sina.com
主页 :
http://mykool.go2.icpcn.com/
非常感谢:
johnsonlam(中国香港),来自中国 DOS 联盟的 fastslz
Lizhi(DDCOPY 的作者)
Lucho(FreeDOS 的主要开发者之一)
其他爱好者
欢迎访问(用于 DOS 交流):
http://www.cn-dos.net/ <中国 DOS 联盟>
http://johnson.tmfc.net/dos/ <johnsonlam>
执行环境:MS-DOS / Win9x_MS-DOS 盒子
语法:
<执行模式>
TOdisk SRC1 TO DST1 ]]]]
<查看模式>
TOdisk |-P|]]
<执行模式>
源/目标集:(磁盘集、分区集、驱动器字母集、镜像文件集)
1,磁盘集 >> 1 或 2...n
2,分区集 >> 1:2 或 2:3...n:n
3,驱动器字母集 >> C: 或 D:...Z:
4,镜像文件集 >>
镜像文件集的参数:
=Cn - C : 压缩
n : 压缩级别(1-9)。默认 6 是强度和速度的最佳平衡。如果未指定 "n",则使用默认值
=K - K : 压缩需要密钥
=Vn - V : 多卷
n : 每个卷的 MB 数(范围从 1 到 2047<FAT16>,4095<FAT32>)
如果未指定 "n",默认值为 2047。如果是源集则无需此参数
=E? - E : 将第一个卷的压缩密钥放入每个后续卷
? : 提示为每个后续卷输入压缩密钥
--A
作为目标集:
(c:\image.to)
...
...
...
(c:\image.toz=Cn=K=Vn=E?)
示例:
(g:\image.toz=c7=k=v1000=e?)
(注意:
在自由模式下多任务时,如果任何镜像文件集作为目标集使用,它们必须是所有目标集中的最后一个且唯一的镜像文件集!
示例:
合法:
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
非法 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
(自由模式,且不在最后)
非法 2:
1:1,3:4,4:4 TO 2:3,(f:\image1.toz=c=v),(g:\image2.toz=c=v)
(自由模式,但有多个镜像文件集)
)
--B
作为源集:(程序自动检查是否压缩,不管其扩展名是否为 "toz"。无需 "=C")
(c:\image.toz) (不自动搜索单独卷)
(c:\image.toz=v) (自动搜索单独卷)
(关于镜像文件名,为避免混淆,建议无压缩的用 "to" 扩展名,压缩的用 "toz" 扩展名,尽管程序不强制检查扩展名
)
在源/目标集中
- : 指定起始扇区
+ : 指定要操作的扇区
但在匹配模式下都不允许,且镜像文件集中不允许使用 '-'
示例:
1-5000
1:2+5000
D:-5000+10000
(g:\image.toz)+3000
源/目标集开关:
=q : 安静(不询问你)
=m : 静音(无信息文字)
=i : 忽略(忽略读取错误(如果在源集)或写入错误(如果在目标集),镜像文件集中不允许)
=n : 遇到致命错误时转到下一个任务
示例:
1:2=q=m,3:4 TO 4:1=i=n,(file=c)=q=m
必须在 '-' 和 '+' 之后使用(如果有的话),且仅对当前任务有效
示例:
1:2-300+400=q=m,3:4 TO 4:1=i=n,(file=c)+500=q=m
全局开关 1(模式开关):
--A
(匹配模式)
-d|p: 磁盘|分区子模式
在匹配模式下,源集的数量必须等于目标集的数量!并且在分区子模式下,如果目标集是分区集,其分区 ID
将被刷新
-d 的示例:
1,2 TO 3,4 -d
相当于两个单独操作:
1 TO 3
2 TO 4
不等同于 1,2 TO 3,4
除非 1、2 的容量分别与 3、4 的容量相同
-p 的示例:
1:2,4:3,2:2 TO 2:3,(d:\back.toz=c),4:5 -p
相当于三个单独操作:
1:2 TO 2:3 -p
4:3 TO (d:\back.toz=c)
2:2 TO 4:5 -p
其中,因为第一个和第三个任务都是匹配模式之一<-p 是其中之一>且是分区写入操作<目标是分区而不是镜像文件>,-p 是刷新分区 ID 所必需的,即使它是单独操作
--B
(自由模式)
无 -d|p 开关
在自由(不匹配)模式下,源集的数量不必等于目标集的数量,因为在数据传输过程中一个任务与其下一个任务之间有顺序关系
源集和目标集数量相等的示例:
给定硬盘 1(所有扇区为 1000)
硬盘 2(所有扇区为 2000)
硬盘 3(所有扇区为 1500)
硬盘 4(所有扇区为 3000)
1,2 TO 3,4
这是自由模式,过程如下:
任务 1:
硬盘 1 的 1000 个扇区复制到硬盘 3
(硬盘 1 的任务完成,退出)
任务 2:
硬盘 2 的 1500-1000=500 个扇区复制到硬盘 3
(硬盘 3 的任务完成,退出)
任务 3:
硬盘 2 的 2000-500=1500 个扇区复制到硬盘 4
(硬盘 2 的任务完成,退出)
源集或目标集之一完成后,程序退出
源集和目标集数量不等的示例:
1 TO 2:3,3:4,4:5,(g:\file.to)
全局开关 2:
-q|quiet : 不询问你
-m|mute : 无信息文字
-i|ignore : 忽略读取和写入错误
-ir|ignorereaderror : 忽略读取错误
-iw|ignorewriteerror : 忽略写入错误
-n|next : 遇到致命错误时转到下一个任务
示例:
1:2,E: TO 2:3,(back.toz=c) -q -m -n -i
更多示例:
单任务:
1 TO 2
将磁盘 1 复制到磁盘 2
1-100+1000 TO 2-200
在扇区 100 处将磁盘 1 的 1000 个扇区复制到磁盘 2 的扇区 200 处
1:2 TO 2:3
将磁盘 1 分区 2 复制到磁盘 2 分区 3
1:2-200+1000 TO 2:3-300
在扇区 200 处将磁盘 1 分区 2 复制到磁盘 2 分区 3 的扇区 300 处
1:2 TO (d:\backup.toz=c=k=v1000=e?)
将磁盘 1 分区 2 备份到镜像文件 d:\backup.toz
c - 压缩级别 6(默认)
k - 密钥
v1000 - 单独卷,每个 1000 MB
e? - 提示为每个卷输入压缩密钥
多任务:
匹配模式:
1:2,(h:\image.toz=v),2:3 TO (g:\image.toz=c=v),D:,3:2 -p
自由模式:
1:2,2:3-2345,3:4 TO 3:3-1234+300,4:1+3456,(i:\image.toz=c=v1000)
<查看模式>
-Dn 显示磁盘 n 信息
-P 显示分区信息
noz|nozero : 不显示零 ID 分区
noh|nohidden : 不显示隐藏分区
nozh|nozerohidden : 不显示零 ID 和隐藏分区
fn|fatntfs : 显示 FAT 和 NTFS 分区
f|fat : 显示 FAT 分区
l|linux : 显示 linux 分区
n:n - 1:2 或 2:3 ...
A: - C: 或 D: ... Z:
示例:
-d : 显示所有驱动器
-d2 : 显示驱动器 2
-p : 显示所有分区
-pfn : 显示 FAT 和 NTFS 分区
-p2:3 : 显示磁盘 2 分区 3
-pc: : 显示 C:
最后编辑者 GOTOmsdos 于 2007 年 1 月 15 日晚上 9:35 ]