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 12:55
中国DOS联盟论坛 » DOS启动盘 & LOGO技术 (启动盘室) » Original: How to Build an Ultra-Powerful MS-DOS 7.10 Boot Disk (Part 2) View 5,033 Replies 29
Original Poster Posted 2002-11-02 00:00 ·  美国
元老会员
★★★★
Credits 5,170
Posts 1,637
Joined 2002-10-16 00:00
23-year member
UID 8
Gender Male
From 广东佛山
Status Offline
-------Since the following parts involve frequent disk operations, it is best to copy them to the hard disk first----------
Step 3: Compression.
This part is what requires the most skill. As mentioned earlier, EBD.CAB on the DOS system disk that comes with Win98 is an archive. By using compression and packaging, the size of the software is reduced, allowing a floppy disk with limited space to store more things. For example, WINZIP and WINRAR, which we commonly use (the DOS equivalents are PKZIP and RAR), are software of this type. However, be careful not to pack too much software into EBD.CAB; a huge archive will make your floppy boot process unbearable.
The compression we are talking about here is not just packaging, because most of what is on a boot disk is standalone programs, so what is more important is compression of drivers and executable files. Software inside an archive has to be extracted before it can be used, which is not suitable for this type of file. The compression method for this kind of file is: after compressing it, the compression software adds a piece of runnable self-extracting code to it. When run, this self-extracting code decompresses the file again in memory and runs it directly. This is the same principle as some viruses. In fact, in the early days there once appeared a virus that would “do good deeds” and could compress the size of various executable files. Now do you understand? Because hard disks are now large and cheap, this kind of software is not so familiar to new users anymore. Below we introduce several compression programs under DOS.
1、SYSPACK specializes in compressing various driver (.SYS) files. Its usage is very simple, for example:
syspack himem.sys can compress himem.sys, and its usage remains unchanged after compression
Below are some SYS files compressed by SYSPACK and their sizes; the VICE_CDD.SYS above was compressed with it
ASPI4DOS.SYS 10,022
ASPI8U2.SYS 27,991
2、UPX version 1.23, specializes in compressing various EXE files. This is currently the software with the strongest compression ability. It has quite a few parameters
Usage examples: UPX -9 SCANDISK.EXE compresses SCANDISK.EXE with the highest compression ratio
UPX D SCANDISK.EXE restores SCANDISK.EXE compressed by UPX
Below are some EXE files compressed by UPX and their sizes. UPX can also compress WIN9X EXE files
EXTRACT.EXE 49,743
SCANDISK.EXE 120,323
LOW.EXE 29,491 hard disk low-level format tool
PCT.EXE 33,475 SOFTSCAPE PCTOOLS
3、DIET1.41 Can compress EXE, COM and other files, and can also compress data files.
DIET's compression ratio for EXE files is not high, but it can compress some EXE files in special formats, such as EMM386.EXE and SMARTDRV.EXE. These two programs cannot run after being compressed by other software; only DIET can do it. And the compression ratio is quite high: EMM386 can be compressed from 120K to 50K, and the 45K SMARTDRV is only 15K after compression.
4、DIET1.41 and PKLITE2.1
These two programs can compress EXE and COM files. PKLITE can also compress WINDOWS3.X application software. Because the compression ratio is not high, they are generally only used to compress COM files. Under normal circumstances, DIET's compression ratio is a bit higher than the latter.
5、COM2EXE
Convert COM files into EXE format, and then you can use high-compression software such as UPX to compress them and obtain a smaller size. I used it to convert several COM files from Sanming Technology into EXE files and then compressed them with UPX.
6、UNP4.12
This software is used to decompress software compressed by DIET, PKLITE, PACKEXE, LZEXE, etc. Because quite a few programs are already compressed when distributed, for example SCANDISK on the boot disk has already been compressed by PKLITE, so you must first use UNP to decompress it before using UPX to compress it. There is also a decompression program called X_tract, which is not as famous as UNP, and its decompression capability is even slightly stronger than UNP.
Not all files can be compressed, and even less can all software still run correctly after compression, so make backups before compressing.

Step 4: Unpack and repack, adding third-party utility software.
The EBD.CAB archive should first be extracted, and the software inside taken out for processing, but this archive should be kept on the boot disk, because some software cannot run after being compressed and must be placed inside the archive to achieve the effect of reducing size.
After SCANDISK is compressed by UPX, putting it into the archive again will no longer compress it further, so software like this should be taken out. The size of the archive will then be reduced a lot. FDISK.EXE, FORMAT.COM, and EDIT.COM cannot run after being compressed with DIET or UPX and the like, so FDISK.EXE, which originally was not in the archive, should instead be placed inside the archive. You can also compress third-party software into EDB.CAB.
Software for repacking can use CAB2001, WINCAB and the like. There is also a MAKECAB under DOS, but I have not used it.

For third-party software, it is best to choose third-party software that is small in size and powerful in features, such as SOFTSCAPE PCTOOLS, which imitates PCTOOLS, the hard disk low-level formatting program LOWFORMAT, FREEDOS's CTMOUSE mouse driver, etc. Sanming Technology's hard disk diagnostic tools, etc., can then be compressed using the methods introduced above to reduce their size.
If you want to make a Chinese DOS disk, then in terms of choosing a Chinese character support system, PDOS95, CCDOS97, UCDOS98 and the like are not the best choices, because their Chinese fonts, input method and other files are relatively large. If you only want to display Chinese characters and use Pinyin input, the Pocket Dragon Chinese character support system, which is only 80K, is the first choice. If you want better display results, can use Pinyin, Wubi and other input methods, and also add DOS prompt message Chinese-localization functionality, then Tianhui 3.1 Pocket Edition plus Kingsoft 5.1 Pinyin and Wubi input methods is the first choice. After compression they use 300K in total, and even with DOS display message dynamic Chinese-localization functionality added, it is only around 450K.

Of course, you also need to make some changes to the configuration files config.sys and autoexec.bat. For this aspect, please refer to other materials.
All right, by following the above methods, you will definitely be able to build an ultra-powerful boot disk according to your own ideas. When your super boot disk is successfully built, then congratulations, you no longer belong among the newbies.

The software mentioned in the article will be packaged and put on my website.


我的网志
http://hzmys.blog.163.com/
我的网盘
firststep.qjwm.com
fsmys.ys168.com
ssmys.ys168.com
www.brsbox.com/fsmys
www.brsbox.com/ssmys
www.brsbox.com/ccdos
Floor 2 Posted 2002-11-03 00:00 ·  美国 肯塔基州 费耶特县 列克星敦 Charter_Communications
系统支持
★★★★★★
“新DOS时代”站长
Credits 27,736
Posts 10,521
Joined 2002-10-09 12:00
23-year member
UID 9
Status Offline
This disk should count as an MS-DOS 7.10 system tools disk. I suggest making other types of DOS boot disks too.
Wengier - 新DOS时代

欢迎大家来到我的“新DOS时代”网站,里面有各类DOS软件和资料,地址:
http://wendos.mycool.net/

E-Mail & MSN: wengierwu AT hotmail.com (最近比较忙,有事请联系DOSroot和雨露,谢谢!)

Floor 3 Posted 2003-05-08 00:00 ·  中国 广东 汕头 电信
初级用户
Credits 127
Posts 10
Joined 2003-05-08 00:00
23-year member
UID 1946
Gender Male
Status Offline
I also used compression to make tool disks before, but it was just not as comprehensive as what the friend above did. Respect, respect!
Thanks to the friend above for putting forward such a good method
Floor 4 Posted 2003-05-22 00:00 ·  中国 重庆 江北区 联通
初级用户
Credits 206
Posts 10
Joined 2002-11-04 00:00
23-year member
UID 145
Gender Male
Status Offline
The software mentioned in the article will be packaged and put on my website.

Please give a link!
Floor 5 Posted 2003-05-22 00:00 ·  中国 香港 有线宽频用户
管理员
★★★★
專業島民
Credits 4,869
Posts 1,633
Joined 2002-12-10 00:00
23-year member
UID 465
Gender Male
Status Offline
The following is a quote from MYS at 2002-11-2 17:22:21:
    2、UPX version 1.23, specializes in compressing various EXE files. This is currently the software with the strongest compression ability. It has quite a few parameters
       Usage example: UPX -9 SCANDISK.EXE compresses SCANDISK.EXE with the highest compression ratio
               UPX  D SCANDISK.EXE restores SCANDISK.EXE compressed by UPX

UPX has had version 1.24 for a long time (there is also 1.90 beta), and the parameter for the highest compression ratio should be "--best"
我的網站:http://mw16.2ya.com/ 我的網誌: http://scrappedblog.blogspot.com/
~
我的Winamp正在播放的歌曲:
Floor 6 Posted 2003-05-30 00:00 ·  中国 广东 汕尾 电信
中级用户
★★
Credits 417
Posts 137
Joined 2003-05-30 00:00
23-year member
UID 2638
Gender Male
Status Offline
Floor 7 Posted 2003-06-03 00:00 ·  中国 广东 佛山 禅城区 电信
中级用户
★★
Credits 261
Posts 51
Joined 2003-05-01 00:00
23-year member
UID 1789
Gender Male
Status Offline
Forgot to bump it. Thanks for providing it.
Floor 8 Posted 2003-06-07 00:00 ·  中国 湖北 荆州 电信
初级用户
Credits 108
Posts 2
Joined 2003-06-07 00:00
23-year member
UID 4230
Gender Female
Status Offline
Floor 9 Posted 2003-06-07 00:00 ·  中国 吉林 吉林市 中移铁通
银牌会员
★★★
想當一人之下萬人之上
Credits 1,275
Posts 393
Joined 2003-01-10 00:00
23-year member
UID 717
Gender Male
Status Offline
Oh, I can't find those things of mine anymore. If anyone still has them, send me a copy some other day.
<- 刷新一下换个MM
叫我Jorkin或小p就行,别再叫playboy2925了,跟提犯人似的。
如果认为小弟发的logo不错的话,给朵鲜花我就知道了。:)
Floor 10 Posted 2003-06-16 00:00 ·  中国 上海 浦东新区 电信
金牌会员
★★★★
小飞侠
Credits 4,590
Posts 1,812
Joined 2003-04-02 00:00
23-year member
UID 1400
Gender Male
From 上海市
Status Offline
Bump
Floor 11 Posted 2003-06-25 00:00 ·  中国 河南 郑州 联通
初级用户
Credits 189
Posts 35
Joined 2003-06-07 00:00
23-year member
UID 4112
Gender Male
Status Offline
Great
Floor 12 Posted 2003-06-25 00:00 ·  中国 河南 信阳 联通
初级用户
Credits 189
Posts 35
Joined 2003-06-07 00:00
23-year member
UID 4112
Gender Male
Status Offline
Floor 13 Posted 2003-06-30 00:00 ·  中国 河北 唐山 联通
初级用户
Credits 132
Posts 15
Joined 2003-06-30 00:00
22-year member
UID 6155
Gender Male
Status Offline
A real expert, respect, respect!
Floor 14 Posted 2003-06-30 00:00 ·  中国 湖北 荆州 电信
中级用户
★★
Credits 281
Posts 51
Joined 2003-01-05 00:00
23-year member
UID 684
Gender Male
Status Offline
Very good idea
Floor 15 Posted 2003-07-02 00:00 ·  中国 山东 烟台 联通
初级用户
Credits 122
Posts 5
Joined 2003-07-02 00:00
22-year member
UID 6278
Gender Female
Status Offline
Bump
Forum Jump: