cnman:8:boot0cfg

BOOT0CFG(8) -- 启动管理器安装、配置工具

BOOT0CFG(8) FreeBSD System Manager's Manual BOOT0CFG(8)

NAME 名称

   boot0cfg -- boot manager installation/configuration utility
	启动管理器安装、配置工具

SYNOPSIS 概述

   boot0cfg [-Bv] [-b boot0] [-d drive] [-f file] [-m mask] [-o options]
      [-s slice] [-t ticks] disk

DESCRIPTION 描述

   The FreeBSD 'boot0' boot manager permits the operator to select from
   which disk and slice an i386 machine (PC) is booted.
FreeBSD ‘boot0’引导管理器允许操作者在 i386 机器(PC) 引导时选择启
动磁盘及“片”(即启动信息所在位置)。
   Note that what are referred to here as "slices" are typically called
   "partitions" in non-BSD documentation relating to the PC.  Typically,
   only non-removable disks are sliced.
注意:在 PC 这里所指的“片”即是非 BSD 系统的“分区”。通常,只有不可移动
的磁盘才能被分“片”。
   The boot0cfg utility optionally installs the 'boot0' boot manager on the
   specified disk; and allows various operational parameters to be config-
   ured.
boot0cfg 工具可以在指定的硬盘上自由选择安装 'boot0'引导管理器;也允许配置
多种操作选项。
   On PCs, a boot manager typically occupies sector 0 of a disk, which is
   known as the Master Boot Record (MBR).  The MBR contains both code (to
   which control is passed by the PC BIOS) and data (an embedded table of
   defined slices).
在 PC 上,引导管理器通常占用磁盘的 0 扇区,即我们所知的主引导记录(MBR)。
MBR 包含有所有的代码(PC BIOS 所控制)和数据(已定义的片嵌入表)。
   The options are:
选项:
  1. B Install the 'boot0' boot manager. This option causes MBR code to

be replaced, without affecting the embedded slice table.

	安装 boot0 引导管理器。该选项用于 MBR 被覆盖时使用,不会影响嵌入
	分区表。
  1. b boot0

Specify which 'boot0' image to use. The default is /boot/boot0

     which will use the video card as output, alternatively
     /boot/boot0sio can be used for output to the COM1 port.  (Be
     aware that nothing will be output to the COM1 port unless the
     modem signals DSR and CTS are active.)
	指定使用 boot0 映像。默认的 /boot/boot0 将会使用显卡输出,
	二选一地,/boot/boot0sio 能够用于 COM1 端口的输出。(注意,如果
	Modem 信号 DSR 和 CTS 处于活动状态,COM1 将不会有任何输出)
  1. d drive

Specify the drive number used by the PC BIOS in referencing the

     drive which contains the specified disk.  Typically this will be
     0x80 for the first hard drive, 0x81 for the second hard drive,
     and so on; however any integer between 0 and 0xff is acceptable
     here.
	使用 PC BIOS 关联包含了指定磁盘驱动器号……对于第一个驱动器通常为
	0x80,0x81为第二个硬盘驱动器,以此类推;无论如何,从0x00 到 0xff
	之间任何整数都是被接受的。
  1. f file

Specify that a backup copy of the preexisting MBR should be writ-

     ten to file.  This file is created if it does not exist, and
     replaced if it does.
	备份已经存在的 MBR 到文件中。如果该文件不存在将自动生成,如果
	存在则自动替换。
  1. m mask

Specify slices to be enabled/disabled, where mask is an integer

     between 0 (no slices enabled) and 0xf (all four slices enabled).
	开启、关闭指定片,标记为从 0x0 到 0xf 之间的整数。0 为全关,f为
	四个全开。
  1. o options

A comma-separated string of any of the following options may be

     specified (with "no" prepended as necessary):
	用逗号“,”区分开多个指定的选项,使用“no”来“关闭”选项。
     packet  Use the disk packet (BIOS INT 0x13 extensions) interface,
	     as opposed to the legacy (CHS) interface, when doing disk
	     I/O.  This allows booting above cylinder 1023, but
	     requires specific BIOS support.  The default is 'packet'.
		使用硬packet(BIOS int 13 扩展)接口,……,当使用硬盘IO
		时。它允许从超过1023柱面的部分启动,但需要特殊的BIOS支持。
		默认即为“packet”。
     setdrv  Forces the drive containing the disk to be referenced
	     using drive number definable by means of the -d option.
	     The default is 'nosetdrv'.
		强制驱动器使用关联的驱动器号……默认为“nosetdrv”。
     update  Allow the MBR to be updated by the boot manager.  (The
	     MBR may be updated to flag slices as 'active', and to
	     save slice selection information.)  This is the default;
	     a 'noupdate' option causes the MBR to be treated as read-
	     only.
		允许引导管理器更新 MBR。(MBR 会在片标记为“活动的”并保存
		时更新)这个是默认状态;“noupdate”选项将会把 MBR 视为
		只读。	15087325702
  1. s slice

Set the default boot selection to slice. Values between 1 and 4

     refer to slices; a value of 5 refers to the option of booting
     from a second disk.
	设置所选片为默认引导。值为从 1 到 4 之间;值为 5 时从第二硬盘启动。
  1. t ticks

Set the timeout value to ticks. (There are approximately 18.2

     ticks per second.)
	设置时钟周期的值……(大约每秒 18.2 个时钟周期)
  1. v Verbose: display information about the slices defined, etc.

冗余的:显示片定义的信息等。

FILES 文件

   /boot/boot0     The default 'boot0' image
		boot0 默认映像
   /boot/boot0sio  Image for serial consoles (COM1,9600,8,N,1,MODEM)
		串行控制台映像。(串口连接数据:COM1,9600,8,N,1,MODEM)

EXIT STATUS 退出状态

   The boot0cfg utility exits 0 on success, and >0 if an error occurs.
boot0cfg 工具退出状态为 0 时成功,大于 0 为出现错误。

EXAMPLES 举例:

   To boot slice 2 on the next boot:
要使用片 2 来引导
   boot0cfg -s 2 ad0
   To enable just slices 1 and 2 in the menu:
只显示片 1 和片 2 的启动菜单
   boot0cfg -m 0x3 ad0
   To go back to non-interactive booting, use fdisk(8) to install the
   default MBR:
要返回非活动分区引导,使用 fdisk(8)来安装默认的 MBR:
   fdisk -B ad0

SEE ALSO

   geom(4), boot(8), fdisk(8)

AUTHORS 作者

   Robert Nordier <rnordier@FreeBSD.org>.

BUGS 不足

   Protection mechanisms in the geom(4) subsystem might prevent boot0cfg
   from being able to update the MBR on a mounted disk.  Instructions for
   temporarily disabling these protection mechanisms can be found in the
   geom(4) manpage.
geom(4)子系统的机械保护能够预防 boot0cfg 从已载入的磁盘中更新 MBR。临时
关闭机械保护的介绍可以从 geom(4)的手册中找到。
   Use of the 'packet' option may cause 'boot0' to fail, depending on the
   nature of BIOS support.
使用“packet”选项可能会造成 boot0 的失败,依赖于 BIOS 的支持种类。
   Use of the 'setdrv' option with an incorrect -d operand may cause the MBR
   to be written to the wrong disk.  Be careful!
不正确地使用带有 -d 参数的 setdrv  选项可能会引起 MBR 写入到错误的磁盘
中,小心!

FreeBSD 7.1 June 7, 2007 FreeBSD 7.1

/data/vhosts/wiki-data/pages/cnman/8/boot0cfg.txt · 最后更改: 2010/10/20 08:39 由 delphij