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

📄 readmecn.txt

📁 grub_for_dos-0.4.2
💻 TXT
📖 第 1 页 / 共 5 页
字号:
				不许引导带有无效的分区表(通常是操作系统引导扇区)
				的以前的主引导记录

	--boot-prevmbr-first	try to boot PREVIOUS MBR before the search for
				GRLDR
				设法在搜索GRLDR之前引导以前的主引导记录

	--boot-prevmbr-last	try to boot PREVIOUS MBR after the search for
				GRLDR
				设法在搜索GRLDR之后引导以前的主引导记录

	--preferred-drive=D	preferred boot drive number, 0 <= D < 255
				偏爱的引导驱动器号码,0 <= D < 255

	--preferred-partition=P	preferred partition number, 0 <= P < 255
				偏爱的分区号码,0 <= P < 255

	--time-out=T		wait T seconds before booting PREVIOUS MBR. if
				T is 0xff, wait forever. the default is 5.
				在引导以前的主引导记录前等待T 秒钟。如果T 是0xff
				永远等待。默认值是5。

	--hot-key=K		if the desired key K is pressed, start GRUB
				before booting PREVIOUS MBR. K is a word
				value, just as the value in AX register
				returned from int16/AH=1. The high byte is the
				scan code and the low byte is ASCII code. The
				default is 0x3920 for space bar. See "int 16
				keyboard scan codes" below.
				如果热键被按下,在引导以前的主引导记录之前
				启动GRUB。K是一个字的值,正象int16/AH=1返回到
				AX寄存器的值。高字节是扫描码,低字节是ASCII码。
				默认是 0x3920,即空格键。参见如下的“中断16 
				键盘扫描码”。

	--floppy		if DEVICE_OR_FILE is floppy, use this option.
				如果设备或文件是软盘,使用此选项。

	--floppy=N		if DEVICE_OR_FILE is a partition on a hard
				drive, use this option. N is used to specify
				the partition number.
				如果设备或文件是硬盘分区,使用此选项。N用于指定
				分区号码。

	--sectors-per-track=S	specifies sectors per track for --floppy.
				1 <= S <= 63, default is 63.
				指定--floppy选项的磁轨的扇区数。1 <= S <= 63,
				默认值是 63

	--heads=H		specifies number of heads for --floppy.
				1 <= H <= 256, default is 255.
				指定--floppy选项的磁头数。
				1 <= H <= 256, 默认值是 255.
				
	--start-sector=B	specifies hidden sectors for --floppy.
				default is 0.
				指定--floppy选项的隐藏扇区。默认值是0。

	--total-sectors=C	specifies total sectors for --floppy.
				default is 0.
				指定--floppy选项的总扇区。默认值是0。

	--lba			use lba mode for --floppy. This is default. If
				your floppy BIOS does not support LBA, please
				specify --chs explicitly. The QEMU virtual
				machine currently has no LBA support for
				floppy, so you should specify --chs for the
				floppy to boot on QEMU.
				对--floppy选项使用lba模式。这是默认值。如果您的
				软盘BIOS不支持逻辑块地址,请明确地地指定 --chs。
				QEMU现在没有支持软盘的逻辑块地址,所以你从QEMU
				引导时应为软盘指定--chs。

	--chs			use chs mode for --floppy. Most modern BIOSes
				support LBA. So it is likely you don't have to
				specify the --chs option.
				对--floppy选项使用chs模式。大多数现代的BIOS支持
				逻辑块地址。所以看起来你不必指定chs选项。

	--fat12			FAT12 is allowed to be installed for --floppy.
				对--floppy选项,许可被安装在FAT12分区。

	--fat16			FAT16 is allowed to be installed for --floppy.
				对--floppy选项,许可被安装在FAT16分区。

	--fat32			FAT32 is allowed to be installed for --floppy.
				对--floppy选项,许可被安装在FAT32分区。

	--vfat			FAT12/16/32 are allowed to be installed for
				--floppy.
				对--floppy选项,许可被安装在FAT12/16/32分区。

	--ntfs			NTFS is allowed to be installed for --floppy.
				对--floppy选项,许可被安装在NTFS分区。

	--ext2			EXT2 is allowed to be installed for --floppy.
				对--floppy选项,许可被安装在EXT2分区。

	--install-partition=I	Install the boot record onto the boot area of
				partition number I of the specified hard drive
				or harddrive image DEVICE_OR_FILE.
				安装引导记录到指定的设备或文件的硬盘或者硬盘映像
				分区号码I的引导区。

DEVICE_OR_FILE:	Filename of the device or the image file. For DOS, a BIOS drive
number(hex 0xHH or decimal DDD) can be used to access the drive. BIOS drive
number 0 is for the first floppy, 1 is for the second floppy; 0x80 is for the
first hard drive, 0x81 is for the second hard drive, etc.
设备或文件:设备或映像文件的文件名。对于DOS,BIOS驱动器号码(十六进制0xHH 或
十进制 DDD)能够用于访问驱动器。BIOS驱动器0代表第一软驱,1代表第二软驱;0x80代表
第一硬盘,0x81 代表第二硬盘,等等。

Note: BOOTLACE.COM writes only the boot code to MBR. The boot code needs to
load GRLDR as the second(and last) stage of the GRUB boot process. Therefore
GRLDR should be copied to the root directory of one of the supported
partitions, either before or after a successful execution of BOOTLACE.COM.
Currently only partitions with filesystem type of FAT12, FAT16, FAT32, NTFS,
EXT2 or EXT3 are supported.
注意:BOOTLACE.COM 只写引导记录到主引导记录。此引导代码需要装载GRLDR 作为GRUB
引导过程的第二(也是最后)阶段。因此GRLDR 应复制到被支持的某一个分区的根目录下。可以在成功地执行了BOOTLACE.COM之前或之后进行复制。现在只支持文件系统是FAT12,
 FAT16, FAT32, NTFS,EXT2 or EXT3 的分区。

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的程序缺陷。

Important!! If you install GRLDR Boot Record to a floppy or a partition, the
floppy or partition will boot solely grldr, and your original
IO.SYS(DOS/Win9x/Me) and NTLDR(WinNT/2K/XP) will become unbootable. This is
because the original boot record of the floppy or partition were overwritten.
There is no such problem when installing GRLDR Boot Record to MBR.
重点!!如果你安装GRLDR 引导记录到软盘或分区,此软盘或分区将仅从grldr引导。你的
原来的IO.SYS(DOS/Win9x/Me) 和 NTLDR(WinNT/2K/XP) 将不能引导。这是因为原来的软盘
或分区引导记录被改写。如果你安装GRLDR到主引导记录,就不会发生这些问题。

Tip: If the filename begins in a dash(-) or a digit, you may prefix a dirname
(./) or (.\) to it.
提示:如果文件名的开始是短划线(-)或数字,你可以在它前面加上目录名(./) 或 (.\)。

Examples:
例子:
	Installing GRLDR boot code to MBR under Linux:
	在Linux下安装GRLDR代码到主引导记录:

		bootlace.com  /dev/hda

	Installing GRLDR boot code to MBR under DOS:
	在DOS下安装GRLDR代码到主引导记录:

		bootlace.com  0x80

	Installing GRLDR boot code to a harddisk image under DOS or Linux:
	在DOS或Linux下安装GRLDR代码到硬盘映像:

		bootlace.com  hd.img

	Installing GRLDR boot code to floppy under Linux:
	在Linux下安装GRLDR代码到软盘:

		bootlace.com  --floppy --chs /dev/fd0

	Installing GRLDR boot code to floppy under DOS:
	在DOS下安装GRLDR代码到软盘:

		bootlace.com  --floppy --chs 0x00

	Installing GRLDR boot code to a floppy image under DOS or Linux:
	在DOS或Linux下安装GRLDR代码到软盘映像:

		bootlace.com  --floppy --chs floppy.img

BOOTLACE.COM cannot function well under Windows NT/2000/XP/2003. It is expected
(and designed) to run under DOS/Win9x and Linux.
BOOTLACE.COM 在Windows NT/2000/XP/2003下工作得不好。它被希望(和设计)用于
DOS/Win9x 和 Linux。

******************************************************************************
***        kexec-tools should be patched for the 1.101 release             ***
******************************************************************************
kexec-tools应打补丁到 1.101发布

The file kexec-tools-1.101-patch is a patch to the kexec-tools-1.101 release.
Kexec might fail to load grub.exe without this patch.
kexec-tools-1.101-patch文件是kexec-tools-1.101发布 的补丁。如果没有这个补丁,
Kexec会不能装载grub.exe。

The home page of kexec-tools is:
kexec-tools主页是:
	http://www.xmission.com/~ebiederm/files/kexec/


******************************************************************************
***           Direct transition to DOS/Win9x from within Linux             ***
******************************************************************************
从Linux直接过渡到DOS/Win9x。

By using kexec, we can easily boot into DOS/Win9x from a running Linux system.
使用kexec,我们能够容易地从运行着的Linux系统引导进入DOS/Win9x。

If WIN98.IMG is a bootable hard-disk image, do as follows:
如果WIN98.IMG是一个可引导的硬盘映像,按照如下操作:

kexec -l grub.exe --initrd=WIN98.IMG --command-line="--config-file=map (rd) (hd0); map --hook; chainloader (hd0)+1; rootnoverify (hd0)"

kexec -e

If DOS.IMG is a bootable floppy image, do this way:
如果DOS.IMG是一个可引导的硬盘映像,按照如下操作:

kexec -l grub.exe --initrd=DOS.IMG --command-line="--config-file=map (rd) (fd0); map --hook; chainloader (fd0)+1; rootnoverify (fd0)"

kexec -e

Note that in this manner, we can boot DOS/Win9x without using a real DOS/Win9x
disk. We need no FAT partition but an image file.
注意,按照这种方式,我们能够不用真实的DOS/Win9x磁盘而引导DOS/Win9x。我们不需要FAT分区,
只需要一个映像文件。

We have noticed that Linux itself can act as a big boot manager by using kexec
and grub.exe. This may be convenient to developers who write installation or
bootstrap or initialization programs.
我们已经注意到通过使用kexec和grub.exe,Linux本身能够成为一个大的引导管理器。
这给写安装或者引导或者初始化程序的开发者带来了方便。

Certainly, grub.exe and the bootable disk image can also be loaded by a running
GRUB or LILO or syslinux. Examples:
当然,grub.exe和可引导的磁盘映像也能够被正在运行中的GRUB 或 LILO 或 syslinux装载。例如:

1. Loaded by GRUB:
1.由GRUB装载:
	kernel (hd0,0)/grub.exe --config-file="map (rd) (fd0); map --hook; chainloader (fd0)+1; rootnoverify (fd0)"
	initrd (hd0,0)/DOS.IMG
	boot

2. Loaded by LILO:
2.由 LILO装载
	image=/boot/grub.exe
		label=grub.exe
		initrd=/boot/DOS.IMG
		append="--config-file=map (rd) (fd0); map --hook; chainloader (fd0)+1; rootnoverify (fd0)"

3. Loaded by SYSLINUX:
3.由SYSLINUX装载:
	label grub.exe
		kernel grub.exe
		append initrd=DOS.IMG --config-file="map (rd) (fd0); map --hook; chainloader (fd0)+1; rootnoverify (fd0)"

******************************************************************************
***               Keyboard BIOS Scan Code/ASCII code tables                ***
******************************************************************************
键盘BIOS码/ASCII码表

Keyboard bios scan code and ascii character code tables can be obtained from
the web by, for example, googling for "3920 372A 4A2D 4E2B 352F". Here are 2
main results:
键盘bios扫描码和ASCII字符码表能够通过环球网取得。例如,使用google查找"3920 372A 4A2D 4E2B 352F"。这里有两项主要的结果:

1. From "http://heim.ifi.uio.no/~stanisls/helppc/scan_codes.html":
1.来自"http://heim.ifi.uio.no/~stanisls/helppc/scan_codes.html":

INT 16 - Keyboard Scan Codes
中断16 -键盘扫描码
       Key	 Normal    Shifted   w/Ctrl    w/Alt

	A	  1E61	    1E41      1E01	1E00
	B	  3062	    3042      3002	3000
	C	  2E63	    2E42      2E03	2E00
	D	  2064	    2044      2004	2000
	E	  1265	    1245      1205	1200
	F	  2166	    2146      2106	2100
	G	  2267	    2247      2207	2200
	H	  2368	    2348      2308	2300
	I	  1769	    1749      1709	1700
	J	  246A	    244A      240A	2400
	K	  256B	    254B      250B	2500
	L	  266C	    264C      260C	2600
	M	  326D	    324D      320D	3200
	N	  316E	    314E      310E	3100
	O	  186F	    184F      180F	1800
	P	  1970	    1950      1910	1900
	Q	  1071	    1051      1011	1000
	R	  1372	    1352      1312	1300
	S	  1F73	    1F53      1F13	1F00
	T	  1474	    1454      1414	1400
	U	  1675	    1655      1615	1600
	V	  2F76	    2F56      2F16	2F00
	W	  1177	    1157      1117	1100
	X	  2D78	    2D58      2D18	2D00
	Y	  1579	    1559    

⌨️ 快捷键说明

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