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

password recovery 2960

walthall2
Level 1
Level 1

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
Level 8
Level 8

 

Hi,

 

Have you done flash_init before trying to read flash?

 

John

**Please rate posts you find helpful**

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
Level 5
Level 5

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