- Preface
- Overview of the Hardware and Software
- Setup for Initial Configuration
- Cisco IOS CLI for Initial Configuration
- Basic Router Configuration
- Configuring Backup Data Lines and Remote Management
- Upgrading the Cisco IOS Software
- Using CompactFlash Memory Cards
- Using ROM Monitor
- Changing the Configuration Register Settings
- Index
Using CompactFlash Memory
First Published: May 27, 2010, OL-20356-01
Last Updated: October 25, 2017
The Cisco Connected Grid Router 2010 uses Advanced Capability CF external memory to store the system image, configuration files, and some software data files. CF supports true integrated development environment mode and multi-word direct memory access mode.
This document explains how to manage directories and files on the CF in the following sections:
Requirements and Restrictions
- Only Advanced Capability CF purchased from Cisco operate in the Cisco CGR 2010 router.
- Legacy CF will not operate in Cisco CGR 2010 router. When legacy CF is inserted, the following error message appears:
- Only Class C file systems are supported on Cisco PCMCIA CompactFlash (CF).
- We recommend that you format new CF to initialize a new flash file system. Proper formatting lets the ROM monitor recognize and boot the flash memory. The CF can be formatted on a router, and files can be 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.
- 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.
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.
Table 1 Compact Flash Slot Numbering and Naming
|
|
|
|
|
|---|---|---|---|
Slot01 |
|||
|
1.Slot 0 is the default CF slot. CF in slot0 can store system image, configuration, and data files. CF must be present in this slot for the router to boot and perform normal file operations. |
Online Insertion and Removal
Online insertion and removal (OIR) is a feature that allows you to replace CompactFlash 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 router’s Hardware Installation Guide.
Formatting CompactFlash Memory as a Class C File System
Use the format flash: 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 flash.
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 in CF memory, enter the dir flash: 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 CF Platform Support Status and Errors
To display the platform support status of the CF memory, enter the show platform cf command in privileged EXEC mode.
To display platform error status, enter the show platform error command in privileged EXEC mode.
Displaying File Content
To display the content of a file that is stored in flash memory, enter the more flash: 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 flash: 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 flash: 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 flash: 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 or cd usbflash1, 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:
Creating a New Directory
To create a directory in flash memory, enter the mkdir flash: 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 flash: 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.
Feedback