|
cavvie
初级用户
 
积分 150
发帖 18
注册 2003-10-13
状态 离线
|
『楼 主』:
连续区块文件创建工具 FDefrag for grub
使用 LLM 解释/回答一下
感谢不点兄和lyh728兄的工作,grub for dos和Vfloppy为我们带来了很多的方便:)
不点兄提到让grub去支持不连续区块的文件不太可行,刚好lyh728兄提供了一个连续区块的测试工具blklst.exe,我就利用blklst顺手写了一个创建连续区块文件的批处理,很简单,主要思想就是通过不停地复制文件并且测试是否已经连续。
在Windows XP下测试通过,在Win98和Dos下可能是Djgpp的环境问题,我的blklstds.exe无法正常工作(我已经按照Djgpp的说明进行了安装),如果blklstds.exe在你们的Win98和Dos下能够正常工作,把FDefrag.bat中的blklst替换为blklstds就应该可以在win98或dos下工作了。
使用方法:
FDefrag File_To_Be_Defrag
如:FDefrag super.img
下载:
打开附件
Thanks to the work of Budian and lyh728, grub for dos and Vfloppy have brought us a lot of convenience:)
Budian mentioned that it is not feasible to let grub support files with non-contiguous blocks. Just then, lyh728 provided a test tool for contiguous blocks, blklst.exe. I just wrote a batch script to create contiguous block files using blklst. It's very simple. The main idea is to keep copying files and test whether they are already contiguous.
It passed the test under Windows XP. Under Win98 and Dos, maybe it's due to the environment problem of Djgpp. My blklstds.exe can't work normally (I have installed it according to the instructions of Djgpp). If blklstds.exe can work normally under your Win98 and Dos, replacing blklst with blklstds in FDefrag.bat should make it work under win98 or dos.
Usage:
FDefrag File_To_Be_Defrag
For example: FDefrag super.img
Download:
Open attachment
|
|
2003-11-20 00:00 |
|
|
不点
银牌会员
     不甘寂寞的人
积分 2491
发帖 1115
注册 2003-9-24
状态 离线
|
『第 2 楼』:
使用 LLM 解释/回答一下
谢谢. 关注中.....希望谁能直接编写一个 FDefrag 程序(而不是用拷贝+测试的办法), 来仅仅把一个文件进行整理.
首先, 搜索一下看看是否已经有这类东东了.
Thanks. Following... Hope someone can directly write a FDefrag program (instead of using the copy + test method) to just defragment a single file. First, search to see if such a thing already exists.
|

因为我们亲手创建,这个世界更加美丽。 |
|
2003-11-21 00:00 |
|
|
cavvie
初级用户
 
积分 150
发帖 18
注册 2003-10-13
状态 离线
|
『第 3 楼』:
使用 LLM 解释/回答一下
正如你所说的,编写磁盘整理程序需要对文件系统有深刻的了解,并且从效率上来说,磁盘整理的速度要比复制测试的速度慢多了。
如果是引导小的镜像文件并且磁盘有相对较大的剩余空间,还是建议使用这种复制测试的方式。
另外System.Mechanic.Professional.v4.0c.WinALL.Incl.Keygen.READ.NFO-ViRiLiTY
支持对单个文件的碎片整理
希望lyh728能再测验一下dos下的blklstds.exe,那样就可以写一个dos和windows下都通用的FDefrag脚本了。
Just as you said, writing a disk defragmentation program requires a deep understanding of the file system, and in terms of efficiency, the speed of disk defragmentation is much slower than that of copy testing.
If it is booting a small image file and the disk has a relatively large remaining space, it is still recommended to use this copy testing method.
Additionally, System.Mechanic.Professional.v4.0c.WinALL.Incl.Keygen.READ.NFO-ViRiLiTY supports defragmenting individual files
Hope that lyh728 can test blklstds.exe under DOS again, so that a universal FDefrag script for both DOS and Windows can be written.
|
|
2003-11-22 00:00 |
|
|
不点
银牌会员
     不甘寂寞的人
积分 2491
发帖 1115
注册 2003-9-24
状态 离线
|
『第 4 楼』:
使用 LLM 解释/回答一下
谢谢 cavvie 兄。
正如您提到的,复制测试的方法仅适用于小文件,对于大的文件例如 ISO 光盘镜像文件或者硬盘镜像文件(可以以 G 来度量)不太适合。
所以,如果用这种复制测试的办法,最终都不是一个完整的解决方案,最终还得有人从文件系统入手来解决。与其如此,还不如现在就采用这种终极的解决方案,也避免了白白花费力气【我是说,如果有人从文件系统入手解决了这个问题,那么复制+测试就是白费力气了】。
您上面提到的软件管用吗?看来是商业软件。如果管用,暂时就用它得了。
Thanks, brother cavvie.
As you mentioned, the method of copy testing is only suitable for small files. For large files such as ISO disc image files or hard disk image files (measurable in GB), it is not suitable.
So, if this copy testing method is used, it is not a complete solution in the end. Eventually, someone has to start from the file system to solve it. Instead of that, it is better to adopt this ultimate solution now, and also avoid wasting effort .
Is the software you mentioned above useful? It seems to be commercial software. If it is useful, just use it for the time being.
|

因为我们亲手创建,这个世界更加美丽。 |
|
2003-11-22 00:00 |
|
|
Wengier
系统支持
             “新DOS时代”站长
积分 27736
发帖 10521
注册 2002-10-9
状态 离线
|
『第 5 楼』:
使用 LLM 解释/回答一下
不知那个“System.Mechanic.Professional.v4.0c.WinALL.Incl.Keygen.READ.NFO-ViRiLiTY”能在哪些平台下运行?希望能在DOS下运行的话就好了,因为GRUB for DOS等本来就都是在DOS下运行的。
I don't know on which platforms the "System.Mechanic.Professional.v4.0c.WinALL.Incl.Keygen.READ.NFO-ViRiLiTY" can run. It would be nice if it could run under DOS, because GRUB for DOS and the like originally all run under DOS.
|

Wengier - 新DOS时代
欢迎大家来到我的“新DOS时代”网站,里面有各类DOS软件和资料,地址:
http://wendos.mycool.net/
E-Mail & MSN: wengierwu AT hotmail.com (最近比较忙,有事请联系DOSroot和雨露,谢谢!)
 |
|
2003-11-22 00:00 |
|
|
cavvie
初级用户
 
积分 150
发帖 18
注册 2003-10-13
状态 离线
|
『第 6 楼』:
使用 LLM 解释/回答一下
System.Mechanic.Professional.v4.0c.WinALL.Incl.Keygen.READ.NFO-ViRiLiTY
到我的ftp下载吧:
ftp://219.223.194.139/
不过可惜只能在windows使用
System.Mechanic.Professional.v4.0c.WinALL.Incl.Keygen.READ.NFO-ViRiLiTY
Go to my FTP to download:
ftp://219.223.194.139/
But unfortunately, it can only be used on Windows
|
|
2003-11-22 00:00 |
|
|
不点
银牌会员
     不甘寂寞的人
积分 2491
发帖 1115
注册 2003-9-24
状态 离线
|
『第 7 楼』:
使用 LLM 解释/回答一下
唉!我也搜索到一个 windows 下的整理工具,很小,只有 92K。
如果谁能把它改造成 DOS 下的就好了,呵呵。
网页说明在这里:UNFRAG文件碎片整理工具:
http://www.mcadtools.net/show.asp?id=290
下载:
http://www.mcadtools.net/old/down/unfrag.zip
运行环境:Windows 95/NT4.0
Alas! I also found a sorting tool under Windows, very small, only 92K.
If only someone could transform it into a DOS version, heh heh.
Web description here: UNFRAG file fragmentation sorting tool:
http://www.mcadtools.net/show.asp?id=290
Download:
http://www.mcadtools.net/old/down/unfrag.zip
Operating environment: Windows 95/NT4.0
|

因为我们亲手创建,这个世界更加美丽。 |
|
2003-11-22 00:00 |
|
|
不点
银牌会员
     不甘寂寞的人
积分 2491
发帖 1115
注册 2003-9-24
状态 离线
|
『第 8 楼』:
使用 LLM 解释/回答一下
又是一个 winNT 下的东东,DefragMentor Lite 1.0,也是很小,140K,但下载不了它:
http://www.zjbbs.he.cninfo.net/softdown/soft.asp?id=701
http://zj-www.he.cninfo.net/soft/defragml.zip
另外,从
http://ftp.ncnu.edu.tw/cpatch/arc/unfrag/
得到的文档说,unfrag 有源程序可以下载。这下子方便了吧?
补充:在 http://www.google.com/ 中搜索 unfrag source 可以找到一切想要的源程序。
Another thing under winNT, DefragMentor Lite 1.0, also very small, 140K, but can't download it:
http://www.zjbbs.he.cninfo.net/softdown/soft.asp?id=701
http://zj-www.he.cninfo.net/soft/defragml.zip
Also, the document obtained from
http://ftp.ncnu.edu.tw/cpatch/arc/unfrag/
says that unfrag has source code available for download. That's convenient now, right?
Supplement: Searching for unfrag source in http://www.google.com/ can find all the source code you want.
|

因为我们亲手创建,这个世界更加美丽。 |
|
2003-11-22 00:00 |
|
|
不点
银牌会员
     不甘寂寞的人
积分 2491
发帖 1115
注册 2003-9-24
状态 离线
|
『第 9 楼』:
使用 LLM 解释/回答一下
OK,这里是又一个名字叫做 Fraginator 的工具,有源程序下载:
http://www.wsu.edu/~rolo/Fraginator.html
它是 FOR WIN2000/XP 的。
OK, here is another tool called Fraginator, with the source code download:
http://www.wsu.edu/~rolo/Fraginator.html
It is for FOR WIN2000/XP.
|

因为我们亲手创建,这个世界更加美丽。 |
|
2003-11-22 00:00 |
|
|
cavvie
初级用户
 
积分 150
发帖 18
注册 2003-10-13
状态 离线
|
『第 10 楼』:
使用 LLM 解释/回答一下
Fraginator只是unfrag的Gui前端
unfrag的源代码我已经用google找遍了都找不到
另外,我安装了你给我的stage2文件到mbr中,引导大多数的msdos启动盘都可以了,但是引导Wengier的“超级通用msdos 7.1启动盘”还是有问题
map (hd0,0)/msdos711.img (fd0)
chainloader (hd0,0)/msdos711.img
boot
结果只是显示
stage1
就没有显示了。
因为Wengier的“超级通用msdos 7.1启动盘”也是用grub引导的,不知道是不是grub不能重入呢?
Fraginator is just a Gui front end of unfrag. I have searched all over Google for the source code of unfrag but can't find it.
In addition, I installed the stage2 file you gave me into the mbr, and most of the msdos boot disks can be booted, but there is still a problem when booting Wengier's "Super Universal msdos 7.1 Boot Disk".
map (hd0,0)/msdos711.img (fd0)
chainloader (hd0,0)/msdos711.img
boot
The result is just showing
stage1
and then nothing is displayed.
Because Wengier's "Super Universal msdos 7.1 Boot Disk" is also guided by grub, I don't know if grub can't re-enter?
|
|
2003-11-23 00:00 |
|
|
不点
银牌会员
     不甘寂寞的人
积分 2491
发帖 1115
注册 2003-9-24
状态 离线
|
『第 11 楼』:
使用 LLM 解释/回答一下
不应当是 GRUB 不能重入。GRUB 是可以重入的,我就用 GRUB 引导过 GRUB 软盘映像。
这里的问题似乎与 GRUB 的版本匹配有关。“超级通用msdos 7.1启动盘” 中的 GRUB 版本太老了。
关于 unfrag 源码,应当有的吧?我再找找看。我负责找,你负责编程,这样分工如何?:-)
====================
更正,刚才说的不对,有些牵强附会。应当是属于 GRUB 的 BUG。如果在我的机器上能够重现这个毛病,就可能把这个 BUG 揪出来。
It should not be that GRUB cannot be reentrant. GRUB is reentrant. I have booted the GRUB floppy image with GRUB.
The problem here seems to be related to the version matching of GRUB. The GRUB version in the "Super Universal msdos 7.1 Boot Disk" is too old.
Regarding the unfrag source code, it should be available? I'll look for it again. How about this division of labor: I am responsible for finding, and you are responsible for programming? :-)
====================
Correction, what I said just now is incorrect, a bit far-fetched. It should belong to a BUG of GRUB. If I can reproduce this problem on my machine, I may be able to dig out this BUG.
|

因为我们亲手创建,这个世界更加美丽。 |
|
2003-11-23 00:00 |
|
|
Wengier
系统支持
             “新DOS时代”站长
积分 27736
发帖 10521
注册 2002-10-9
状态 离线
|
『第 12 楼』:
使用 LLM 解释/回答一下
不点:关于GRUB的重入的问题,我的测试结果是这样的:
1:GNU GRUB可以重入GNU GRUB或GRUB for DOS;
2:GRUB for DOS多数情况下可以重入GNU GRUB,但却不能重入GRUB for DOS,否则会死机或出现以下提示:
Sorry! Currently supported DOS versions are: MS-DOS 3.30 and later; FreeDOS
kernel build 2029 and 2032, and, hopefully, any later FreeDOS versions.
Programs such as TSRs and device drivers may also change the BIOS interrupt
vector table. Make sure those programs are not running, then try again.
事实上,都是在MS-DOS环境下使用的,而不是其它DOS,而且CONFIG.SYS/AUTOEXEC.BAT等文件也没有修改过。
至于“超级MS-DOS 7.10启动盘”中的GNU GRUB的版本比较旧,则是为了节省空间,因为新版的GNU GRUB中的stage2文件比这个版本中的stage2文件大不少。而上次做的另一个DOS启动盘则是用的最新版的GNU GRUB。
Budian: Regarding the reentrancy issue of GRUB, my test results are as follows:
1: GNU GRUB can reenter GNU GRUB or GRUB for DOS;
2: GRUB for DOS can mostly reenter GNU GRUB, but it cannot reenter GRUB for DOS, otherwise it will crash or display the following prompt:
Sorry! Currently supported DOS versions are: MS-DOS 3.30 and later; FreeDOS
kernel build 2029 and 2032, and, hopefully, any later FreeDOS versions.
Programs such as TSRs and device drivers may also change the BIOS interrupt
vector table. Make sure those programs are not running, then try again.
In fact, it is all used in the MS-DOS environment, not other DOS, and the CONFIG.SYS/AUTOEXEC.BAT and other files have not been modified.
As for the relatively old version of GNU GRUB in the "Super MS-DOS 7.10 Boot Disk" is to save space, because the stage2 file in the new version of GNU GRUB is much larger than the stage2 file in this version. And the other DOS boot disk made last time used the latest version of GNU GRUB.
|

Wengier - 新DOS时代
欢迎大家来到我的“新DOS时代”网站,里面有各类DOS软件和资料,地址:
http://wendos.mycool.net/
E-Mail & MSN: wengierwu AT hotmail.com (最近比较忙,有事请联系DOSroot和雨露,谢谢!)
 |
|
2003-11-23 00:00 |
|
|
不点
银牌会员
     不甘寂寞的人
积分 2491
发帖 1115
注册 2003-9-24
状态 离线
|
『第 13 楼』:
使用 LLM 解释/回答一下
好的,有时间我再看看程序有什么毛病。
=========
太幸运了,刚刚找到。我找到的 UNFRAG 源码在这个包里面:
http://www.lanet.lv/ftp/simtelnet/msdos/pcmag/v16n22.zip
我的任务圆满完成了。:-)
如果再幸运的话,我甚至还可以超额完成任务,再多找几个出来。
---------------
又找到一个 CHKFRAG:
http://www.lanet.lv/ftp/simtelnet/msdos/pcmag/v16n22.zip
和一个 DEFRAG:
http://www.lanet.lv/ftp/simtelnet/msdos/pcmag/v12n04.zip
呵呵,真的超额完成任务了。:-)
----------------
哎哟!修正一下,刚才找到的 UNFRAG 软件可能没有用处,因为它似乎是用来压缩 word 和 excel 文件的,不是整理文件物理碎片的【它整理文件的逻辑碎片并压缩文件】。
但是 DeFrag 和 CHKFrag 应当是有用的。
Okay, I'll take a look at the program for any problems when I have time.
================
So lucky! Just found it. The UNFRAG source code I found is in this package:
http://www.lanet.lv/ftp/simtelnet/msdos/pcmag/v16n22.zip
My task is successfully completed. :-)
If I'm even luckier, I might even over-fulfill the task and find a few more.
---------------
Found another CHKFRAG:
http://www.lanet.lv/ftp/simtelnet/msdos/pcmag/v16n22.zip
And a DEFRAG:
http://www.lanet.lv/ftp/simtelnet/msdos/pcmag/v12n04.zip
Hehe, really over-fulfilled the task. :-)
----------------
Oh! Correct it. The UNFRAG software I just found might not be useful because it seems to be for compressing word and excel files, not for organizing physical file fragments .
But DeFrag and CHKFrag should be useful.
|

因为我们亲手创建,这个世界更加美丽。 |
|
2003-11-23 00:00 |
|
|
cavvie
初级用户
 
积分 150
发帖 18
注册 2003-10-13
状态 离线
|
『第 14 楼』:
使用 LLM 解释/回答一下
呵呵,这个defrag是for fat16的,不是for fat32的呢
Hehe, this defrag is for fat16, not for fat32
|
|
2003-11-23 00:00 |
|
|
不点
银牌会员
     不甘寂寞的人
积分 2491
发帖 1115
注册 2003-9-24
状态 离线
|
『第 15 楼』:
使用 LLM 解释/回答一下
FAT16 和 FAT32 没有多少差别。在 FAT表中,FAT16的项目占用 2 个字节,FAT32 的表项是占用 4 字节。如此而已。有了源程序,总可以修改的,应当比一切从头来要好吧。可别打退堂鼓啊 :-)
准备工作要充分,您再搜索一下 FAT 文件系统结构的文章看看,就可以开始干了。
There isn't much difference between FAT16 and FAT32. In the FAT table, entries of FAT16 occupy 2 bytes, and entries of FAT32 occupy 4 bytes. That's all. With the source code, it can always be modified. It should be better than starting from scratch. Don't lose heart :-)
Make full preparations. You can search for articles about the FAT file system structure again and then you can start working.
|

因为我们亲手创建,这个世界更加美丽。 |
|
2003-11-23 00:00 |
|