- Preface
- Overview of the Hardware and Software
- Basic Router Configuration
- Configuring Ethernet CFM and Y.1731 Performance Monitoring on Layer 3 Interfaces
- Configuring Ethernet Virtual Connection Bridge Domain
- Configuring EtherChannel
- Configuring Backup Data Lines and Remote Management
- Configuring Power Efficiency Management
- Configuring Security Features
- Configuring Identity Features on Layer 3 Interface
- Unified Communications on Cisco Integrated Services Routers
- Configuring Next-Generation High-Density PVDM3 Modules
- Multi-Gigabit Fabric on the Router
- Upgrading the Cisco IOS Software
- Wireless Overview
- Configuring the Wireless Device
- Configuring the Radio
- Administering the Wireless Device
- Cisco IOS CLI for Initial Configuration
- Using CompactFlash Memory Cards
- Using ROM Monitor
- Changing the Configuration Register Settings
Using CompactFlash Memory Cards
Cisco 3900 Series, 2900 Series, and 1900 Series Integrated Services Routers (ISR) use Advanced Capability CompactFlash (CF) external memory to store the system image, configuration files, and some software data files. CF supports True IDE mode and Multi-Word DMA mode.
The following sections explain how to manage directories and files on the CF:
Requirements and Restrictions
- Only Advanced Capability CF purchased from Cisco operate in Cisco 3900 Series, 2900 Series, and 1900 Series Integrated Services Routers.
- Legacy CF will not operate in Cisco 3900 Series, 2900 Series, and 1900 Series Integrated Services Routers. When legacy CF is inserted, the following error message appears:
- Only Class C file systems are supported on Cisco Compact Flash (CF).
- We recommend that you format new CF to initialize a new flash file system. Proper formatting lets ROM monitor recognize and boot the flash memory. The CF can be formatted on an ISR, and files copied to or from any PC that is equipped with a CF memory reader. If you use a PC to format the CF, use the Microsoft File Allocation Table (FAT32) file system.
- Cisco 3900 series, 2900 series, and 1900 series ISRs have 2 external CF slots.
- CF in Slot0 can store the system image, configuration, and data files. The CF must be present in this slot for the router to boot and perform normal file operations.
|
|
|
---|---|---|
Slot02 |
||
Online Insertion and Removal
Online insertion and removal (OIR) is a feature that allows you to replace CF memory cards without turning off the router and without affecting the operation of other interfaces. OIR of CF memory cards provides uninterrupted operation to network users, maintains routing information, and ensures session preservation.
For instructions on inserting, removing, and replacing the external CF memory card, see the hardware installation guide for your router.
How to Format CompactFlash Memory Cards
This section contains the following procedures:
- Determining the File System on a CompactFlash Memory Card
- Formatting CompactFlash Memory as a Class C File System
Determining the File System on a CompactFlash Memory Card
To determine the file system of a CF memory card, enter the show flash: all command in privileged EXEC mode.
- If geometry and format information does not appear in the output, the card is formatted with a Class B flash file system. Class B files systems are not supported on CF inserted in Cisco 3900 Series, 2900 Series, and 1900 Series Integrated Services Routers.
- If geometry and format information appears in the output, the card is formatted with a Class C flash file system.
The following examples show sample outputs for Class B and Class C flash file systems.
Note Use flash1: in the command syntax to access CF in slot1. Use flash0: in the command syntax to access CF in slot0.
External Card with Class B Flash File System: Example
The geometry and format information does not appear.
External Card with Class C Flash File System: Example
The geometry and format information is displayed in this format.
Formatting CompactFlash Memory as a Class C File System
Use the format flash0: command in privileged EXEC mode to:
- Format CF memory cards with a Class C flash file system
- Remove the files from a CF memory card previously formatted with a Class C flash file system
Note Use flash1: in the command syntax to access CF in slot 1. Use flash0: in the command syntax to access CF in slot 0.
Formatting CompactFlash Memory as a Class C Flash File System: Example
File Operations on CompactFlash Memory Cards
This section describes the following file operations for external CF memory cards:
- Copying Files
- Displaying Files
- Displaying File Content
- Displaying Geometry and Format Information
- Deleting Files
- Renaming Files
Copying Files
To copy files, enter the copy command in privileged EXEC mode. To indicate a file that is stored in a CF memory card, precede the filename with flash1: or flash0:.
Note Use flash1: in the command syntax to access CF in slot 1. Use flash0: in the command syntax to access CF in slot 0.
In the following example, the file my-config1 on the CF memory card is copied into the startup-config file in the system memory:
In the following example, the file my-config2 on the CF memory card is copied into the running-config file in the system memory:
Displaying Files
To display a list of files on a CF memory card, enter the dir flash0: command in privileged EXEC mode.
Note Use flash1: in the command syntax to access CF in slot 1. Use flash0: in the command syntax to access CF in slot 0.
Displaying File Content
To display the content of a file that is stored in flash memory, enter the more flash0: command in privileged EXEC mode:
Note Use flash1: in the command syntax to access CF in slot 1. Use flash0: in the command syntax to access CF in slot 0.
Displaying Geometry and Format Information
To display the geometry and format information of a CF flash file system, enter the show flash0: filesys command in privileged EXEC mode.
Note Use flash1: in the command syntax to access CF in slot 1. Use flash0: in the command syntax to access CF in slot 0.
Deleting Files
To delete a file from a CF memory card, enter the delete flash0: command.
Note Use flash1: in the command syntax to access CF in slot 1. Use flash0: in the command syntax to access CF in slot 0.
Note The dir flash0: command does not display deleted files and files with errors.
Renaming Files
To rename a file on a CF memory card, enter the rename command in privileged EXEC mode.
Note Use flash1: in the command syntax to access CF in slot 1. Use flash0: in the command syntax to access CF in slot 0.
Directory Operations on a CompactFlash Memory Card
The following sections describe directory operations for external CF memory cards on Cisco routers:
- Entering a Directory and Determining Which Directory You Are In
- Creating a New Directory
- Removing a Directory
Entering a Directory and Determining Which Directory You Are In
To enter a directory of a CF memory card, enter the cd command in privileged EXEC mode. The cd command specifies or changes the default directory or file system. If you enter cd only, without specifying a file system, the router enters the default home directory, which is flash0. If you enter cd flash1:, the router enters the flash1 directory.
To determine which directory you are in, enter the pwd command in privileged EXEC mode. The CLI displays which directory or file system is specified as the default by the cd command.
To display a list of files in the directory that you are in, enter the dir command in privileged EXEC mode. The command-line interface will display the files in the file system that was specified as the default by the cd command.
To enter the /config directory:
To verify that you are in the /config directory:
Creating a New Directory
To create a directory in flash memory, enter the mkdir flash0: command in privileged EXEC mode.
Note Use flash1: in the command syntax to access CF in slot 1. Use flash0: in the command syntax to access CF in slot 0.
Creating a New Directory: Example
In the following example, a new directory named “config” is created; then a new subdirectory named “test-config” is created within the “config” directory.
Removing a Directory
To remove a directory in flash memory, enter the rmdir flash0: command in privileged EXEC mode.
Before you can remove a directory, you must remove all files and subdirectories from the directory.
Note Use flash1: in the command syntax to access CF in slot 1. Use flash0: in the command syntax to access CF in slot 0.
In the following example, the subdirectory test-config is removed.