cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
30787
Views
32
Helpful
15
Replies

Recovering Catalyst Switches from a Corrupted or Missing Image

Aris Pipis
Level 1
Level 1

Hi all,

I have wiped out the IOS of a 2950 Series Swich:

When the switch boots i get the follwoing output:

Parameter Block Filesystem (pb:) installed, fsid: 4

Loading ""...: permission denied

Error loading ""

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:

The "permission denied" message in my understanding implies that i cannot use a tftp server to install a new ios on the switch so i have to go through the xmodem file transfer.

However the procedure keep fails with the same message:


Begin the Xmodem or Xmodem-1K transfer now...

CCCCCBB0........................................................................

..............................................intel_28fxxx_write_bytes: flash bu

sy error

flashfs[0]: writing to flash handle 0x80c5eff0, device 0, offset 0x740000, lengt

h 0x208: Operation Failed

flashfs[0]: sector ptr: {0x37, 0x0}

flashfs[0]: filesystem marked down.  Use "fsck" to recover.

flash:c2950-i6q4l2-mz.121-22.EA14.bin: I/O error

I perform the fsck flash: command and re try.  I get the same error. 

Then i tried with a different ios (c2950-i6q4l2-mz.121-22.EA9.bin).  Nothing changed.

I have hit a deadlock, could you please help me on how to proceed?

Below i list some info about the switch and the IOS am trying to send:

Swicth:           WS-C2950-24

IOS:           c2950-i6q4l2-mz.121-22.EA14.bin

As a guide i have used the following document:

http://www.cisco.com/en/US/products/hw/switches/ps628/products_tech_note09186a0080169696.shtml

Thank you for your time.

Aris

15 Replies 15

Hello leolaohoo

I turned on the switch and I posted the dir flash:

As you can see I had some issues that lead me to format the flash (for one more time)

I was surprised to notice that this time the format worked! I have been unsuccessfully trying to format the flash the previews week.

Then I decided to send the file again and this time it was successfully send. The switch now is ok

below is the console output:


C2950 Boot Loader (C2950-HBOOT-M) Version 12.1(11r)EA1, RELEASE SOFTWARE (fc1)

Compiled Mon 22-Jul-02 17:18 by antonino

WS-C2950-24 starting...

Base ethernet MAC Address: 00:19:2f:fb:79:00

Xmodem file system is available.

Initializing Flash...

flashfs[0]: sector 4, block 55 checksum (0xca34 != 0xe2f0)

intel_28fxxx_write_bytes: flash busy error

flashfs[0]: writing to flash handle 0x80c5eff0, device 0, offset 0x740000, lengt

h 0x208: Operation Failed

flashfs[0]: sector ptr: {0x37, 0x4}

...done initializing flash.

Boot Sector Filesystem (bs:) installed, fsid: 3

Parameter Block Filesystem (pb:) installed, fsid: 4

The system has been interrupted, or encountered an error

during initializion of the flash filesystem.  The following

commands will initialize the flash filesystem, and finish

loading the operating system software:

    flash_init

    load_helper

    boot

switch: flash_init

Initializing Flash...

flashfs[0]: sector 4, block 55 checksum (0xca34 != 0xe2f0)

flashfs[0]: sector 12, block 55 checksum (0xca34 != 0xe2f0)

intel_28fxxx_write_bytes: flash busy error

flashfs[0]: writing to flash handle 0x80c5eff0, device 0, offset 0x740000, lengt

h 0x208: Operation Failed

flashfs[0]: sector ptr: {0x37, 0xc}

...done initializing flash.

switch: load_helper

switch: boot

Loading ""...: permission denied

Error loading ""

Interrupt within 5 seconds to abort boot process.

Boot process failed...

switch: dir flash:

unable to stat flash:/: invalid argument

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

  flash_init -- Initialize flash filesystem(s)

      format -- Format a filesystem

        fsck -- Check filesystem consistency

        help -- Present list of available commands

load_helper -- Load and initialize a helper image

      memory -- Present memory heap utilization information

       mkdir -- Create dir(s)

        more -- Concatenate (display) file(s)

      rename -- Rename a file

       reset -- Reset the system

       rmdir -- Delete empty dir(s)

         set -- Set or display environment variables

   set_param -- Set system parameters in flash

        trap -- Cause a software breakpoint to occur

        type -- Concatenate (type) file(s)

-- MORE --

       unset -- Unset one or more environment variables

     version -- Display boot loader version

switch: format flash:

Are you sure you want to format "flash:" (all data will be lost) (y/n)?y

intel_28fxxx_write_bytes: flash busy error

flashfs[0]: writing to flash handle 0x80c5eff0, device 0, offset 0x740000, lengt

h: 0x20: Operation Failed

flashfs[0]: filesystem marked down.  Use "fsck" to recover.

Filesystem "flash:" not formatted -- I/O error

switch: fsck flash:

Are you sure you want to fsck "flash:" (could take some time) (y/n)?y

flashfs[0]: 0 files, 1 directories

flashfs[0]: 0 orphaned files, 0 orphaned directories

flashfs[0]: Total bytes: 7741440

flashfs[0]: Bytes used: 1024

flashfs[0]: Bytes available: 7740416

flashfs[0]: flashfs fsck took 4 seconds.

switch: dir flash:

Directory of flash:/

7740416 bytes available (1024 bytes used)

switch: copy xmodem: flash:c2950-i6q4l2-mz.121-22.EA14.bin

Begin the Xmodem or Xmodem-1K transfer now...

CCCCCCC..............................intel_28fxxx_write_bytes: flash busy error

flashfs[0]: writing to flash handle 0x80c5eff0, device 0, offset 0x740000, lengt

h: 0x20: Operation Failed

................................................................................

................................................................................

................................................................................

................................................................................

................................................................................

................................................................................

................................................................................

................................................................................

................................................................................

................................................................................

...............................................................................

File "xmodem:" successfully copied to "flash:c2950-i6q4l2-mz.121-22.EA14.bin"

switch: boot flash:c2950-i6q4l2-mz.121-22.EA14.bin

Loading "flash:c2950-i6q4l2-mz.121-22.EA14.bin"...##############################

################################################################################

################################################################################

#################################

Review Cisco Networking for a $25 gift card