cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
21984
Views
5
Helpful
9
Replies

Cisco 2960 flash init

kleyoneo
Level 1
Level 1

Hello,

 

I have an issue with a Cisco 2960. I would like to reset the factory settings because of configuration error. I followed the documentation up to the flash_init command whose output tells me "Unknown cmd: flash_init":

 

Board SKU ID is (1)
FPU initialized to Run Fast Mode.
FPGA: 1.5
DRAM Size: 512 MB
Xmodem file system is available.
USB EHCI 1.00
### Found Flash Chip id - 0xda01
Using driver version 1 for media type 3
yaffs[9]: Initialization complete.

yaffs[10]: Initialization complete.

yaffs[11]: Initialization complete.

Base ethernet MAC Address: 14:16:9d:fa:40:80
The password-recovery mechanism is enabled.

*** The system will autoboot in 5 seconds ***
Send break character to prevent autobooting.


The system has been interrupted. The following commands
will finish loading the operating system software:

boot


switch: flash_init
Unknown cmd: flash_init


What's wrong ? Is there another way to do this?


Thanks in advance

9 Replies 9

Seb Rupik
VIP Alumni
VIP Alumni

Hi there,

I don't believe the flash_init command is required on all platforms. Have you tried issuing the dir and dir flash commands? What output do you get?

 

cheers,

Seb.

This is the ouput :

 

switch: dir

List of filesystems currently registered:

              xmodem[0]: (read-only)
                null[1]: (read-write)
                vmap[3]: (read-only)
                  bs[4]: (read-only)
                 bsg[5]: (read-only)
               flash[11]: (read-write)


switch: dir flash
unable to stat flash/: no such device

Can you try dir flash: 

(note the semicolon)

there may be a couple of reasons, the flash may be corrupted or the image might have erased.

 

 

try the below modem to install the ios image, before we take any other action.

 

https://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst2960/software/release/12-2_53_se/configuration/guide/2960scg/swtrbl.html#22506

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

Reza Sharifi
Hall of Fame
Hall of Fame

Hi,

It may be that the flash empty or damaged. So, try the rest of the commands in this link:

 

https://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst2960/software/release/12-2_25_see/configuration/guide/scg_1/swtrbl.html#wp1090048

 

HTH

balaji.bandi
Hall of Fame
Hall of Fame

dir you can see file as below

 

flash:

config.txt and vlan.dat

 

delete

 

switch:delete flash:config.txt

switch:delete flash:vlan.dat

 

if success

 

switch:boot

 

then start making your config.

 

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

Leo Laohoo
Hall of Fame
Hall of Fame

The flash is empty.  

You will need to manually load the flash back into the switch.

johnlloyd_13
Level 9
Level 9

hi,

the flash might be empty and doesn't have an IOS to bootup.

you can try to boot from a compatible USB stick:

switch: boot system usbflash0:<IOS.bin>

kleyoneo
Level 1
Level 1

Thank you all for your responses. I will try your solutions and I will keep you posted.