|
不点
银牌会员
     不甘寂寞的人
积分 2491
发帖 1115
注册 2003-9-24
状态 离线
|
『第 16 楼』:
使用 LLM 解释/回答一下
bootlace 如何选择操作哪块硬盘啊,0x80对应操作所有硬盘还是默认第一块,如果第一块,哪如何操作其他硬盘??
bootlace 后面的参数中是 0x80 就会把引导代码写入第一块硬盘,如果是 0x81 就写入第二块硬盘,等等。
BIOS 只读取第一硬盘的 MBR,所以,写入 0x81 是没有用的。不过,将来你可能会把 0x81 当作 0x80 来用(比如交换磁盘之后),所以,你可以在 0x81 上写入引导代码。
位于 MBR 上的代码程序,它会首先查找 第一硬盘各个分区上的 grldr 文件,如果找不到,那么再找第二硬盘上的所有分区上的 grldr,……,如果所有的硬盘都查找失败了,还要查找第一软盘 (也就是 A 盘)上的 grldr 文件。
How does bootlace choose which hard disk to operate? Does 0x80 correspond to operating all hard disks or the default first one? If it's the first one, then how to operate other hard disks?
In the parameters after bootlace, if it's 0x80, the boot code will be written to the first hard disk; if it's 0x81, it will be written to the second hard disk, and so on.
The BIOS only reads the MBR of the first hard disk, so writing to 0x81 is useless. However, in the future, you might use 0x81 as 0x80 (for example, after swapping disks), so you can write the boot code to 0x81.
The code program on the MBR will first search for the grldr file on each partition of the first hard disk. If not found, then search for the grldr file on all partitions of the second hard disk,... If all hard disks are searched in vain, it will also search for the grldr file on the first floppy disk (that is, drive A).
|

因为我们亲手创建,这个世界更加美丽。 |
|
2007-3-13 23:29 |
|
|
llztt1
中级用户
  
积分 214
发帖 94
注册 2007-1-11
状态 离线
|
『第 17 楼』:
使用 LLM 解释/回答一下
高手一点播就是拨云见日啊,呵呵
我测试过,硬盘上由BOOT.INI启动的GRLDR不好改名,否则容易出问题,而光盘上由EASYBOOT启动的GRLDR可以改成其他名
下面的问题不点大师估计不会理会了,请lianjiang来讨论下
关于微软标准MBR(FDISK/MBR出来的)如何启动系统的:开机,BIOS调用第一硬盘MBR,MBR启动搜索活动分区,若搜索到就尝试加载该分区的第一扇区,进而由这一启动扇区程序加载启动文件(IO.SYS,NTLDR),这个流程有错误吗??
如果BOOTLACE成功把GRLDR安装到了某分区中,而且该分区是非活动分区,那么如何启动这一分区的操作系统呢??
呵呵,题外话,在GRUB4DOS开发中,BEAN是不是专门负责开发 改善MBR启动代码 的命令或程序,以使MBR的启动代码更好的支持GRUB??
Experts' guidance is like breaking through clouds to see the sun, heh heh.
I have tested that the GRLDR started by BOOT.INI on the hard disk is not easy to rename, otherwise problems are likely to occur, while the GRLDR started by EASYBOOT on the CD can be renamed to other names.
The following question probably won't be paid attention to without Master Dian, please let lianjiang come to discuss.
Regarding how the Microsoft standard MBR (from FDISK/MBR) boots the system: When booting, the BIOS calls the first hard disk MBR, the MBR starts to search for the active partition, if it is found, it tries to load the first sector of this partition, and then the boot file (IO.SYS, NTLDR) is loaded by this boot sector program. Is this process wrong?
If BOOTLACE successfully installs GRLDR into a certain partition and this partition is a non-active partition, then how to boot the operating system of this partition??
Heh heh, off-topic. In the development of GRUB4DOS, is BEAN specifically responsible for developing commands or programs to improve the MBR boot code, so that the boot code of the MBR better supports GRUB??
|
|
2007-3-14 02:24 |
|
|
不点
银牌会员
     不甘寂寞的人
积分 2491
发帖 1115
注册 2003-9-24
状态 离线
|
『第 18 楼』:
使用 LLM 解释/回答一下
所谓活动分区的标志,其实也是由微软制定的。微软不管制定什么,它都要成为工业标准,因为大家都用它的系统。在硬盘的第一扇区上,开头是 MBR 程序代码,末尾是分区表。分区表的结构也是微软制定的(或者我们至少可以假定它就是微软制定的)。所谓活动分区的标志,也只是微软的 MBR 程序代码所要使用的,其他的启动程序不一定要识别这个活动标志。例如作为 MBR 的 GRUB 引导代码就忽略活动标志,而是直接启动 GRUB 主体程序,当 GRUB 主体程序获得控制之后,又寻找 GRUB 自己的 MENU.LST 文件,并按照里面的指令来启动任意分区上的操作系统(可以是扩展分区上的逻辑分区里面的操作系统),彻底忽略了由微软放在分区表上的分区活动标志。
你所说的微软的启动流程是没错的。
bootlace 安装的 GRLDR 引导扇区通常不是安装到某个分区了,而是安装到了 MBR 上了。其实也可以利用 bootlace 来把引导代码安装到任意一个分区的引导区,但这是高级话题(有危险性),不是给普通用户使用的。以后会让普通用户也能使用这一功能,不过那得等待这些机制都完善了之后才行。
MBR 上的引导代码只负责(从各个分区中)找到并启动 GRLDR 文件,别的什么都不做。一旦 GRLDR 文件被启动,GRLDR 就找它的配置文件 menu.lst,并按照 menu.lst 中的指令来启动其他任意一个操作系统。GRLDR 可以识别出 FAT12/16/32/NTFS,以及 Linux 下的各种文件系统,因此,它启动任何一个系统都是不难的。它不管分区的活动标志,不管是活动的,还是非活动的,它都可以启动。它甚至还有一条命令专门用来改变某个主分区的活动标志的。
grub4dos 以前主要是我在维护。bean 是来接替我的,从现在起, bean 就是主要维护人,同时我也是参与维护的一个成员。bean 的加入应该说是这个项目的一次大的飞跃。bean 是搞专业出身的,而我是业余的,自然是有些差别了。当然我们中的大多数人都是业余的,我也不是说业余的就一定是差的,专业的就一定行。我只是说 bean 既是专业的,又是很行的。bean 已经做了很多,比如 chainloader 加载 WinME 的 IO.SYS,涉及到微软的秘密(解压),很有难度,这是 bean 做的。还有 int13 仿真代码中也有 bean 的补丁。这都是在我为主要维护人期间 bean 所做的工作。现在 bean 在 NTFS 方面又显示了实力。NTFS 是一个老大难问题,是一块硬骨头。世界上许多人都在研究 NTFS,但是,由于微软不公开 NTFS 的技术细节,使得外界很难全面掌握 NTFS 的访问方法。开源界虽然现在可以读 NTFS 了,但写入 NTFS 仍然不可靠。我写过 EXT2 的引导扇区,因此能够体会写引导扇区的困难。公平地说,比较一下所有种类的文件系统的引导扇区,那么 NTFS 引导扇区就是最难写的了。bean 已经写出来了,并且现在正在完善它。bean 做的很多,不能在这里一一述说。概括地说,bean 会进一步完善 grub4dos 的,相信通过他以及我们大家的共同努力,grub4dos 会走得更远。
The so-called flag of the active partition is actually also formulated by Microsoft. No matter what Microsoft formulates, it wants to become an industrial standard because everyone uses its system. On the first sector of the hard disk, at the beginning is the MBR program code, and at the end is the partition table. The structure of the partition table is also formulated by Microsoft (or we can at least assume that it is formulated by Microsoft). The so-called flag of the active partition is also only what the MBR program code of Microsoft needs to use. Other boot programs do not necessarily need to recognize this active flag. For example, the GRUB boot code as MBR ignores the active flag and directly starts the GRUB main program. After the GRUB main program gains control, it then looks for GRUB's own MENU.LST file and starts the operating system on any partition (which can be the operating system in the logical partition of the extended partition) according to the instructions inside, completely ignoring the partition active flag placed on the partition table by Microsoft.
What you said about Microsoft's boot process is correct.
The GRLDR boot sector installed by bootlace is usually not installed to a certain partition, but to the MBR. In fact, bootlace can also be used to install the boot code to the boot sector of any partition, but this is an advanced topic (dangerous) and not for ordinary users. Ordinary users will be able to use this function in the future, but that has to wait until these mechanisms are all perfected.
The boot code on the MBR only takes charge of finding and starting the GRLDR file (from each partition) and does nothing else. Once the GRLDR file is started, GRLDR finds its configuration file menu.lst and starts any other operating system according to the instructions in menu.lst. GRLDR can recognize FAT12/16/32/NTFS, as well as various file systems under Linux, so it is not difficult for it to start any system. It doesn't care about the active flag of the partition, whether it is active or not, it can start. It even has a command specially used to change the active flag of a certain primary partition.
grub4dos was mainly maintained by me before. bean is to take over from me, and from now on, bean is the main maintainer, and I am also a participating member. bean's joining should be said to be a big leap in this project. bean is a professional, and I am an amateur, so there are naturally some differences. Of course, most of us are amateurs, and I don't mean that amateurs must be bad and professionals must be good. I just mean that bean is both professional and very good. bean has done a lot, for example, chainloader loading IO.SYS of WinME, which involves Microsoft's secrets (decompression), which is very difficult, and this is what bean did. There are also bean's patches in the int13 emulation code. These are the work that bean did during the period when I was the main maintainer. Now bean has shown strength in the NTFS aspect. NTFS is a tough nut to crack. The world many people are researching NTFS, but because Microsoft does not disclose the technical details of NTFS, it is very difficult for the outside world to fully grasp the access method of NTFS. Although the open-source community can now read NTFS, writing to NTFS is still unreliable. I have written the boot sector of EXT2, so I can understand the difficulty of writing the boot sector. Fairly speaking, comparing the boot sectors of all kinds of file systems, then the NTFS boot sector is the most difficult to write. bean has written it and is now perfecting it. bean has done a lot, and it can't be described one by one here. To sum up, bean will further perfect grub4dos. I believe that through his and our joint efforts, grub4dos will go further.
|

因为我们亲手创建,这个世界更加美丽。 |
|
2007-3-14 04:20 |
|
|
maxufengsl
初级用户
 
积分 26
发帖 14
注册 2005-10-14
状态 离线
|
|
2007-3-14 11:08 |
|
|
tangtai
高级用户
   
积分 640
发帖 314
注册 2006-8-13
状态 离线
|
『第 20 楼』:
使用 LLM 解释/回答一下
谢谢楼主及不点,支持!!!!!
Thanks to the LZ (thread starter) and Budian, support!!!
|
|
2007-3-15 04:34 |
|
|
zzzz
新手上路

积分 6
发帖 3
注册 2007-3-23
状态 离线
|
『第 21 楼』:
使用 LLM 解释/回答一下
谢谢楼主!楼主辛苦了!
Thank you, the owner of the post! The owner of the post has worked hard!
|
|
2007-3-23 12:42 |
|
|
lianjiang2004
金牌会员
     
积分 3946
发帖 1884
注册 2006-1-20
状态 离线
|
『第 22 楼』:
使用 LLM 解释/回答一下
grub4dos初级教程 (CHM图文版)【最终版 07-03-31更新】
主要更新:
07.03.31 重新排版,附录中增加几篇网络上收集的grub相关资料。(CHM图文版)
此版本为最终版,计划不再更新。
07.03.26 应部分网友的要求增加"1.6 附录:如何使用grubinst_gui"。
07.03.24 改写部分内容。
07.03.17 为便于初学者理解,并增加直观性,增添了部分操作和运行效果截图,并修改了部分文字。限PDF版。
07.03.15 根据各位的建议,修改了部分内容,可是帖子就超字数限制了。
分贴的话,会给阅读者带来不便。
为便于查阅,因此合并两帖,并简单修改了部分内容。以附件提供。
------------------------
Last edited by lianjiang2004 on 2007-4-1 at 02:04 AM ]
GRUB4DOS Beginner's Tutorial (CHM Graphic Version)
Main Updates:
07.03.31 Re - formatted, and added several pieces of GRUB - related materials collected from the Internet in the appendix. (CHM Graphic Version)
This version is the final version and is planned to no longer be updated.
07.03.26 Added "1.6 Appendix: How to Use grubinst_gui" at the request of some netizens.
07.03.24 Rewrote part of the content.
07.03.17 To facilitate the understanding of beginners and increase intuitiveness, added some operation and running effect screenshots, and modified part of the text. Limited to PDF version.
07.03.15 According to the suggestions of everyone, modified part of the content, but the post exceeded the word limit.
If divided into separate posts, it will bring inconvenience to readers.
For easy reference, therefore merged two posts, and simply modified part of the content. Provided as an attachment.
------------------------
Last edited by lianjiang2004 on 2007 - 4 - 1 at 02:04 AM ]
|

Windows 一键还原
http://www.yjhy.com |
|
2007-3-29 21:03 |
|
|
yiyaxuan
新手上路

积分 10
发帖 5
注册 2006-11-3
状态 离线
|
『第 23 楼』:
使用 LLM 解释/回答一下
从头看了,对初学者来说,真是太有帮助了.
Read it from the beginning, it's really very helpful for beginners.
|
|
2007-4-8 10:28 |
|
|
kkof2000
初级用户
 
积分 30
发帖 15
注册 2007-4-15
状态 离线
|
|
2007-4-16 01:22 |
|
|
libin4100
新手上路

积分 10
发帖 6
注册 2007-4-18
状态 离线
|
『第 25 楼』:
使用 LLM 解释/回答一下
看得头好晕
不过总算对grub4dos有了更进一步的了解
谢谢两位高手
My head is really dizzy
But I've finally gained a further understanding of grub4dos
Thanks to the two experts
|
|
2007-4-24 07:00 |
|
|
chdoxu
新手上路

积分 4
发帖 2
注册 2007-3-2
状态 离线
|
『第 26 楼』:
使用 LLM 解释/回答一下
我找了n次终于找到了,thank you very very much
I finally found it after looking for it several times, thank you very very much
|
|
2007-4-24 07:53 |
|
|
james168
初级用户
 
积分 81
发帖 35
注册 2006-10-16
状态 离线
|
『第 27 楼』:
使用 LLM 解释/回答一下
学习,原来GRUB4DOS这么的好。。。
谢谢楼主、不点及bean ,支持!!!
Last edited by james168 on 2007-4-27 at 12:54 AM ]
Learning, it turns out that GRUB4DOS is so good...
Thanks to the LZ, Budian and bean, support!!!
Last edited by james168 on 2007-4-27 at 12:54 AM ]
|
|
2007-4-27 00:50 |
|
|
yuxiang321654
新手上路

积分 12
发帖 5
注册 2006-10-24
状态 离线
|
『第 28 楼』:
使用 LLM 解释/回答一下
怎么没图片啊。楼主不厚道啊~!
Why are there no pictures? The poster is not kind~!
|
|
2007-5-1 11:17 |
|
|
lianjiang2004
金牌会员
     
积分 3946
发帖 1884
注册 2006-1-20
状态 离线
|
『第 29 楼』:
使用 LLM 解释/回答一下
Originally posted by yuxiang321654 at 2007-5-1 11:17:
怎么没图片啊。楼主不厚道啊~!
这里提示空间已满,无法贴附件。文中已提供下载chm图文版的地方,自行下载。
Originally posted by yuxiang321654 at 2007-5-1 11:17:
Why are there no pictures? The LZ is not decent~!
It is prompted here that the space is full and attachments cannot be posted. The place to download the CHM graphic version has been provided in the text, please download it by yourself.
|

Windows 一键还原
http://www.yjhy.com |
|
2007-5-1 14:58 |
|
|
lsj0416
新手上路

积分 4
发帖 2
注册 2007-2-23
状态 离线
|
『第 30 楼』:
使用 LLM 解释/回答一下
从头看了,对初学者来说,真是太有帮助了.
Read it from the beginning, which is really very helpful for beginners.
|
|
2007-5-8 11:10 |
|