boot system flash

Configures the device to boot from the image stored in the flash memory.

Syntax

boot system flash { primary | secondary } [ yes ]
no boot system flash { primary | secondary } [ yes ]

Command Default

By default, the device first attempts to boot from the image stored in its primary flash, then its secondary flash, and then from a TFTP server.

Parameters

primary
Configures to boot from the image stored in its primary flash.
secondary
Configures to boot from the image stored in its secondary flash.
yes
Confirms the system boot preference settings. This option is equivalent to using the write memory command. This option is available only in Privileged EXEC mode.

Modes

Privileged EXEC mode

Global configuration mode

Usage Guidelines

You can use boot commands to immediately initiate software boots from a software image stored in the primary or secondary flash on a Brocade device.

It is very important that you verify a successful transfer of the boot code before you reset the system. If the boot code is not transferred successfully but you try to reset the system, the system will not have the boot code with which to successfully boot.

You can modify the default booting sequence in the global configuration mode using the boot system command.

Execute the write memory command to save the boot preferences to the startup configuration. If you are executing the boot system flash command from the Privileged EXEC mode, you can use the yes option to save the boot preference to the startup configuration. Executing the write memory command is not required in this case.

You can use the show boot-preference command to view the boot sequence preference.

The no form of the command resets the boot preference to the default.

Examples

The following example shows how to set the system to boot the image from the secondary flash.

device(config)# boot system flash secondary

The following example shows how to set the system to boot the image from the primary flash and save the preference to the startup configuration.

device# boot system flash primary yes