中国DOS联盟论坛

China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
Guest | Log in | Register | Members | Search | China DOS Union
中国DOS联盟论坛
The time now is 2026-08-13 03:26
47,811 topics / 349,897 posts / today 0 new / 48,256 members
DOS学习入门 & 精彩文章 (教学室) » [Original] Introductory DOS Boot Tutorial (2): The IO.SYS Module
Printable Version  3,312 / 14
Floor1 yiyesong Posted 2002-11-18 00:00
元老会员 Posts 632 Credits 1,987
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.





Floor2 MYS Posted 2002-11-18 00:00
元老会员 Posts 1,637 Credits 5,170 From 广东佛山
Written very thoroughly, good!
Floor3 飘叶钴蓝 Posted 2002-11-21 00:00
初级用户 Posts 7 Credits 130
Bump
Floor4 小辉 Posted 2002-12-02 00:00
初级用户 Posts 18 Credits 164
I bump this!!
Continue.
Floor5 banach Posted 2003-04-02 00:00
初级用户 Posts 12 Credits 130
Floor6 dosguest Posted 2003-04-03 00:00
中级用户 Posts 75 Credits 381
The line of thought is very clear, not bad.
Floor7 fjpc Posted 2003-04-18 00:00
初级用户 Posts 7 Credits 119
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
?
Floor8 laochang409 Posted 2004-06-23 00:00
中级用户 Posts 44 Credits 297
Floor9 linux1234 Posted 2004-07-13 00:00
中级用户 Posts 42 Credits 293
Study hard and make progress every day
Floor10 hetao Posted 2005-09-17 22:18
初级用户 Posts 64 Credits 175
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?
Floor11 Michael Posted 2005-09-17 22:42
钻石会员 Posts 3,041 Credits 10,056
Only the msdos.sys in win9x is a text file.
Floor12 chujiafu Posted 2005-09-18 19:54
银牌会员 Posts 595 Credits 1,339 From 安徽 宿州
Written well. Learning. Where is (1)?
Floor13 fdsiuha Posted 2005-09-19 17:55
高级用户 Posts 302 Credits 587
Very useful
Floor14 hetao Posted 2005-09-24 00:20
初级用户 Posts 64 Credits 175
The msdos.sys in DOS7.1 is also a text file
Floor15 haoxg Posted 2005-09-28 21:02
新手上路 Posts 1 Credits 2
Support
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023