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-07-25 08:54
中国DOS联盟论坛 » DOS启动盘 & LOGO技术 (启动盘室) » [Discussion] Garbled text when booting DOS with a custom IMG image size View 1,204 Replies 4
Original Poster Posted 2005-11-19 23:46 ·  中国 广西 玉林 电信
初级用户
★★
Credits 176
Posts 74
Joined 2005-11-07 16:51
20-year member
UID 44761
Status Offline
When I was making IMG images with custom sizes (I made ones a bit over 3M, over 8M, over 10M, etc.), I found a problem:
After I use WINIMAGE to add folders and files into the IMG, then boot DOS with this IMG, (DOS loads the TW Chinese character support system). Under DOS, when I use the DIR command, part of the filenames come out garbled, (there are also cases where opening text is garbled, for example using TYPE XXX.BAT shows garbled text). Because only part of it is garbled and most of it displays normally, I didn't pay much attention to it at first, but when I switched to IMG files of other sizes, similar problems also appeared! I remade several more with different sizes, and the same problem still appeared!!
It makes no sense~~~ I can't figure it out. I don't know whether anyone else has run into this kind of problem?

I created the IMG files according to the format below:

Image size sectors per cluster sector count (bytes) heads
1.44MB 1(512) 2880 bytes 1
2.88MB 2(1024) 5760 bytes 2
4.32MB 2(1024) 8640 bytes 2
5.76MB 4(2048) 11520 bytes 4
7.20MB 8(4096) 14400 bytes 8
8.64MB 8(4096) 17280 bytes 8
10.08MB 8(4096) 20160 bytes 8
11.52MB 8(4096) 23040 bytes 8
12.96MB 16(8192) 25920 bytes 16
14.40MB 16(8192) 28800 bytes 16
15.84MB 16(8192) 31680 bytes 16
17.28MB 16(8192) 34560 bytes 16


The directory layout inside the IMG file I made:
\
|_tools
| |_DM.EXE
| |_DG.EXE
| |_PQMAGIC
| | |_PQ.EXE
| | |_PQ.XXX (this is just PQ's config file)
| |_HDD.EXE
| |_XXX.EXE(other tools)
|_help
| |_XXX.TXT
| |_XX.TXT
|
|__BAT
| |_XX.BAT
| |_XX.BAT
|
io.sys

.
.
.
.
.
(these are just some files in the root directory of MSDOS.7.1)

That's roughly what it looks like. I just can't figure it out. It's only 3 directory levels, and it seems the problem often shows up on the 2nd and 3rd levels, while the 1st level rarely has problems.

Hope someone can patiently read through this and think about it together. I've been busy with this all night, going to sleep now. 88
Floor 2 Posted 2005-11-20 10:10 ·  中国 河北 石家庄 电信
初级用户
Credits 24
Posts 6
Joined 2005-11-19 19:53
20-year member
UID 45561
Status Offline
Question for the OP, could you post the complete set of files in your root directory here (that is, io.sys and so on)? I want to see which files are needed. Then I could make a DOS without using those IMG files, right?
Floor 3 Posted 2005-11-20 23:25 ·  中国 广西 桂林 电信
初级用户
★★
Credits 176
Posts 74
Joined 2005-11-07 16:51
20-year member
UID 44761
Status Offline
Reply to post #2:
There have already been plenty of discussions on this forum about the files DOS needs, go look for them yourself.
Simple answer: IO.SYS,COMMAND.COM,MSDOS.SYS (for 7.10 this can be omitted)

Suggestion: why not download one and study it yourself, OK?
Floor 4 Posted 2005-11-20 23:27 ·  中国 广西 桂林 电信
初级用户
★★
Credits 176
Posts 74
Joined 2005-11-07 16:51
20-year member
UID 44761
Status Offline
Maybe nobody has run into this problem.
I tried making one again today, same old problem,
hope some expert can give it a try, or look up some materials.
Floor 5 Posted 2005-12-27 22:23 ·  中国 上海 浦东新区 电信
中级用户
★★
Credits 306
Posts 81
Joined 2003-05-10 00:00
23-year member
UID 1988
Gender Male
Status Offline
I guess it's a problem with that section of code that loads the IMG, and it failed to load such a large IMG completely into memory.
Is your IMG loaded from CD or from hard disk?
玩DOS,还是我76年出生的人熟...
Forum Jump: