Cisco Systems 2691 Directory Operations for Class C Flash File System, Create a new directory

Page 29

March 2002

File and Directory Procedures

Directory Operations for Class C Flash File System

Create a new directory

To create a directory in CompactFlash memory, use the mkdir {flash: slot0:} command.

The following example shows output for first displaying the contents of an internal CompactFlash card, and then creating a directory named config and a subdirectory named test-config:

Router# dir flash:

Directory of flash:/

3 -rw-

6458208

Mar 01 1993 00:04:08 c3725-i-mz.tmp

128094208 bytes total (121634816 bytes free) Router# mkdir flash:/config

Create directory filename [config]?

Created dir flash:/config

Router# mkdir flash:/config/test-config

Create directory filename [/config/test-config]?

Created dir flash:/config/test-config

Router# dir flash:

Directory of flash:/

3

-rw-

6458208

 

Mar 01 1993 00:04:08

c3725-i-mz.tmp

1580

drw-

0

Mar 01

1993 23:48:36

config

128094208

bytes total

(121626624

bytes free)

 

Router# cd flash:/config

 

 

 

Router# dir flash:

 

 

 

 

Directory of flash:/config/

 

 

1581

drw-

0

Mar 01

1993 23:50:08

test-config

128094208

bytes total

(121626624

bytes free)

 

Remove a directory

To remove a directory from CompactFlash memory, use the rmdir {flash: slot0:} command.

Before you can remove a directory, all files and subdirectories must be removed from the directory.

The following example shows output for displaying the contents of an internal CompactFlash card, then removing the subdirectory named test-config:

Router# dir flash:

Directory of flash:/config/

1581 drw-

0

Mar 01 1993 23:50:08 test-config

128094208 bytes total (121626624 bytes free) Router# rmdir flash:/config/test-config

Remove directory filename [/config/test-config]?

Delete flash:/config/test-config? [confirm]

Removed dir flash:/config/test-config

Router# dir flash:

Directory of flash:/config/

Installing and Formatting Cisco 2691, Cisco 3631 and Cisco 3700 CompactFlash Memory Cards

 

78-13892-03

29

 

 

 

Image 29
Contents This document contains the following sections Tools and Equipment Needed Preventing Electrostatic Discharge DamageExternal CompactFlash Slot Location in a Cisco 2691 Router Removing a CompactFlash Memory Card from an External Slot Installing a CompactFlash Memory Card in an External SlotInternal CompactFlash Memory Card Location in a Cisco Compact Flash Memory card Removing a Plug-in CPU/Mainboard Removing the Front Panel from a Cisco 3745 Router Removing the CPU/Mainboard from a Cisco 3745 Router Removing the Chassis CoverPage Lift cover Slide cover 62483 Removing an Internal CompactFlash Memory Card Reinstalling a Plug-in CPU/Mainboard Installing an Internal CompactFlash Memory CardInserting Plug-in CPU/Mainboard into a Cisco 3745 Chassis Chassis. See , , or Figure Reinstalling the Cover on a Cisco RouterInsert tabs and slide cover Close cover 62491 Safety Information document that accompanied this device Power on the routerFormatting Procedures Formatting Procedures for CompactFlash Memory CardsDetermining the File System on a CompactFlash Memory Card Router#show slot0 allRouter#show flash all Router#show slot0allRouter# show flash all Router# format flash Formatting CompactFlash Memory as a Class C File SystemRouter# erase slot0 Router# copy flashmy-config1 startup-config File and Directory ProceduresOperations for Use With Class B Flash File System Copy filesDelete files from CompactFlash memory Display the contents of a CompactFlash memory cardRouter# more slot0c3725-i-mz Display file contentRouter# squeeze slot0 Router# copy slot0c3725-i-mz.tmp flash Operations for Use with Class C Flash File SystemFile Operations for Class C Flash File System Router# delete flashc3725-i-mz.tmp Display geometry and format informationRouter# show slot0 filesys Router# more flashc3725-i-mz.tmp Rename a fileDirectory Operations for Class C Flash File System Router# mkdir flash/config/test-configCreate a new directory Remove a directoryEnter a directory and determine which directory you are World Wide Web Obtaining DocumentationDocumentation CD-ROM Ordering DocumentationObtaining Technical Assistance Contacting TAC by Using the Cisco TAC WebsiteCisco.com Technical Assistance CenterContacting TAC by Telephone
Related manuals
Manual 28 pages 13.71 Kb