⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 readmecn.txt

📁 grub_for_dos-0.4.2
💻 TXT
📖 第 1 页 / 共 5 页
字号:

41h	1	Partition number of this filesystem in the boot drive.
		引导磁盘上文件系统的分区号码。

		This byte is ignored for read. The boot code will write
		partition number onto this byte. See offset 5Dh below.
		此字节在读入时被忽略。引导代码将写分区号码到此字节。
		参见下列偏移量5Dh。

42h	1	Signature (must be 28h or 29h to be recognised by NT).
		签字(必须是28h或者29h,以便能够被NT识别)

43h	4	Volume serial number.
		卷的系列号码。

47h	11	Volume label.
		卷的标签。

52h	8	File system ID. "FAT32   ".
		文件系统ID。"FAT32   "。

5Ah	1	opcode for "cli".
		"cli"的操作码。

5Bh	1	opcode for "cld".
		"cld"的操作码。

5Ch	1	opcode for "mov dh, imm8".
		"mov dh, imm8"的操作码。

5Dh	1	Partition number of this partition on the boot drive.
		引导磁盘上此分区的分区号码。

		0, 1, 2, 3 are primary partitions.
		4, 5, 6, ... are logical partitions in the extended partition.
		0, 1, 2, 3 是主分区
		4, 5, 6, ... 是扩展分区上的逻辑分区。

		0xff is for whole drive. So for floppies, it should be 0xff.
		0xff 代表整个磁盘。所以对于软盘,其分区号码应当是0xff。

5Eh	414	Machine code.
		机器代码。

1FCh	4	Boot Signature AA550000h. (Win9x uses 4 bytes as magic value)
		引导签名AA550000h。(Win9x使用4字节作为魔幻数值。)

------------------------------------------------------------------------------

Appendix A: File System Information Sector of FAT32(not used by grldr)
附录A:FAT32文件信息系统扇区(不用于引导grldr)
Offset	Length	Description
偏移量  长度    描述
======	======	==============================================================
0h	4	Leading Signature 41615252h.
		前面的签字41615252h。

4h	480	Reserved, set to 0.
		被保留,设为0。

1E4h	4	FSI structure signature 61417272h.
		故障征兆指数结构签字61417272h。

1E8h	4	Contains the last known count of free clusters, if this is
		equal to FFFFFFFFh, then the count is unknown.
		最新已知的空闲簇数,如果它等于FFFFFFFFh,簇数是未知的。

1ECh	4	Cluster number at which you should begin a search for a free
		cluster, if this is equal to FFFFFFFFh then the field has not
		been set.
		你应开始寻找空闲簇的簇号码,如果它等于FFFFFFFFh ,
		此字段没有被设置。

1F0h	12	Reserved, set to 0.
		被保留,设为0。

1FCh	4	Trailing Signature AA550000h.
		后面的签字AA550000h。

------------------------------------------------------------------------------

Appendix B: Media Descriptor Byte(not used by grldr)
附录B:媒体描述字节(不用于grldr)
The Media descriptor byte is meaningless because of the duplications, F0h for
example.
此媒体描述字节没有意义,因为有些字节具有多重意义,例如F0h 。

Byte	Type of disk	Sectors	Heads	Tracks	Capacity
字节    磁盘种类        扇区    头      磁轨    容量
----	------------	-------	-----	------	--------
FFh	5 1/4"		8	2	40	320KB
FEh	5 1/4"		8	1	40	160KB
FDh	5 1/4"		9	2	40	360KB
FCh	5 1/4"		9	1	40	180KB
FBh	both		9	2	80	640KB
FAh	both		9	1	80	320KB
F9h	5 1/4"		15	2	80	1200KB
F9h	3 1/2"		9	2	80	720KB
F0h	3 1/2"		18 	2	80	1440KB
F0h	3 1/2"		36 	2	80	2880KB
F8h	hard disk	NA	NA	NA	NA

******************************************************************************
***   grldr.mbr - How to write it to Master Boot Track of the hard disk    ***
******************************************************************************
怎样写grldr.mbr到硬盘的主引导磁轨。

grldr.mbr contains code that can be used as Master Boot Record. The code is
responsible for searching all partitions for grldr and when found, loading it.
Currently supported partition types are: FAT12/FAT16/FAT32, NTFS, EXT2/EXT3.
Logical partitions in the extended partition are supported, provided that the
extended partition type is Microsoft-compatible. In fact, the Linux extended
partition type(0x85) is not fully tested for the search mechanism.
grldr.mbr包含能够用作主引导记录的代码。此代码负责搜索所有分区的grldr,并且在发现
后装载它。现在被支持的分区种类是:FAT12/FAT16/FAT32, NTFS, EXT2/EXT3。在扩展分区
上的逻辑分区也被支持,条件是此扩展分区与微软兼容。实际上,Linux 的扩展分区没有被
充分地测试搜索机制。

Notice!		In the future, we will remove NTFS support. For Windows users,
		please create an FAT partition and place GRLDR and menu.lst
		there. From now on, please don't report bugs relevant to NTFS.
注意:		在将来,我们将去除对NTFS 的支持。对于Windows用户,请创建FAT分区
		并且放入GRLDR 和 menu.lst。从今以后,请不要报告有关NTFS的臭虫。

		Someone reports that Windows XP with newer SPs and Windows
		Vista have intentionally broken the compatiblity with many
		things(including GRLDR). So you will get into trouble with
		these systems.
		一些人报告Windows XP的新的SP及Windows Vista故意地破坏与很多
		东西的兼容性(包括GRLDR)。所以你在使用这些系统时会遇到麻烦。

How to write GRLDR.MBR to the Master Boot Track of a hard disk?
怎样写GRLDR.MBR 到硬盘的主引导磁轨?

First, read the Windows disk signature and partition information bytes
(72 bytes in total, from offset 0x01b8 to 0x01ff of the MBR sector), and put
them on the same range from offset 0x01b8 to 0x01ff of the beginning sector of
GRLDR.MBR.
首先,读入Windows磁盘签字及分区信息字节(总共72字节,在主引导记录的偏移量0x01b8
到0x01ff),并且放置到GRLDR.MBR的开始扇区的相同的范围偏移量0x01b8到0x01ff。

Optionally, if the MBR in the hard disk is a single sector MBR created by
Microsoft FDISK, it may be copied onto the second sector of GRLDR.MBR.
可选择的,如果硬盘上的主引导记录是由微软FDISK产生的单一的扇区主引导记录,
它可以被复制到GRLDR.MBR的第二扇区。

The second sector of GRLDR.MBR is called "previous MBR". When GRLDR not found,
"previous MBR" will be started.
GRLDR.MBR的第二扇区叫作“以前的主引导记录”。当找不到GRLDR后,将从“以前的主引
导记录”开始引导。

No other steps needed, after all necessary changes stated above have been made,
now simply write GRLDR.MBR on to the Master Boot Track. That's all.
不需要其它的步骤,当所有的上述的必要的改变已经完成了,现在只要写GRLDR.MBR到主引导磁轨。这就全部完成了。

Note: The Master Boot Track means the first track of the hard drive.
注意:主引导磁轨意思是硬盘的第一磁轨。

Note: The bootstrap code of GRLDR.MBR only finds GRLDR file in the root dir of
a partition. You'd better place menu.lst file accompanying with GRLDR(i.e., in
the same root dir of the same partition as GRLDR).
注意:GRLDR.MBR自举代码只是在分区的根目录寻找GRLDR。你最好放置menu.lst和GRLDR
在一起。(就是说,与GRLDR放在相同分区的相同根目录下。)

The filename "grldr" in an ext2 partition must be in lower case letters, and
the file type of grldr must be plain regular. Other types, e.g., a symbolic
link, won't work.
ext2分区的文件名"grldr" 必须是小写的,并且grldr的文件种类必须是纯普通文件。
其它种类,例如,符号链接文件是不行的。

******************************************************************************
***               grldr.mbr - Details about the control bytes              ***
******************************************************************************
grldr.mbr的控制字节的详情

Six bytes can be used to control the boot process of GRLDR.MBR.
六个字节能够用于控制GRLDR.MBR的引导过程。

Offset	Length	Description
偏移量  长度    描述
======	======	==============================================================
02h	1	bit0=1: disable the search for GRLDR on floppy
		bit0=0: enable the search for GRLDR on floppy
		第0位=1:不让在软盘上搜寻GRLDR。
		第0位=0:使能在软盘上搜寻GRLDR。

		bit1=1: disable the boot of PREVIOUS MBR with invalid
			partition table(usually an OS boot sector)
		bit1=0: enable the boot of PREVIOUS MBR with invalid
			partition table(usually an OS boot sector)
		第1位=1:不许可具有无效的分区表(通常是操作系统的引导扇区)
			的以前的主引导记录的引导
		第1位=0:许可具有无效的分区表(通常是操作系统的引导扇区)
			的以前的主引导记录的引导

		bit2 - bit6: reserved
		第2位到第6位:被保留

		bit7=1: try to boot PREVIOUS MBR after the search for GRLDR
		bit7=0: try to boot PREVIOUS MBR before the search for GRLDR
		第7位:在搜寻GRLDR后,设法引导以前的主引导记录
		第7位:在搜寻GRLDR前,设法引导以前的主引导记录

03h	1	timeout in seconds to wait for a key press. 0xff stands for
		waiting all the time(endless).
		等待按键的延时秒钟数。0xff代表始终等待(无止境的)。

04h	2	hot-key code. high byte is scan code, low byte is ASCII code.
		the default value is 0x3920, which stands for the space bar.
		if this key is pressed, GRUB will be started prior to the boot
		of previous MBR. See "int 16 keyboard scan codes" below.
		热键代码。高字节是扫描码,低字节是ASCII码。默认值是0x3920,
		代表的是空格键。如果此键被按下,GRUB将在引导以前的主引导记录之前
		启动。参见下列的“中断16 键盘扫描代码”。

06h	1	preferred boot drive number, 0xff for no-drive
		偏爱的驱动器号码,0xff 代表没有驱动器。

07h	1	preferred partition number, 0xff for whole drive
		偏爱的分区号码,0xff 代表整个驱动器。

		if the preferred boot drive number is 0xff, the order of the
		search for GRLDR will be:
		如果偏爱的驱动器号码是0xff,搜索GRLDR的顺序将如下:

			(hd0,0), (hd0,1), ..., (hd0,L),(L=max partition number) 
(第一硬盘第一分区),(第一硬盘第二分区),...,(第一硬盘第L分区)(L=最大分区号码) 
			(hd1,0), (hd0,1), ..., (hd0,M),(M=max partition number)
			... ... ... ... ... ... ... ... 
			(hdX,0), (hd0,1), ..., (hd0,N),(N=max partition number)
						       (X=max harddrive number)
			(fd0)

		otherwise, if the preferred boot drive number is Y(not equal to
		0xff) and the preferred partition number is K, then the order of
		the search for GRLDR will be:
		另外,如果偏爱的引导驱动器号码是Y(不等于0xff)并且偏爱的分区
		号码是K,那么搜索GRLDR的顺序将如下:
			(Y) if K=0xff; or (Y,K) otherwise
			如果K=0xff是(第Y驱动器),其它是(第Y驱动器的第K分区)
(第一硬盘第一分区),(第一硬盘第二分区),...,(第一硬盘第L分区)(L=最大分区号码)
			(hd0,0), (hd0,1), ..., (hd0,L),(L=max partition number) 
			(hd1,0), (hd0,1), ..., (hd0,M),(M=max partition number)
			... ... ... ... ... ... ... ... 
			(hdX,0), (hd0,1), ..., (hd0,N),(N=max partition number)
						       (X=max harddrive number)
			(fd0)

		Note: if Y < 0x80, then (Y) is floppy, else (Y) is harddrive,
		      and (Y,K) is partition number K on harddrive (Y).
		注释:如果Y< 0x80,那么(Y)是软盘,否则(Y)是硬盘,并且(Y,K)是
			硬盘Y上的第K分区号码。

******************************************************************************
***        bootlace.com - Install GRLDR bootstrap code to MBR              ***
******************************************************************************
bootlace.com(系鞋带?)-安装GRLDR自举代码到主引导记录

BOOTLACE.COM installs GRLDR boot record to the MBR of a harddrive or of a
harddrive image file, or to the boot sector of a floppy or a floppy image.
BOOTLACE.COM安装GRLDR引导记录到硬盘或者硬盘映像文件的主引导记录,或者安装到
软盘或者软盘映像的引导扇区。

Usage:
用法:
	bootlace.com  [OPTIONS]  DEVICE_OR_FILE
	bootlace.com  [选项]  设备或文件
OPTIONS:
选项:
	--read-only		do everything except the actual write to the
				specified DEVICE_OR_FILE
	--read-only		除了真实地写到指定的设备或文件,完成所有其它操作

	--no-backup-mbr		do not copy the old MBR to the second sector of
				DEVICE_OR_FILE
				不复制旧的主引导记录到设备或文件的第二扇区

	--force-backup-mbr	force the copy of old MBR to the second sector
				of DEVICE_OR_FILE
				强制复制主引导记录到设备或文件的第二扇区

	--mbr-enable-floppy	enable the search for GRLDR on floppy
				使能搜索软盘上的GRLDR

	--mbr-disable-floppy	disable the search for GRLDR on floppy
				不许搜索软盘上的GRLDR

	--mbr-enable-osbr	enable the boot of PREVIOUS MBR with invalid
				partition table(usually an OS boot sector)
				使能引导带有无效的分区表(通常是操作系统引导扇区)
				的以前的主引导记录

	--mbr-disable-osbr	disable the boot of PREVIOUS MBR with invalid
				partition table(usually an OS boot sector)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -