cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1953
Views
2
Helpful
6
Replies

Accidentialy deleted entire flash: on C1000

aerrpunkt
Level 1
Level 1

Hello everyone,

I just deleted the entire contents of the flash: on a Catalyst 1000 out of stupidity. A system message popped up during autocomplete and instead of tabulator I pressed enter after "delete /f /r flash:"

Of course, the system no longer boots, "error loading "flash:c1000...."

any chance of getting it repaired?

Thank you guys, any help is much apreciated

2 Accepted Solutions

Accepted Solutions

that may because of new OS. you can skip that and try 

switch: dir flash:

also, you may need to upload matching OS to switch. first download the OS file from cisco downloads and prepare it for uploading, can use Flash drive (which is easier)

 

Please rate this and mark as solution/answer, if this resolved your issue
Good luck
KB

View solution in original post

6 Replies 6

can you share complete console output after reboot? 

if it loads to rommon mode, you can use below guide (it is made to 9400 but should be the same for 1000 series).

https://content.cisco.com/chapter.sjs?uri=/searchable/chapter/content/en/us/td/docs/switches/lan/catalyst9400/software/release/16-11/configuration_guide/sys_mgmt/b_1611_sys_mgmt_9400_cg/recover_from_corrupt_or_missing_file_image_or_in_rommon_mode.htm...

Please rate this and mark as solution/answer, if this resolved your issue
Good luck
KB

General initialization - Version: 1.0.0
Serdes initialization - Version: 1.0.2
** Link is Gen1, check the EP capability
PEX: pexIdx 0, Link upgraded to Gen2 based on client capabilities
DDR3 Training Sequence - Ver TIP-1.56.0
DDR3 Training Sequence - Switching XBAR Window to FastPath Window
DDR3 Training Sequence - Ended Successfully
BootROM: Image checksum verification PASSED


Board SKU ID is (3)
FPU initialized to Run Fast Mode.
FPGA: 7.0
PCI-e 0: Detected Link.
PCI-e 0: (bus 0) , Detected Link X1, GEN 2.0
DRAM Size: 512 MB
Xmodem file system is available.
USB EHCI 1.00
Using driver version 1 for media type 3
yaffs[9]: Initialization complete.

yaffs[10]: Initialization complete.

yaffs[11]: Initialization complete.

Base ethernet MAC Address: e4:38:7e:81:18:80
The password-recovery mechanism is enabled.

*** The system will autoboot in 5 seconds ***
Send break character to prevent autobooting.

..................................................
config file not found..
Loading "flash:/c1000-universalk9-mz.152-7.E4/c1000-universalk9-mz.152-7.E4.bin"...
Error loading "flash:/c1000-universalk9-mz.152-7.E4/c1000-universalk9-mz.152-7.E4.bin"

Interrupt within 5 seconds to abort boot process.
..................................................Boot process failed...

The system is unable to boot automatically.  The BOOT
environment variable needs to be set to a bootable
image.


switch:

this should work.

https://www.cisco.com/c/en/us/support/docs/switches/catalyst-2950-series-switches/41845-192.html#subtopic1a

 

Please rate this and mark as solution/answer, if this resolved your issue
Good luck
KB

Thanks!

I already found this, but there are two issues. I've got no mode button on my C1000, and there is no flash_init option available.

 

 

General initialization - Version: 1.0.0
Serdes initialization - Version: 1.0.2
** Link is Gen1, check the EP capability
PEX: pexIdx 0, Link upgraded to Gen2 based on client capabilities
DDR3 Training Sequence - Ver TIP-1.56.0
DDR3 Training Sequence - Switching XBAR Window to FastPath Window
DDR3 Training Sequence - Ended Successfully
BootROM: Image checksum verification PASSED


Board SKU ID is (3)
FPU initialized to Run Fast Mode.
FPGA: 7.0
PCI-e 0: Detected Link.
PCI-e 0: (bus 0) , Detected Link X1, GEN 2.0
DRAM Size: 512 MB
Xmodem file system is available.
USB EHCI 1.00
Using driver version 1 for media type 3
yaffs[9]: Initialization complete.

yaffs[10]: Initialization complete.

yaffs[11]: Initialization complete.

Base ethernet MAC Address: e4:38:7e:81:18:80
The password-recovery mechanism is enabled.

*** The system will autoboot in 5 seconds ***
Send break character to prevent autobooting.

.........................
The system has been interrupted. The following commands
will finish loading the operating system software:

    boot

switch:

switch:

switch: flash_init
Unknown cmd: flash_init

switch: config
Unknown cmd: config

switch:

switch: .
Unknown cmd: .

switch: ?
           ? -- Present list of available commands
        boot -- Load and boot an executable image
         cat -- Concatenate (type) file(s)
        copy -- Copy a file
      delete -- Delete file(s)
         dir -- List files in directories
      format -- Format a filesystem
        help -- Present list of available commands
      memcpy -- Copy from file to memory
     memdump -- Dump memory
      memory -- Present memory heap utilization information
       mkdir -- Create dir(s)
        more -- Concatenate (display) file(s)
        nand -- nand utility - check bad blocks
      rename -- Rename a file
       reset -- Reset the system
       rmdir -- Delete empty dir(s)
         set -- Set or display environment variables
       sleep -- Pause (sleep) for a specified number of seconds
        type -- Concatenate (type) file(s)
       unset -- Unset one or more environment variables
 -- MORE --
     version -- Display boot loader version

switch: dir

List of filesystems currently registered:

              xmodem[0]: (read-only)
                null[1]: (read-write)
                vmap[3]: (read-only)
                  bs[4]: (read-only)
                 bsg[5]: (read-only)
               flash[11]: (read-write)


switch:

 

 

that may because of new OS. you can skip that and try 

switch: dir flash:

also, you may need to upload matching OS to switch. first download the OS file from cisco downloads and prepare it for uploading, can use Flash drive (which is easier)

 

Please rate this and mark as solution/answer, if this resolved your issue
Good luck
KB

aerrpunkt
Level 1
Level 1

Thank you Kasun Bandara, really helped me out - appreciate that!

I was able to regain access to the switch. Afterwards i updated the firmware using this manual:

 

Log into the switch through the console port or a Telnet session.

(Optional) Ensure that you have IP connectivity to the TFTP server by entering this privileged EXEC command:

Switch# ping tftp-server-address
For more information about assigning an IP address and default gateway to the switch, see Table 3.

Download the image file from the TFTP server to the switch.

If you are installing the same version of software that currently exists on the switch, overwrite the current image by entering this privileged EXEC command:

Switch# archive download-sw /overwrite /reload tftp://location /directory /image-name.tar
The command above untars/unzips the file.The system prompts you when it completes successfully.

The /overwrite option overwrites the software image in flash memory with the downloaded one.

If you specify the command without the /overwrite option, the download algorithm verifies that the new image is not the same as the one on the switch Flash device. If the images are the same, the download does not occur. If the images are different, the old image is deleted, and the new one is downloaded. If there is not enough space to install the new image and keep the current running image, the download process stops, and an error message displays.

The /reload option reloads the system after downloading the image unless the configuration has been changed and not saved.

For // location, specify the IP address of the TFTP server. or hostname.

For /directory/image-name.tar, specify the directory and the image to download. Directory and image names are case sensitive. The directory is for file organization and it is generally a tftpboot/user-ID path.

This example shows how to download an image from a TFTP server at 198.30.20.19 and to overwrite the image on the switch:

Switch# archive download-sw /overwrite tftp://198.30.20.19/image-name.tar
You can also download the image file from the TFTP server to the switch and keep the current image by replacing the /overwrite option with the /leave-old-sw option. If there is not enough space to install the new image and keep the current running image, the download process stops, and an error message displays.

 

to restore the HTML Directory.

One little issue I haven't fixed yet is that the WebUI shows some strange header, but the switch is operating normally

 

{{productOwner}} {{platform}} {{deviceDescription}}
{{version}}{{'com_welcome' | translate}} {{userName}} 

 

 

 

Review Cisco Networking for a $25 gift card