China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-06-25 09:03
中国DOS联盟论坛 » DOS开发编程 & 发展交流 (开发室) » Comprehensively enhance the integration of "disk/system backup/files/compression" all in one TOdisk View 23,677 Replies 183
Floor 76 Posted 2007-01-09 06:10 ·  中国 香港
银牌会员
★★★
阿林
Credits 1,410
Posts 497
Joined 2004-06-28 00:00
21-year member
UID 27551
Gender Male
From 九龍,香港
Status Offline
Originally posted by GOTOmsdos at 2007-1-8 12:28 PM:
That Russian website did receive my TOdisk, with the following title:
"TOdisk 1.2 alpha Copyright(c) by GOTOmsdos"
URL:
http://talk.mail.ru/forum/fido7.ru.dos?page=7

However, there ...



Jill Kross is the author of the article. He introduces DOS software to other Russians (just like I introduce Jack Ellis' drivers here), because not every Russian knows English!
我 的 網 站 - http://optimizr.dyndns.org
Floor 77 Posted 2007-01-11 02:04 ·  中国 广东 广州 教育网
铂金会员
★★★★
C++启程者
Credits 5,154
Posts 1,827
Joined 2003-07-18 00:00
22-year member
UID 7105
Gender Male
Status Offline
With great curiosity, I tested the TOdisk greatly reduced by Lucho (reduced from the original 106KB to 47KB). I found that sometimes it runs correctly, but sometimes it makes the computer restart! I don't know if it's because of the reduction or my computer's reason? In confusion...
Floor 78 Posted 2007-01-11 07:56 ·  中国 江苏 南京 电信
高级用户
★★
Credits 525
Posts 222
Joined 2006-08-28 21:07
19-year member
UID 61476
Status Offline
Originally posted by GOTOmsdos at 2007-1-11 02:04:
With great curiosity, I tested the TOdisk greatly reduced by Mr. Lucho (reduced from the original 106KB to 47KB)
Found that sometimes it runs correctly, but sometimes it restarts the computer! I don't know if it's the reason for the reduction or ...


It seems that it's about this size after being compressed by upx?
Is there any problem?
Floor 79 Posted 2007-01-11 08:01 ·  中国 江苏 南京 电信
高级用户
★★
Credits 525
Posts 222
Joined 2006-08-28 21:07
19-year member
UID 61476
Status Offline
Originally posted by GOTOmsdos at 2006-10-15 23:12:
The reason why it is not as fast as GHOST may be that GHOST uses a large buffer.
It may be farmalloc() combined with a file read and write that can exceed 64KB.
I don't know exactly how it is implemented...


Implement this function, then, like GHOST, support NTFS, and then implement access like 1:2\path\name. Wouldn't it be able to replace GHOST?
Wow haha...
Floor 80 Posted 2007-01-11 09:37 ·  中国 江苏 苏州 电信
银牌会员
★★★
Credits 2,227
Posts 790
Joined 2005-01-27 00:00
21-year member
UID 35703
Gender Male
Status Offline
Originally posted by cchessbd at 2007-1-11 08:01:
A method to exceed the 64KB one-time file read and write...


Use UNREAL mode + XMS calls (refer to REALMEM.ZIP[http://ftp.lanet.lv/ftp/mirror/x2ftp/msdos/programming/memory/realmem.zip])
my major is english----my love is dos----my teacher is the buddha----my friends--how about U
Floor 81 Posted 2007-01-11 10:14 ·  中国 广东 珠海 电信
铂金会员
★★★★
C++启程者
Credits 5,154
Posts 1,827
Joined 2003-07-18 00:00
22-year member
UID 7105
Gender Male
Status Offline
Well, to achieve the same speed as GHOST, XMS is needed. It's possible that this will take some time.
It's not very likely that the program itself supports the image file being NTFS, but if there are ready-made NTFS classes, it's another story.

[ Last edited by GOTOmsdos on 2007-1-11 at 11:23 AM ]
Floor 82 Posted 2007-01-11 23:01 ·  中国 香港
银牌会员
★★★
阿林
Credits 1,410
Posts 497
Joined 2004-06-28 00:00
21-year member
UID 27551
Gender Male
From 九龍,香港
Status Offline
Originally posted by GOTOmsdos at 2007-1-11 10:14 AM:
Well, you need to use XMS to achieve the same speed as GHOST. It is possible to spend some time to implement this.
It is not very likely for the program itself to support the image file to be NTFS, but if there is an existing NTFS class, it is also okay...


Regarding XMS, there is one thing to tell everyone. QHIMEM has been painstakingly operated by Brother Jack, with very high speed and no hardware compatibility problems of other "XMS Manager". It is still a complete XMS 3.0! (Originally, Microsoft EMM386 only had XMS 2.0!)

For today's computers, it is really a bit unjust that those hundreds of MB of memory are bought but cannot be well used under DOS!

Can NTFS be forcibly copied using the sector "blind reading" method?
我 的 網 站 - http://optimizr.dyndns.org
Floor 83 Posted 2007-01-11 23:04 ·  中国 香港
银牌会员
★★★
阿林
Credits 1,410
Posts 497
Joined 2004-06-28 00:00
21-year member
UID 27551
Gender Male
From 九龍,香港
Status Offline
Originally posted by cchessbd at 2007-1-11 07:56 AM:
It seems that this size is after UPX compression, right?
Is there any problem?



Exactly UPX!
I haven't had time to test it recently... But it should be okay.
I have many DOS/WIN32 programs compressed by UPX that run well.
我 的 網 站 - http://optimizr.dyndns.org
Floor 84 Posted 2007-01-11 23:10 ·  中国 香港
银牌会员
★★★
阿林
Credits 1,410
Posts 497
Joined 2004-06-28 00:00
21-year member
UID 27551
Gender Male
From 九龍,香港
Status Offline
Originally posted by GOTOmsdos at 2007-1-11 02:04 AM:
With great curiosity, I tested the TOdisk that was greatly reduced by Master Lucho (reduced from the original 106KB to 47KB)
I found that sometimes it runs correctly, but sometimes it restarts the computer! I don't know if it's because of the reduction or...



First, remove other unimportant drivers, and then try again.

What also needs to be tested is QCACHE (QDMA is already included). There should be no problem running both at the same time!


[ Last edited by johnsonlam on 2007-1-11 at 11:12 PM ]
我 的 網 站 - http://optimizr.dyndns.org
Floor 85 Posted 2007-01-12 02:26 ·  中国 广东 珠海 电信
铂金会员
★★★★
C++启程者
Credits 5,154
Posts 1,827
Joined 2003-07-18 00:00
22-year member
UID 7105
Gender Male
Status Offline
Originally posted by cchessbd at 2007-1-11 07:56 AM:

It seems that this is the size after being compressed by UPX?
Is there any problem?


I mean the size after decompression is 47KB (the original program is 106KB)
So I'm curious.
Floor 86 Posted 2007-01-12 02:32 ·  中国 广东 珠海 电信
铂金会员
★★★★
C++启程者
Credits 5,154
Posts 1,827
Joined 2003-07-18 00:00
22-year member
UID 7105
Gender Male
Status Offline
Can NTFS be forcibly copied using the "blind read" method of sectors?

TOdisk is based on the sector method, so when dealing with hard disk, partition, and sector data, it doesn't care about the file system (that is, whether it's FAT, NTFS, LINUX, etc.)
However, when dealing with an image file, the partition where the image file is located must be FAT (just like previous versions of GHOST)
Floor 87 Posted 2007-01-12 05:48 ·  中国 广东 珠海 电信
铂金会员
★★★★
C++启程者
Credits 5,154
Posts 1,827
Joined 2003-07-18 00:00
22-year member
UID 7105
Gender Male
Status Offline
感觉英文文档有些很重要的使用说明没有写上去,现补充一些,等一下再写完它

硬盘/分区/扇区备份/恢复工具 <通过扇区克隆>
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 ]
Floor 88 Posted 2007-01-12 10:11 ·  中国 香港 Cyber_Express通信公司
银牌会员
★★★
阿林
Credits 1,410
Posts 497
Joined 2004-06-28 00:00
21-year member
UID 27551
Gender Male
From 九龍,香港
Status Offline
Originally posted by GOTOmsdos at 2007-1-12 05:48 AM:
I feel that some very important usage instructions in the English documentation are not written down. Now I will supplement some, and I will finish writing it later

HardDisk/Partition/Sector Backup/Restorer <By SECTOR CLONE>
TOdisk version 1.2 Al ...



Thank you!

I am updating the webpage. The Chinese description is relatively difficult to handle and needs some time. The English one will be updated as soon as possible
我 的 網 站 - http://optimizr.dyndns.org
Floor 89 Posted 2007-01-12 10:12 ·  中国 香港 Cyber_Express通信公司
银牌会员
★★★
阿林
Credits 1,410
Posts 497
Joined 2004-06-28 00:00
21-year member
UID 27551
Gender Male
From 九龍,香港
Status Offline
Originally posted by GOTOmsdos at 2007-1-12 02:32 AM:

TOdisk is sector-based, so for processing hard disks, partitions, and sector data, it doesn't care about the file system (that is, regardless of FAT, NTFS, LINUX, etc.)
Only if you want to process image files...



Thanks!
That is to say, you can clone WindowsXP or Linux without any parameters, that's great!
我 的 網 站 - http://optimizr.dyndns.org
Floor 90 Posted 2007-01-12 10:15 ·  中国 香港 Cyber_Express通信公司
银牌会员
★★★
阿林
Credits 1,410
Posts 497
Joined 2004-06-28 00:00
21-year member
UID 27551
Gender Male
From 九龍,香港
Status Offline
Originally posted by GOTOmsdos at 2007-1-12 02:26 AM:
What I said is that after decompression, it is 47KB (the original program is 106KB), so I am curious.



Maybe the useless things are removed. It is said that the compiler will add many useless things. People who can do Assembly may not find it difficult to remove those... Moreover, he is a master.
我 的 網 站 - http://optimizr.dyndns.org
‹ Prev 1 4 5 6 7 8 13 Next ›
Forum Jump: