以下是一个 GRUB 主菜单示例,该菜单所处的 Oracle Solaris 发行版支持从 ZFS 根文件系统引导系统。该菜单基于 menu.lst 文件的内容,包含了系统中所有可引导的 OS 实例的菜单项。除非另有指定,否则该菜单中的第一项是缺省项。要将其他引导项指定为缺省项,请向 menu.lst 文件中添加 default= n 命令,其中,n 是一个从 0(第一个引导项)开始的数字。
GNU GRUB version 0.95 (637K lower / 3144640K upper memory) +-------------------------------------------------------------------------+ be1) be1 failsafe be3 be3 failsafe be2 be2 failsafe +-------------------------------------------------------------------------+ Use the ^ and v keys to select which entry is highlighted. Press enter to boot the selected OS, 'e' to edit the commands before booting, or 'c' for a command-line. |
menu.lst 文件中包含的信息具体视所使用的 Oracle Solaris 发行版和安装方法而异。
要编辑 GRUB 菜单中的引导项,请使用方向键选择该项,然后键入 e。
GNU GRUB version 0.95 (637K lower / 3144640K upper memory) +-------------------------------------------------------------------------+ findroot (BE_be1,0,a) bootfs rpool/ROOT/szboot_0508 kernel$ /platform/i86pc/multiboot -B $ZFS-BOOTFS module /platform/i86pc/boot_archive +-------------------------------------------------------------------------+ Use the ^ and v keys to select which entry is highlighted. Press enter to boot the selected OS, 'e' to edit the commands before booting, or 'c' for a command-line. |
有关在引导时编辑 GRUB 菜单的说明,请参见x86: 如何通过在引导时编辑 GRUB 菜单修改引导行为。