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 08:59
中国DOS联盟论坛 » DOS学习入门 & 精彩文章 (教学室) » [Original] Introductory DOS Boot Tutorial (2): The IO.SYS Module View 3,204 Replies 14
Original Poster Posted 2002-11-18 00:00 ·  中国 湖北 随州 电信
元老会员
★★★
Credits 1,987
Posts 632
Joined 2002-10-27 00:00
23-year member
UID 73
Gender Male
Status Offline
From tutorial (1) we know that after the computer starts, the ROM-BIOS first checks for the location of the BOOT bootstrap program. The bootstrap program BOOT is written by the FORMAT command to relative sector 0 of a floppy disk or hard disk. It is a very small program. Its first task is to check whether drive A or C is a DOS system disk, then check whether the first two files in the root directory of drive A or C are IO.SYS and MSDOS.SYS. If so, it reads the IO.SYS file into memory, thus completing the task of booting DOS.
At this point, IO.SYS takes control of the system and formally enters the DOS startup process (in PC-DOS it is called IBMBIO.COM).
The I0.SYS module mainly completes basic input/output management work. It consists of two parts:
  1. The system initialization program SYSINIT;
  2. A set of device drivers.
  The system initialization program SYSINIT mainly does the following 6 things:
  1. Determine memory capacity;
  2. Load and relocate the MSDOS.SYS module;
  3. Call the MSDOS.SYS kernel initialization program DOSINIT to complete kernel initialization;
  4. Interpret the CONFIG.SYS file and set the system operating environment;
  5. Load installable device drivers;
  6. Load the COMMAND.COM module.
  From this it can be seen that after taking over control of the system from the bootstrap program BOOT, SYSINT plays the leading role in the entire DOS system startup process. It arranges all system initialization work, and only after reading COMMAND.COM from disk into main memory does it hand over control to the latter's initialization program CMDINIT. It is then overwritten and disappears, ultimately completing its DOS startup mission (the DOS prompt appears on the screen).
Device drivers are programs that let MS-DOS use some physical device or add some function to MS-DOS. When the system is first started, there are altogether the following 6 types of device drivers:
1. Standard input/output device driver: supports the keyboard and display, and the logical device name is CON.
2. Standard printer device driver: supports printers, and the logical device names are PRN, LPT1, LPT2, LPT3.
3. Auxiliary input/output device driver: supports the asynchronous serial communication interface, and the logical device names are AUX, COM1, COM2.
4. Clock device driver: supports time and date services, and the logical device name is CLOCK$.
5. “Null” device driver: supports simulated operations for application programs, and the logical device name is NUL.
6. Block device driver: supports floppy and hard disk operations, and has no logical device name.
In the DOS hierarchy, the IO.SYS module lies between the kernel module MSDOS.SYS and the ROM-BIOS. By calling the device drivers in IO.SYS, the DOS kernel interprets specific input/output requests and converts them into the relevant control commands for different hardware device controllers. These commands then tie in with the hardware driver programs built into the ROM-BIOS chip, thereby truly carrying out the requested input/output tasks.





http://dos.e-stone.cn/dosbbs
uploadImages/200311161145850422.swf
Floor 2 Posted 2002-11-18 00:00 ·  中国 广东 佛山 三水区 电信
元老会员
★★★★
Credits 5,170
Posts 1,637
Joined 2002-10-16 00:00
23-year member
UID 8
Gender Male
From 广东佛山
Status Offline
Written very thoroughly, good!
我的网志
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 3 Posted 2002-11-21 00:00 ·  中国 安徽 合肥 电信
初级用户
Credits 130
Posts 7
Joined 2002-11-21 00:00
23-year member
UID 307
Gender Male
Status Offline
Bump
Floor 4 Posted 2002-12-02 00:00 ·  中国 广东 汕尾 电信
初级用户
Credits 164
Posts 18
Joined 2002-11-30 00:00
23-year member
UID 372
Gender Male
Status Offline
I bump this!!
Continue.
我就是我,我要努力。
Floor 5 Posted 2003-04-02 00:00 ·  中国 四川 成都 教育网
初级用户
 弼马温
Credits 130
Posts 12
Joined 2003-03-29 00:00
23-year member
UID 1303
Gender Male
Status Offline
发生什么事了?
Floor 6 Posted 2003-04-03 00:00 ·  中国 江苏 扬州 电信
中级用户
★★
Credits 381
Posts 75
Joined 2002-10-15 00:00
23-year member
UID 6
Gender Male
Status Offline
The line of thought is very clear, not bad.
Floor 7 Posted 2003-04-18 00:00 ·  中国 福建 福州 电信
初级用户
Credits 119
Posts 7
Joined 2003-04-17 00:00
23-year member
UID 1592
Gender Male
Status Offline
Is it possible by editing io.sys so that when loading DOS, you can choose to boot from floppy or hard disk, or boot from CD-ROM, without paying attention to the boot order set in the BIOS
?
Floor 8 Posted 2004-06-23 00:00 ·  中国 天津 电信
中级用户
Credits 297
Posts 44
Joined 2004-06-15 00:00
22-year member
UID 26749
Gender Male
Status Offline
Floor 9 Posted 2004-07-13 00:00 ·  中国 山东 烟台 联通
中级用户
Credits 293
Posts 42
Joined 2003-10-17 00:00
22-year member
UID 11396
Gender Male
Status Offline
Study hard and make progress every day
Floor 10 Posted 2005-09-17 22:18 ·  中国 河南 驻马店 联通
初级用户
★★
Credits 175
Posts 64
Joined 2005-09-15 14:40
20-year member
UID 42531
Gender Male
Status Offline
Isn't msdos.sys a text file? Then how can there also be a "kernel initialization program DOSINIT"? Also, how is kernel initialization carried out?
Floor 11 Posted 2005-09-17 22:42 ·  中国 山东 济宁 兖州区 联通
钻石会员
★★★★★
Credits 10,046
Posts 3,039
Joined 2002-11-11 00:00
23-year member
UID 223
Gender Male
Status Offline
Only the msdos.sys in win9x is a text file.
简单就是美
Floor 12 Posted 2005-09-18 19:54 ·  中国 安徽 宿州 泗县 电信
银牌会员
★★★
Credits 1,339
Posts 595
Joined 2004-05-26 00:00
22-year member
UID 25306
Gender Male
From 安徽 宿州
Status Offline
Written well. Learning. Where is (1)?
Floor 13 Posted 2005-09-19 17:55 ·  中国 湖北 武汉 联通
高级用户
★★★
Credits 587
Posts 302
Joined 2005-07-25 17:31
20-year member
UID 41046
Gender Male
Status Offline
Very useful
欢迎造访DOS的小屋!
http://risky.ik8.com
Floor 14 Posted 2005-09-24 00:20 ·  中国 河南 驻马店 联通
初级用户
★★
Credits 175
Posts 64
Joined 2005-09-15 14:40
20-year member
UID 42531
Gender Male
Status Offline
The msdos.sys in DOS7.1 is also a text file
Floor 15 Posted 2005-09-28 21:02 ·  中国 河北 廊坊 联通
新手上路
Credits 2
Posts 1
Joined 2005-09-28 19:35
20-year member
UID 42923
Status Offline
Support
Forum Jump: