5-16
Switch Memory and Configuration
Using Primary and Secondary Flash Image Options
Switch Memory and
Configuration
1. Verify that there is a valid flash image in the secon dary flash location. The
following figure indicates that an O S image is present in secondary flash.
(If you are unsure whether the image is se condary flash is valid, try
booting from it before you proceed, by using boot system flash secondary.)
Figure 5-9. Example Indicating Two Different OS Versions in Primary and
Secondary Flash
Execute the copy command as follows:
HP4108(config)# copy flash flash primary
Erasing the Contents of Primary or Secondary Flash. This command
deletes the OS image file from the specified flash location.
Caution--No Undo!Before using this command in one flash image location (primary or seco nd-
ary), ensure that you have a valid OS file in the other flash image location
(secondary or primary). If the switch ha s only one flash image load ed (in either
primary or secondary flash) and you erase that image, then the switch doe s
not have an OS stored in flash. In this case, if you do not reboot or power cycle
the switch, you can recover by using xmodem or tftp to download another OS.
Syntax: erase flash < primary | secondary >
For example, to erase the OS in primary f lash, do the following:
1. First verify that a usable flash image exists in secondary flash. The most
reliable way to ensure this is to reboot the switch from the flash image
you want to retain. For example, if you are planning to eras e the primary
image, then first reboot from the secondary image to verify that the
secondary image is present and acceptable for your system:
HP4108# boot system flash secondary
2. Then erase the OS in the selected flash (in this case, primary):
The unequal code
size indicates two
different versions of
the OS software.