- 论坛徽章:
- 0
|
我按我的理解翻译了这段来自
http://www.gnu.org/software/grub/manual/html_node/install.html#fn-1
的文字。
Command: install [--force-lba] [--stage2=os_stage2_file] stage1_file [d] dest_dev stage2_file [addr] [p] [config_file] [real_config_file]
This command is fairly complex, and you should not use this command unless you are familiar with GRUB. Use setup (see setup) instead.
这条命令相当复杂,如果你不熟悉GRUB,建议用setup代替。
In short, it will perform a full install presuming the Stage 2 or Stage 1.5 is in its final install location.
(如果你还是想用他的话。)总之,它将进行一个完全的安装,前提是stage2或者stage1.5在它最终要安装的位置上。(stage2和stage1.5总是以同样方式载入,下面不再区分他们)
In slightly more detail, it will load stage1_file, validate that it is a GRUB Stage 1 of the right version number, install in it a blocklist for loading stage2_file as a Stage 2.
再给你一点补充,它将加载(你指定的文件)stage1_file,根据其中的版本信息验证它是一个GRUB stage1(第一阶段文件),(然后)把它安装在一个扇区(我不知道什么叫blocklist)中,以加载第二阶段的stage2_file文件。
If the option d is present, the Stage 1 will always look for the actual disk stage2_file was installed on, rather than using the booting drive.
如果指定了d参数,“第一引导阶段阶段”将一直在当前磁盘寻找stage2_file文件,而不是在启动盘中。
The Stage 2 will be loaded at address addr, which must be `0x8000' for a true Stage 2, and `0x2000' for a Stage 1.5.
“第二引导阶段”将在地址addr处被加载,对于“第二引导阶段”这个地址必须是’0x8000’,对于“第1.5的中间引导阶段”这个地址必须是’0x2000’。
If addr is not present, GRUB will determine the address automatically.
如果addr没有指定,GRUB将自动的检查他们(“第二引导阶段”和“第1.5的中间引导阶段”)的地址。
It then writes the completed Stage 1 to the first block of the device dest_dev.
它将把“第二引导阶段”完整地写入你指定的设备dest_dev的第一个扇区。
If the options p or config_file are present, then it reads the first block of stage2, modifies it with the values of the partition stage2_file was found on (for p) or places the string config_file into the area telling the stage2 where to look for a configuration file at boot time.
如果指定了选项p或者config_file,那么,(注意了啊~~)对于选项p,读stage2文件的第一块(假设是一个结构),用“stage2_file所在的分区”修改它(这个块);对于config_file,把字符串config_file填入这个结构以便告诉stage2程序在启动的时候去哪里寻找配置文件。
Likewise, if real_config_file is present and stage2_file is a Stage 1.5, then the Stage 2 config_file is patched with the configuration file name real_config_file.
同样,如果指定了real_config_file并且stage2_file是“第1.5的中间引导阶段”,那么,“第二引导阶段”的config_file将是命名为real_config_file的配置文件。
This command preserves the DOS BPB (and for hard disks, the partition table) of the sector the Stage 1 is to be installed into.
这个命令把“第一引导阶段”装进(设备的)第一块扇区中,不侵犯DOS BPB,分区表。
[ 本帖最后由 lzsh 于 2008-1-22 16:00 编辑 ] |
|