The "device does not contain a valid magic number" error message displays on a Cisco Catalyst 6500 Series Switch when it is reloaded after an upgrade or during conversion.

Document

Wed, 07/22/2009 - 19:26
Jun 22nd, 2009
User Badges:
  • Gold, 750 points or more

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

Loading.

Actions

This Document

Related Content