07-17-2014 02:27 PM - edited 03-07-2019 08:06 PM
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!
07-17-2014 04:48 PM
Hi,
Have you done flash_init before trying to read flash?
John
07-17-2014 06:02 PM
07-17-2014 08:51 PM
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.
07-18-2014 08:29 AM
@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 :)
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: