cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1414
Views
5
Helpful
4
Replies

password recovery 2960

walthall2
Beginner
Beginner

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 4

johnd2310
Collaborator
Collaborator

 

Hi,

 

Have you done flash_init before trying to read flash?

 

John

**Please rate posts you find helpful**

Leo Laohoo
Hall of Fame Community Legend Hall of Fame Community Legend
Hall of Fame Community Legend

Akshay Balaganur
Beginner
Beginner

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.

LJ Gabrillo
Contributor
Contributor

@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 :)
 

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:

Recognize Your Peers