cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
9359
Views
1
Helpful
2
Comments
TCC_2
Level 10
Level 10

Core Issue

Issuing the copy running-config startup-config command may produce a prompt to erase Flash, as shown in this command output: 

Router#copy run start
Destination filename [start]?
Erase flash: before copying? [confirm]
Erasing the flash filesystem will remove all files! Continue? [confirm]

 Erasing device...
eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
 ee ...erasedee
 Erase of flash: complete
 Verifying checksum...  OK (0xA83F)
 7056 bytes copied in 0.836 secs

To erase any files on the Flash device, including the Cisco IOS  Software file, select Enter at the Erase flash: before copying? [confirm] prompt. The router then reloads and goes into ROM Monitor (ROMmon) mode.

Resolution

To resolve this issue, enter n so that the Cisco IOS Software file in Flash is not erased. The running configuration file is copied into Flash, but the Cisco IOS Software file also remains on Flash, leaving the router bootable.

As a workaround, issue the write memory command. This saves the running configuration to NVRAM, as this command never prompts to erase Flash.

If Flash has already been erased, do not reload the router because it will go into ROMmon mode, since no Cisco IOS Software image is present on Flash.

Copy the Cisco IOS Software file back into Flash before reloading the router.

For instructions on this procedure, refer to Loading Software using TFTP or RCP.

When Problem Occurs

After software configuration change

Comments
ssandefur
Community Member

So true, but it still would still be much better to be able to turn this off.  For a variety of reasons, my admin group generally saves a copy of the config to the flash.  I burn myself on this "feature" every three years or so because 99% my routers don't try to do this. And, when one actually does try to Erase on Save, I may have thought it just wanted me to confirm the save and then ran through the prompts.  My fault of course. But that's the pace we keep most days.  Just better to be able to turn it off and then erase/squeeze/reformat when I want and need too.  I litterally manage hundres of routers on a semi-routine basis.  I guess I've been lucky to have only blown up something important with feature only once.

juanduar
Cisco Employee
Cisco Employee

The reason why this happen is related more on the formatting on the compact Flash.

Class B file system asks for the format prompt and the class C does not.

 

In the follwing link explains how to proceed to get the desired formating: http://www.cisco.com/en/US/partner/docs/routers/access/1800/1841/software/configuration/guide/b_cflash_ps5854_TSD_Products_Configuration_Guide_Chapter.html

I hope it helps.

Cheers

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking for a $25 gift card