BIOS 从软盘启动和从 CD-ROM 启动有何不同?
我的测试操作系统以前从软盘启动,现在我尝试从 CD-ROM 启动它。但我不太清楚 BIOS 如何区别对待软盘引导扇区和 CD 引导扇区。看来 CD 引导扇区比软盘引导扇区大得多。还有其他我需要注意的事情吗?
谁能详细说明有关它的详细信息或向我指出一些链接?
谢谢。
My test OS boots from floppy before, now I am trying to boot it from CD-ROM. But I am not quite sure how BIOS treat the floppy boot sector and CD boot sector differently. It seems the CD boot sector is much bigger than floppy boot sector. Is there any other things I need to notice?
Could anyone elabrate the details about it or point me to some links?
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我建议使用 GRUB 启动。使用 eltorito 映像使 CD 可引导。然后将您的内核包含在 CD 映像中,并使用您的内核文件在 GRUB 配置文件中创建一个条目,例如:kernel mykernel
如果有的话,请包括任何 initrd 并启动。
要了解 CD 引导扇区,我建议您查看 ISO 规范
维基百科链接
< a href="http://users.telenet.be/it3.consultants.bvba/handouts/ISO9960.html" rel="nofollow">ISO 9660 文件系统
ISO9660 DOS/Windows 简化版
OSDev 链接
我希望这些链接会有所帮助
I would recommend booting with GRUB. Use the eltorito image to make the CD bootable. Then include your kernel in the CD image and make an entry in the GRUB configuration file use your kernel file like: kernel mykernel
Include any initrd if you have and boot.
To know about CD boot sectors i would tell you to have a look to the ISO Specifications
Wikipedia link
The ISO 9660 File System
ISO9660 Simplified for DOS/Windows
OSDev Link
I hope these links would help
首先,您应该知道 BIOS 不使用 CDrom 的第 1 扇区来引导,而是使用第 17 扇区(如果我没记错的话)。
通过查看 grub 或 lilo 等引导加载程序使用的 cdrom 引导文件,您可以学到很多东西。 Maby 甚至 minix 都有一个 cdboot 选项。
To start, you should know that the bios does not use sector one of the CDrom to boot but sector 17 if I remember right.
You can learn alot by looking at the cdrom boot files which bootloaders such as grub or lilo use. Maby even minix has a cdboot option.