Содержащиеся вНайти другие документыРесурсы поддержки | Загрузить это руководство в формате PDF (8966 КБ)
bootadm(1M)Name | Synopsis | Description | SUBCOMMANDS | Options | Examples | Exit Status | Attributes | See Also Name
Synopsis/sbin/bootadm update-archive [-vn] [-R altroot [-p platform]] /sbin/bootadm list-archive [-vn] [-R altroot [-p platform]] x86 only /sbin/bootadm set-menu [-R altroot [-p platform]] key=value /sbin/bootadm list-menu [-R altroot [-p platform]] DescriptionThe bootadm command manages the boot archive and, with x86 boot environments, the GRUB (GRand Unified Bootloader) menu. The update–archive option provides a way for user to update the boot archive as a preventative measure or as part of a recovery procedure. The set-menu subcommand allows you to switch the auto-boot timeout and default boot entry in the GRUB menu. The list-menu subcommand displays the location of the GRUB menu and the current GRUB menu entries. While the typical location of the GRUB menu is /boot/grub/menu.lst, depending on the install method used the active GRUB menu might be located somewhere else. Use the list-menu subcommand to locate the active GRUB menu. For example, if a system was installed using Live Upgrade, the GRUB menu might not be located in the current boot environment. See the EXAMPLES section for typical output from the list-menu option. Note that OpenBoot PROM (OBP)-based machines, such as SPARC systems, do not use GRUB and have no boot menu manageable by bootadm. The bootadm command determines dynamically the options supported by the image to be managed, so that bootadm invoked on one platform can be used to manage diskless clients of a different platform type. SUBCOMMANDS
The bootadm command has the following subcommands: Options
The bootadm command has the following options: Examples# bootadm update-archive Example 2 Updating the Boot Archive on an Alternate RootThe following command updates the boot archive on an alternate root: # bootadm update-archive -R /a Example 3 Listing Installed OS InstancesThe following command lists the installed operating system instances in a GRUB menu: # bootadm list-menu default=0 timeout=10 (0) Solaris10 (1) Solaris10 Failsafe (2) Linux Example 4 Switching Default Boot EntryThe following command refers to the menu displayed in the previous example. The user selects Linux (item 2). # bootadm set-menu default=2 Example 5 Listing GRUB Menu Entries and Location of GRUB MenuThe following command lists the GRUB menu entries and the location of the GRUB menu: # bootadm list-menu The location for the active GRUB menu is: /stubboot/boot/grub/menu.lst default 0 timeout 10 0 Solaris10 1 Solaris10 failsafe 2 Linux Example 6 Displaying Location of GRUB MenuThe following command displays the location of the GRUB menu: # bootadm list-menu The location for the active GRUB menu is: /dev/dsk/c0t1d0s0 (not mounted) The filesystem type of the menu device is <ufs> default 2 timeout 10 0 c0t1d0s3 1 c0t1d0s3 failsafe 2 Solaris10 3 Solaris10 failsafe In this example, the active GRUB menu is located on a device which is not mounted. To access the GRUB menu, mount the device and access the GRUB menu at <mountpoint>/boot/grub/menu.lst. Exit Status
The following exit values are returned: AttributesSee attributes(5) for descriptions of the following attributes:
See Alsoboot(1M), installgrub(1M), attributes(5) Consult the GRUB home page, under: http://www.gnu.org/SunOS 5.10 Last Revised 25 Apr 2008 Name | Synopsis | Description | SUBCOMMANDS | Options | Examples | Exit Status | Attributes | See Also |
||||||