04-03-2022 12:23 PM
My 2960 + switch missing a flash: drive
I think Someone put a S1(config)#format flash: in global config mode.
If I go to rommon mode and do a Switch: format flash: will it recover the flash drive?flash: drive missing, LAN Switching
04-03-2022 12:50 PM
Perhaps I am not understanding correctly what you are asking. What I think I am understanding is that someone has formatted flash on this 2960 switch. I am not clear whether you are saying that flash is missing, flash is corrupted, or flash is empty. Can you clarify?
Can you post the output you get when you attempt to look into flash?
It might also be helpful if you would connect to the console port, power cycle the switch, and post all of the console output during the booting process.
04-03-2022 02:32 PM - edited 04-04-2022 11:23 AM
Thanks for the reply.
The problem with the switch is the flash drive is missing.
I have connect the console port and run
#sh flash: or #dir flash:
It will come back with invalid input.
#sh file system will not show any flash drive.
Currently the switch is still functioning with an ip address on the vlan1,
I could reach via a PC.
But I cannot recover the flash drive.
I am afraid if I power cycle it, it will go to ROMMON mode, because the
flash drive is not there.
Not sure what to do next.
04-03-2022 03:39 PM
Post the complete output to the following commands:
04-04-2022 05:59 AM
Sorry for the late reply.
04-04-2022 06:19 AM
S1#dir
%Error parsing (Bad file number)
S1#dir ?
/all List all files
/recursive List files recursively
all-filesystems List files on all filesystems
cns: Directory or file name
null: Directory or file name
nvram: Directory or file name
system: Directory or file name
tar: Directory or file name
tmpsys: Directory or file name
xmodem: Directory or file name
ymodem: Directory or file name
Unknown file system <cr>
S1#sh format ?
built-in Use the built-in spec file
cli fully expanded CLI to display
nvram: Spec file location
validate validate the spec file
Unknown file system | Output modifiers
<cr>
S1#sh format nvram: ?
cli fully expanded CLI to display
validate validate the spec file
| Output modifiersnv
<cr>
S1#sh format nvram:
%error opening nvram:
S1#sh format validate
The following problem was detected in built-in bad format in the spec file
S1#sh file systems
File Systems:
Size(b) Free(b) Type Flags Prefixes
- - opaque rw system:
- - opaque rw tmpsys:
65536 57996 nvram rw nvram:
- - opaque ro xmodem:
- - opaque ro ymodem:
- - opaque rw null:
- - opaque ro tar:
- - network rw tftp:
- - network rw rcp:
- - network rw http:
- - network rw ftp:
- - network rw scp:
- - network rw https:
- - opaque ro cns:
04-04-2022 06:43 AM
Post the complete output to the command "sh version".
04-04-2022 07:13 AM - edited 04-04-2022 11:13 AM
Sorry. I think I did post the show version this morning. check above.
04-04-2022 07:45 AM - edited 04-04-2022 11:17 AM
Sorry for all these extras.
04-04-2022 06:20 AM - edited 04-04-2022 11:15 AM
I did more show commands earlier.
Hope this help.
04-04-2022 06:23 AM
I think someone overwrite the IOS with a bad version.
04-04-2022 07:48 AM - edited 04-04-2022 11:16 AM
Not sure what else can I do before power cycle it and hope ROMMON will show.
Because Flash: drive is not there, looks like a lot of things will not work.
04-04-2022 03:20 PM
I am still not clear about the real nature of the problem here. There are suggestions that flash is missing. In an earlier post we saw this output
S1#sh file systems
File Systems:
Size(b) Free(b) Type Flags Prefixes
- - opaque rw system:
- - opaque rw tmpsys:
65536 57996 nvram rw nvram:
Is what the original poster calls flash what this output calls nvram? In that case it is not missing.
There are suggestions that perhaps flash has been formatted (and questions about whether to format it again). If it has been formatted then it will be empty. And an important part of recovery will be to get a good image file into flash. Does the original poster have an available good image for this switch (or can get one)?
Could we see the output of dir nvram
04-04-2022 04:41 PM - edited 04-04-2022 04:50 PM
The original file system has a flash: drive that contain IOS in it.
That is how the switch boot up with.
But when I look at it now the flash: drive is missing.
That is also affecting when I do S1#dir the command does not work.
When I do S1#dir ?
Unknown file system | Output modifiers
show at the last line
Also when I run S1# sh nvram:
It also come back with an error, saying that some file in flash: not found
Basically I cannot save my running config to startup config.
However, I can still save to my tftp: server and that is it.
And I cannot run the command S1# copy tftp://ios.... flash:
because there is no flash drive.
My question is:
Is there any other way I could do without power cycle it to recover the flash: drive.
Or should I power cycle the switch so that hopefully it will go to ROMMON mode and I can maybe format the flash: or do something to the drive and recover this way.
I am not sure how to recover the flash: drive.
Thanks ahead for the help.
04-03-2022 11:50 PM
- Try fsck flash:
M.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide