Cisco Systems 12410 Recovering from Locked Blocks in Flash Memory Cards, Milo# configure terminal

Page 62

Chapter 4 System Startup and Basic System Configuration

Using RP Flash Memory Cards

Booting a New Cisco IOS Software Image from a Flash Memory Card

Use the following procedure to boot a new image from a flash memory card in slot 0 or slot 1 (this example uses slot 0).

Step 1 Insert the flash memory card with the new image in slot 0.

Step 2 Enter the following commands to designate the file named image.new as the new default system image for boot purposes:

Milo# configure terminal

Milo(config)# no boot system

Milo(config)# boot system flash slot0:image.new

Ctrl-Z

Milo# copy running-config startup-config

Milo# reload

When the system reloads, it boots the image.new file from the memory card in slot 0.

Recovering from Locked Blocks in Flash Memory Cards

When power is lost or the card is removed from its slot during a write or erase operation, a locked block in flash memory cards occurs.

When a block of flash memory is locked, you cannot write to it or erase it. The only way to recover from locked blocks is to reformat the flash memory card using the format command (see the “Formatting a New Flash Memory Card” section on page 4-47).

Caution Formatting a flash memory card erases all existing data on the card.

 

Cisco 12010, Cisco 12410, and Cisco 12810 Router Installation and Configuration Guide

4-62

OL-11496-01

Image 62
Contents System Startup and Basic System Configuration Preconfiguration Requirements Sources of Cisco IOS SoftwareBoot Process Overview Powering On the Router and Observing the Boot Process Processor LED Display1 Meaning SourceLED Display Meaning Source PRIMII Meaning Source Line Card Alphanumeric LED Displays-Partial View ShownRomi OL-11496-01 Manually Booting the System Locating a Valid Cisco IOS Software Image Booting from the Cisco IOS Software ImageDir bootflash Dir slot0Command Purpose Boot flashConfiguring the Router Cisco IOS User Interface Command Modes Cisco IOS User InterfaceUser Exec Mode Privileged Exec ModeGlobal Configuration Mode Interface Configuration ModeUsing Setup for Configuration Changes Subinterface Configuration ModeMay enter a question mark ? for help SDCC1/0 No ip routing Configuring Global Parameters Using the Setup Facility Configuring Host Name Configuring Network Interfaces Configuring ProtocolsConfiguring Line Card Interfaces Milo# show version Using Global Configuration Mode Enter the enable command and password if promptedMilo# copy running-config startup-config Verifying Running Configuration File SettingsMilo# configure terminal Router# show running-configSaving the Running Configuration Settings to Nvram Viewing the Running Configuration Settings Configuring the Software Configuration Register Bit Number Hexadecimal Value Meaning/Function Setting Software Configuration Settings Boot FieldCiscobootfieldvalue-processorname Changing Software Configuration Register Settings Reboot the system Miloconfig# config-register 0xvalueLow-Order Bits in the Software Configuration Register Action/Filename Bit High-Order Bits in the Software Configuration Register Bit Address net host9600 Recovering a Lost Password Rommon 1 config-registerEnter the initialize command to initialize the router Milo# show startup-config Using RP Flash Memory Cards Installing and Removing a Flash Memory CardOL-11496-01 Installing and Removing a Flash Memory Card Formatting a New Flash Memory Card Milo# format slot0Specifying a Cisco IOS Software Image to Boot the System Cd Command Flash Memory CommandsPwd Command Milo# dir slot0 Dir CommandDelete Command Squeeze Command Milo# squeeze slot0Copying Image Files to or From Flash Memory Booting from Flash MemoryMiloconfig# boot system flash slot0myfile1 Milo# copy tftpfilename bootflashslot0slot1 filename Milo# copy tftpmyfile1 slot0myfile1Copying a Cisco IOS Software Image into a Flash Memory Card Milo# copy tftpnew.image slot0new.image Copying Cisco IOS Software Images Between Flash Memory Cards Milo# copy slot1image.new slot0image.newMilo# configure terminal Milo# show bootvar Copy startup-config slot0 slot1 filenameMilo# copy startup-config slot0myfile2 Copy running-config slot0slot1filename Milo# copy running-config slot0myfile2Milo# copy startup-config running-config Copy slot0slot1filename startup-configMilo# copy slot0myfile startup-config Recovering from Locked Blocks in Flash Memory Cards Post-Installation Procedures OL-11496-01