Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

password recovery 2960

I'm trying to do a password recovery on a 2960 switch. here's what I see:

 

switch: dir flash:

unable to stat flash:/: invalid argument

 

switch: dir

 

List of filesystems currently registered:

 

                  bs[0]: (read-only)

               flash[3]: (read-write)

              xmodem[4]: (read-only)

                null[5]: (read-write)

 

What do I need to change this command to?

Type rename flash:config.text flash:config.old to rename the configuration file.

 

Thanks in advance!

 

4 REPLIES
Silver

 Hi, Have you done flash_init

 

Hi,

 

Have you done flash_init before trying to read flash?

 

John

Hall of Fame Super Gold

Go here:  http://www-tss

New Member

Hello You have to initiliaze

Hello

 

You have to initiliaze the flash first.

Here are the steps.

 

1. flash_init

2. load_helper

3. rename the config file.

4. boot

 

 

You can refer to this link for clarity.

https://supportforums.cisco.com/discussion/11756896/cisco-switch-29603560-password-recovery-and-factory-default-mode-button

 

HTH,

Akshay

 

P.S Help us know that the answered helped you by rating the post.

Silver

@abalagan already answered

@abalagan already answered your question :)

Too add on his note, for password recovery once you get to the CLI:

1. Load back the config: copy flash:config.old system:running-config

2. Change your credentials (Make sure not to exit)

      >enable secret <something>

      >username <user> privilege 15 secret <secret>
 

3. Save: copy r s :)
 

584
Views
5
Helpful
4
Replies
CreatePlease to create content