Performing Other Configuration Tasks

Copying a Configuration File from a Flash Memory Card to NVRAM

To copy a configuration file from a Flash memory card inserted in PCMCIA slot 0 or slot

1 to NVRAM, perform the following steps:

Step 1 Issue the command for copying a configuration file from a Flash memory card to NVRAM. This command takes the following form:

copy [ slot0: slot1: ]:filename startup-config

where:

[ slot0: slot1: ]:filename is the source of the file to be copied (the Flash memory card inserted in PCMCIA slot 0 or slot 1).

startup-configis the destination (NVRAM) of the file to be copied.

To initiate the copy operation, issue the following command at the privileged

EXEC mode prompt:

Router# copy slot0:myfile startup-config

[ok]

Router#

Step 2 Issue the following command to ensure that the startup configuration file, now stored in NVRAM, is designated as the default running configuration file for the system:

Router# copy startup-config running-config

Router#

%SYS-5-CONFIG_I: Configured from memory by console

Router#

Recovering from Locked Blocks in Flash Memory Cards

A locked block in a Flash memory card occurs when power is lost or a Flash memory card is removed during a write or erase operation. The only way to recover from locked blocks in a Flash memory card is to reformat the card using the format command.

Caution Formatting a Flash memory card erases all data on the card.

Observing System Startup and Performing a Basic Configuration 4-63

Page 247
Image 247
Cisco Systems Cisco 12008 Recovering from Locked Blocks in Flash Memory Cards, Copy slot0 slot1 filename startup-config