📄 grub-0.97-patch6-chinese
字号:
+ "如果设备是个驱动器, 则将Stage 1.5嵌入到主引导扇区之后. 如果"+ " 是个FFS分区, 则可嵌入到该设备饿`引导代码'区中。并输出"+ " Stage 1.5所占的扇区数。" }; @@ -3210,7 +3353,12 @@ " If the option --set-root is used and FILENAME is found on a device, then" " stop the find immediately and set the device as new root." " If the option --ignore-floppies is present, the search will bypass all"- " floppies."+ " floppies.",+ "find [--set-root] [--ignore-floppies] FILENAME",+ "在所有分区上查找文件名, 并显示包含该文件的设备。如果使用了 --set-root"+ " 选项, 那么当在某个设备上找到 FILENAME 时, 立即停止查找, 并将此设备设"+ "定为新的 root 设备。如果指定了 --ignore-floppies 选项, 那么查找过程将"+ "略过所有的软盘。" }; @@ -3238,7 +3386,9 @@ fstest_func, BUILTIN_MENU | BUILTIN_CMDLINE, "fstest",- "Toggle filesystem test mode."+ "Toggle filesystem test mode.",+ "fstest",+ "切换文件系统的试验模式。" }; @@ -3342,7 +3492,11 @@ " the one of the heads, the one of the sectors and the one of the total" " sectors are set to CYLINDER, HEAD, SECTOR and TOTAL_SECTOR," " respectively. If you omit TOTAL_SECTOR, then it will be calculated based"- " on the C/H/S values automatically."+ " on the C/H/S values automatically.",+ "geometry DRIVE [CYLINDER HEAD SECTOR [TOTAL_SECTOR]]",+ "输出驱动器的相关信息. 在grub壳程序中, "+ " 你可以用这条命令设置驱动器参数为任意值。如果你省略了"+ " 总扇区数, 则该值缺省有其它参数决定。" }; @@ -3366,7 +3520,10 @@ BUILTIN_MENU | BUILTIN_CMDLINE | BUILTIN_HELP_LIST, "halt [--no-apm]", "Halt your system. If APM is avaiable on it, turn off the power using"- " the APM BIOS, unless you specify the option `--no-apm'."+ " the APM BIOS, unless you specify the option `--no-apm'.",+ "halt [--no-apm]",+ "关闭系统。如果APM(高级电源管理)功能存在,将使用 APM BIOS "+ " 关闭系统,除非指定了 `--no-apm' 选项。" }; @@ -3494,7 +3651,10 @@ BUILTIN_MENU | BUILTIN_CMDLINE | BUILTIN_HELP_LIST, "help [--all] [PATTERN ...]", "Display helpful information about builtin commands. Not all commands"- " aren't shown without the option `--all'."+ " aren't shown without the option `--all'.",+ "help [--all] [PATTERN ...]",+ "显示内部命令的帮助信息。要查看所有命令的帮助,"+ " 请使用 `--all' 参数。" }; @@ -3545,7 +3705,9 @@ "hide [PARTITION]", "Hide PARTITION by setting the \"hidden\" bit in" " its partition type code. The default partition is the current"- " root device."+ " root device.",+ "hide PARTITION",+ "通过在分区类型上置隐藏标志,隐藏指定分区。" }; @@ -3558,7 +3720,14 @@ if (! eth_probe ()) {- grub_printf ("No ethernet card found.\n");+#ifdef SUPPORT_GRAPHICS+ if (graphics_inited && ushFontReaded)+ grub_printf ("未发现网卡.\n");+ else+ grub_printf ("No ethernet card found.\n");+#else+ grub_printf ("No ethernet card found.\n");+#endif errnum = ERR_DEV_VALUES; return 1; }@@ -3599,7 +3768,10 @@ BUILTIN_CMDLINE | BUILTIN_MENU | BUILTIN_HELP_LIST, "ifconfig [--address=IP] [--gateway=IP] [--mask=MASK] [--server=IP]", "Configure the IP address, the netmask, the gateway and the server"- " address or print current network configuration."+ " address or print current network configuration.",+ "ifconfig [--address=IP] [--gateway=IP] [--mask=MASK] [--server=IP]",+ "指定 IP 地址, 子网掩码, 网关和服务器地址。不带参数时,将显示"+ " 当前的网络配置。" }; #endif /* SUPPORT_NETBOOT */ @@ -3628,7 +3800,10 @@ "impsprobe", "Probe the Intel Multiprocessor Specification 1.1 or 1.4" " configuration table and boot the various CPUs which are found into"- " a tight loop."+ " a tight loop.",+ "impsprobe",+ "通过一些循环操作,侦测出符合 Intel 多处理器规范 1.1/1.4 "+ " 的 CPUs,以便于发挥其更好的效能。" }; @@ -3659,7 +3834,9 @@ BUILTIN_MENU | BUILTIN_CMDLINE | BUILTIN_HELP_LIST, "initrd FILE [ARG ...]", "Load an initial ramdisk FILE for a Linux format boot image and set the"- " appropriate parameters in the Linux setup area in memory."+ " appropriate parameters in the Linux setup area in memory.",+ "initrd FILE [ARG ...]",+ "加载Linux格式的初始化虚拟盘, 并设置必要的参数。" }; @@ -4230,7 +4407,17 @@ " patched with the configuration filename REAL_CONFIG_FILE." " If the option `--force-lba' is specified, disable some sanity checks" " for LBA mode. If the option `--stage2' is specified, rewrite the Stage"- " 2 via your OS's filesystem instead of the raw device."+ " 2 via your OS's filesystem instead of the raw device.",+ "install [--stage2=STAGE2_FILE] [--force-lba] STAGE1 [d] DEVICE STAGE2 [ADDR] [p] [CONFIG_FILE] [REAL_CONFIG_FILE]",+ "安装STAGE1到指定设备上,安装加载STAGE2需要的块列表到STAGE2上。"+ " 如果使用了选项'd', STAGE1总是试图使用安装STAGE2的驱动器, "+ " 而不是启动盘。"+ "STAGE2将加载在指定地址上, 如果未声明地址, 则自动检测。如果"+ " 使用了选项 'p' 或给出了配置文件, 将修改STAGE2的第一个数据"+ " 块, 修正实际Stage2启动时使用的配置文件位置。对于Stage 1.5,"+ " 该值为Stage 2的路径。"+ "如果安装的是Stage 1.5, 且指定了实际配置文件, 则将该配置文件"+ " 路径写入Stage2中。" }; @@ -4273,7 +4460,9 @@ ioprobe_func, BUILTIN_MENU | BUILTIN_CMDLINE, "ioprobe DRIVE",- "Probe I/O ports used for the drive DRIVE."+ "Probe I/O ports used for the drive DRIVE.",+ "ioprobe DRIVE",+ "侦测指定设备的 I/O 端口号。" }; @@ -4368,7 +4557,13 @@ " to suggest what type of kernel to be loaded. TYPE must be either of" " \"netbsd\", \"freebsd\", \"openbsd\", \"linux\", \"biglinux\" and" " \"multiboot\". The option --no-mem-option tells GRUB not to pass a"- " Linux's mem option automatically."+ " Linux's mem option automatically.",+ "kernel [--no-mem-option] [--type=TYPE] FILE [ARG ...]",+ "尝试载入主引导影像文件。其它项将被作为内核的命令行参数而传递"+ " 给内核。使用此命令以前,内核所用到的模块应该被重新载入。"+ " 参数 --type 用于说明内核的类型,包括 \"netbsd\", \"freebsd\", "+ " \"openbsd\", \"linux\", \"biglinux\" 和 \"multiboot\"。 "+ " 参数 --no-mem-option 用于说明不必自动传递 Linux 的内存参数。" }; @@ -4391,7 +4586,9 @@ lock_func, BUILTIN_MENU | BUILTIN_CMDLINE, "lock",- "Break a command execution unless the user is authenticated."+ "Break a command execution unless the user is authenticated.",+ "lock",+ "如果用户未被认证,则终止命令的执行。" }; @@ -4412,7 +4609,9 @@ BUILTIN_MENU | BUILTIN_CMDLINE | BUILTIN_HELP_LIST, "makeactive", "Set the active partition on the root disk to GRUB's root device."- " This command is limited to _primary_ PC partitions on a hard disk."+ " This command is limited to _primary_ PC partitions on a hard disk.",+ "makeactive",+ "将 root 设备置为活动分区。当然,此命令只对 PC 的硬盘主分区有效。" }; @@ -6117,7 +6316,26 @@ " address RESERV in 512-byte-sectors and ending at the end of this mem" " block(usually the end of physical mem). RD specifies the ramdisk number," " and can be a BIOS drive number. ADDR specifies the base address of the"- " ramdisk image. SIZE specifies the size in bytes of the ramdisk image."+ " ramdisk image. SIZE specifies the size in bytes of the ramdisk image.",+ "map [--status] [--mem[=RESERV]] [--hook] [--unhook] [--rehook] [--floppies=M] [--harddrives=N] [--ram-drive=RD] [--rd-base=ADDR] [--rd-size=SIZE] [[--read-only] [--fake-write] [--unsafe-boot] [--disable-chs-mode] [--disable-lba-mode] [--heads=H] [--sectors-per-track=S] TO_DRIVE FROM_DRIVE]",+ "对设备进行映射。这对于扇区链式引导是很有用的功能,比如 DOS。"+ " 这里,目的驱动器(TO_DRIVE)可以是一个磁盘文件,即使用"+ " 磁盘虚拟功能。"+ " 注意,这要求磁盘文件是连续存放于分区中的。另外,"+ " 若使用了 --read-only 参数,该功能将使`磁盘'处于只读;"+ " 若使用了 --fake-write 参数,该功能将使`磁盘'处于假写,即"+ " 可以\"写入\"数据,但是却并未记录到真实磁盘上;"+ " 若使用了 --unsafe-boot 参数,该功能将使`磁盘'处于真实可写;"+ " 若使用了 --disable-chs-mode 参数,CHS 访问功能将被禁用;"+ " 若使用了 --disable-lba-mode 参数, LBA访问功能将被禁用;"+ " H 和 S 指定了虚拟磁盘的物理参数。若使用了 --status, --hook, "+ " --unhook,--rehook 诸参数之一, 那么其它的命令行参数将被忽略。"+ " --mem 参数指定使用内存来仿真磁盘。"+ " 另外还有几个参数是用来修改内存中的变量。--floppies 用于修改 BIOS"+ " 数据区 0x410 处的软盘个数位域。--harddrives 用于修改 BIOS 数据区"+ " 0x475 处的硬盘个数字节。--ram-drive 用于修改代表内存盘的 BIOS"+ " 磁盘号码。--rd-base 指定内存盘的起始地址。--rd-size"+ " 指定内存盘的大小(以字节计数)。" }; #endif /* ! GRUB_UTIL */ @@ -6176,7 +6394,9 @@ md5crypt_func, BUILTIN_MENU | BUILTIN_CMDLINE | BUILTIN_HELP_LIST, "md5crypt",- "Generate a password in MD5 format."+ "Generate a password in MD5 format.",+ "md5crypt",+ "产生一个 MD5 格式的密码。" }; #endif /* USE_MD5_PASSWORDS */ @@ -6225,7 +6445,11 @@ " interpretation of the file contents is made, so users of this" " command must know what the kernel in question expects). The" " rest of the line is passed as the \"module command line\", like"- " the `kernel' command."+ " the `kernel' command.",+ "module FILE [ARG ...]",+ "对多重启动影像, 加载启动模块文件 (不处理该文件的内容, "+ "用户必须自己确定核心的要求)。剩余参数作为`模快命令行`传递, "+ "象`kernel'命令一样." }; @@ -6255,7 +6479,9 @@ BUILTIN_MENU | BUILTIN_CMDLINE | BUILTIN_HELP_LIST, "modulenounzip FILE [ARG ...]", "The same as `module', except that automatic decompression is"- " disabled."+ " disabled.",+ "modulenounzip FILE [ARG ...]",+ "与 `module' 类似, 但是自动禁用了解压缩。" }; @@ -6287,7 +6513,10 @@ BUILTIN_CMDLINE | BUILTIN_MENU | BUILTIN_HELP_LIST, "pager [FLAG]", "Toggle pager mode with no argument. If FLAG is given and its value"- " is `on', turn on the mode. If FLAG is `off', turn off the mode."+ " is `on', turn on the mode. If FLAG is `off', turn off the mode.",+ "pager [FLAG]",+ "没有参数时,切换页模式。如果使用了 FLAG 参数,那么它为"+ "`on' 时为开启, 为 `off' 时为关闭。" }; @@ -6409,7 +6638,10 @@ BUILTIN_CMDLINE | BUILTIN_MENU | BUILTIN_HELP_LIST, "partnew PART TYPE START LEN", "Create a primary partition at the starting address START with the"- " length LEN, with the type TYPE. START and LEN are in sector units."+ " length LEN, with the type TYPE. START and LEN are in sector units.",+ "partnew PART TYPE START LEN",+ "创建一个新的主分区。START 为起始扇区号,LEN 为其包含的"+ " 扇区数,TYPE 为其分区类型。" }; @@ -6499,7 +6731,9 @@ parttype_func, BUILTIN_CMDLINE | BUILTIN_MENU | BUILTIN_HELP_LIST, "parttype PART TYPE",- "Change the type of the partition PART to TYPE."+ "Change the type of the partition PART to TYPE.",+ "parttype PART TYPE",+ "改变指定分区(PART)的分区类型(TYPE)。" }; @@ -6573,7 +6807,14 @@ " instructions. You can also use it in the script section, in" " which case it will ask for the password, before continueing." " The option --md5 tells GRUB that PASSWD is encrypted with"- " md5crypt."+ " md5crypt.",+ "password [--md5] PASSWD [FILE]",+ "当其处于菜单文件的首项时,将禁用所有的交互式菜单编辑功能,"+ " 包括编辑菜单项(`e`)/进入命令行(`c`)。当正确输入密码"+ " (由PASSWD指定)后,载入新的菜单文件(由FILE指定)。如果你 "+ " 没有指定 FILE 项,那么上述被禁用的功能将被启用了。"+ " 当然,你也可以将此命令用到某个菜单项里,用以提高系统安全性。"+ " 参数 --md5 说明密码(PASSWD)是使用md5crypt 加密的。" }; @@ -6639,7 +6880,10 @@ pause_func, BUILTIN_MENU | BUILTIN_CMDLINE | BUILTIN_NO_ECHO, "pause [--wait=T] [MESSAGE ...]",- "Print MESSAGE, then wait until a key is pressed or T seconds has passed."+ "Print MESSAGE, then wait until a key is pressed or T seconds has passed.",+ "pause [--wait=T] [MESSAGE ...]",+ "终止命令的运行,并给出一段信息。任意键"+ " 按下后,将继续。" }; @@ -6660,7 +6904,9 @@ quit_func, BUILTIN_MENU | BUILTIN_CMDLINE | BUILTIN_HELP_LIST, "quit",- "Exit from the GRUB shell."+ "Exit from the GRUB shell.",+ "quit",+ "从 GRUB 命令行中退出。" }; #else /* quit */@@ -6774,7 +7020,9 @@ rarp_func, BUILTIN_CMDLINE | BUILTIN_MENU | BUILTIN_HELP_LIST, "rarp",- "Initialize a network device via RARP."+ "Initialize a network device via RARP.",+ "rarp",+ "用 RARP 初始化网络设备。" }; #endif /* ! GRUB_UTIL */ #endif /* SUPPORT_NETBOOT */@@ -6801,7 +7049,10 @@ BUILTIN_MENU | BUILTIN_CMDLINE, "read ADDR", "Read a 32-bit value from memory at address ADDR and"- " display it in hex format."+ " display it in hex format.",+ "read ADDR",+ "从内存的指定位置读取一个 32-bit 的值,并以"+ " 十六进制形式显示出来。" }; static int@@ -6850,7 +7101,9 @@ reboot_func, BUILTIN_MENU | BUILTIN_CMDLINE | BUILTIN_HELP_LIST, "reboot",- "Reboot your system."+ "Reboot your system.",+ "reboot",+ "重启系统。" }; #endif /* ! GRUB_UTIL */ @@ -6951,6 +7204,78 @@ return 0; } +#ifdef SUPPORT_GRAPHICS+/* Chinese Support by Gandalf+ * These codes used for defining a proper fontfile+ */+char fontfile[256];+static int font_func (char *arg, int flags) {+ //int i;++ if (grub_strlen(arg) <= 0)+ {+#ifdef SUPPORT_GRAPHICS+ if (graphics_inited && ushFontReaded)+ grub_printf("当前字体文件: %s", fontfile);+ else+ grub_printf("Current font file is: %s", fontfile);+#else+ grub_printf("Current font file is: %s", fontfile);+#endif+ return 0;+ }+ + while(arg[0]==' '||arg[0]=='\t') arg++;++ if (strlen(arg) > 256)+ return errnum = ERR_WONT_FIT;+ +// if (flags == BUILTIN_CMDLINE) {
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -