GRUB2官方文档翻译项目2-07

启动讨论 grub/grub2/syslinux/grub4dos/Lilo
回复
kin3z
帖子: 56
注册时间: 2011-11-01 14:22

GRUB2官方文档翻译项目2-07

#1

帖子 kin3z » 2015-05-12 11:01

7 Booting GRUB from the network
7 从网络去引导GRUB
*******************************
The following instructions only work on PC BIOS systems where the Preboot eXecution Environment (PXE) is available.
以下说明只针对 工作于PC BIOS系统为 预引导执行环境(PXE) 为可用的情况下。

To generate a PXE boot image, run:
去生成一个PXE引导镜像,运行:
grub-mkimage --format=i386-pc-pxe --output=grub.pxe --prefix='(pxe)/boot/grub' pxe pxecmd
Copy 'grub.pxe', '/boot/grub/*.mod', and '/boot/grub/*.lst' to the PXE (TFTP) server, ensuring that '*.mod' and '*.lst' are accessible via the '/boot/grub/' path from the TFTP server root. Set the DHCP server configuration to offer 'grub.pxe' as the boot file (the 'filename' option in ISC dhcpd).
复制 "grub.pxe","/boot/grub/*.mod",和 "/boot/grub/*.lst" 到PXE(TFTP)服务器,确保那 "*.mod" 与 "*.lst" 可以通过TFTP服务器的根目录去访问到 "/boot/grub" 路径。设置DHCP服务器的配置去提供 "grub.pxe" 作为引导文件 (这个 "filename" 选项在 ISC dhcpd 里。)

You can also use the 'grub-mknetdir' utility to generate an image and a GRUB directory tree, rather than copying files around manually.
你也可以使用 "grub-mknetdir" 功能去生成一个镜像与一个GRUB的目录树,而不是手动地去复制文件。

After GRUB has started, files on the TFTP server will be accessible via the '(pxe)' device.
在GRUB起动之后,在TFTP服务器里的文件将通过 "(pxe)"驱动 从而被访问到。

The server and gateway IP address can be controlled by changing the '(pxe)' device name to '(pxe:SERVER-IP)' or '(pxe:SERVER-IP:GATEWAY-IP)'. Note that this should be changed both in the prefix and in any references to the device name in the configuration file.
服务器与网关IP地址的配置通过去改变那个相应的 "(pxe)" 驱动名里的 "(pxe:SERVER-IP)" 或 "(pxe:SERVER-IP:GATEWAY-IP)" 。注意这两者都应该在任何的调配启动名的配置文件之前被设置好才能生效。

GRUB provides several environment variables which may be used to inspect or change the behaviour of the PXE device:
GRUB提供几个环境变量去用于检查或修改PXE设备的行为:

'net_pxe_ip'
The IP address of this machine. Read-only.
这台机器的IP地址。只读。

'net_pxe_mac'
The network interface's MAC address. Read-only.
网络接口的MAC地址。只读。

'net_pxe_hostname'
The client host name provided by DHCP. Read-only.
客户端主机名字提供于DHCP。只读。

'net_pxe_domain'
The client domain name provided by DHCP. Read-only.
客户端定义域名字提供于DHCP。只读。

'net_pxe_rootpath'
The path to the client's root disk provided by DHCP. Read-only.
客户端的根磁盘的路径提供于DHCP。只读。

'net_pxe_extensionspath'
The path to additional DHCP vendor extensions provided by DHCP.Read-only.
额外的DHCP供应商扩展路径提供于DHCP。只读。

'net_pxe_boot_file'
The boot file name provided by DHCP. Read-only.
引导文件名字提供于DHCP。只读。

'net_pxe_dhcp_server_name'
The name of the DHCP server responsible for these boot parameters.Read-only.
让该名称的DHCP服务器去负责这些引导参数。只读。

'net_default_server'
The default server. Read-write, although setting this is only useful before opening a network device.
默认服务器。读写,尽管这设置只能使用于在打开网络设备之前。
头像
adagio
论坛版主
帖子: 22110
注册时间: 2008-02-17 23:47
来自: 美丽富饶的那啥星球

Re: GRUB2官方文档翻译项目2-07

#2

帖子 adagio » 2015-05-12 11:44

这个不错啊,应该汇总一下就好了
明天就换大三八!
——8核CPU、8G内存、8T硬盘……
8卡交火,80寸大屏放8个……
IPv8的光纤要8条……

---------------------------------------------------------------------------------
[图片版]新手当自强(续)FAQ
[新手进阶]挂载、fstab、调整linux分区
[图片版]E17桌面环境配置手把手
回复