cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
26449
Views
0
Helpful
0
Comments
TCC_2
Level 10
Level 10

Core issue

The switch reports the device does not contain a valid magic number error message and fails to load the Cisco IOS  Software image. The issue is caused by a corrupted file system on the device from which the CPU tries to load the Cisco IOS Software image.

Also when you enter the dir disk0: or dir slot0: commands, an unformatted Flash PC card returns a bad device block info or invalid magic number error message. For details on Flash cards, refer to the Supervisor Engine Flash PC Cards section of Catalyst 6000 Family Flash Card Installation Note.

Resolution

In order to resolve the issue, perform these steps:

  1. Go to ROM Monitor (ROMmon) mode.

  2. Manually boot the image using bootflash.

  3. Check whether the size of the image in slot0 is the same as the image size downloaded from the TFTP server.

  4. If the image size is the same, format the slot0 or disk0 and download a new image from the TFTP server by issuing the copy command.

  5. Check whether the image has been downloaded directly from TFTP to slot 0 or downloaded to an ATA card and then copied from ATA cards to slot 0. If the image has been downloaded directly to the ATA cards, format the ATA cards before downloading the image from the TFTP server.

As an alternative, perform these steps:

  1. Download the software again, and copy it to the Flash card.

  2. Copy the software from the Flash card of another switch within the same series.

For additional information on how to format or erase files from Flash permanently, refer to article How to format or erase files from Flash and NVRAM permanently.

Error message

device does not contain a valid magic number

Getting Started

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:

Review Cisco Networking for a $25 gift card