Skip Links

Network World

Brad Reese

How to format and erase Flash in a Cisco router

By Brad Reese on Tue, 04/29/08 - 6:33am.

Cisco How-To Tutorials

Before you can use a new Flash memory card, you must format it.

Different commands are required to format and erase Flash memory depending on the type of filesystem running on the router.

Class A and Class C filesystems issue the format command.

Class B filesystems issue the erase command.

This is the Class A filesystem:

Cisco 12000 Series Internet Router
Cisco 7000 Route Switch Processor (RSP)
Catalyst 8500 Switch Route Processor (SRP)
Cisco 7500 Series RSPs (RSP 2, RSP 4, RSP 8)
Cisco 6400 Universal Access Concentrator (UAC)
Catalyst 5000 and 5500 Route Switch Module (RSM)
Multiservice Switch Route Processor (MSRP) for LightStream 1010
ATM switch and processor for LightStream 1010 and Catalyst 5000 and 5500

This is the Class B filesystem:

Cisco 1000 series routers

Cisco 1600 series routers:

The 1600 series router has a single PC card that contains Flash memory.

The 1601 to 1604 run from Flash.

If you remove the PC card when the router is running, the router halts.

The 1601R to 1605R run from RAM.

If you remove the PC card, the router does not load the Cisco IOS Software image during the next bootup.

In the 1600 series, you cannot delete the running image file or any other file unless it is in a different partition.


Cisco 3600 series routers:

The 3600 series routers traditionally uses a Class B filesystem.

However, with the addition of crash information file support in Cisco IOS Software version 12.2(4)T, the 3600 needs the ability to delete individual files.

Consequently, the 3600 series routers with Cisco IOS Software version 12.2T and later utilize commands from Class B filesystems as well as commands from Class C filesystems.

To activate the Class C filesystem commands on the 3600 with Cisco IOS Software Release 12.2T, issue the erase command to completely remove all files from the Flash filesystem.

When the Flash is empty, issue the squeeze command against it to create a squeeze log.

At this point, the 3600 Flash system issues the delete and squeeze commands like a Class C filesystem.


This is the Class C filesystem:

AS5800 Dial Shelf Controller (DSC)
Catalyst 5000 and 5500 Supervisor III Module
Catalyst 6000 and 6500 Supervisor Engine I
Catalyst 6000 and 6500 Supervisor Engine II
Cisco 7000 Route Processor
Cisco 7100 series routers
Cisco uBR7100 series routers
Cisco 7200 Series Network Processing Engine
Cisco uBR7200 series routers
Cisco 7200VXR Series Network Services Engine 1
Cisco 7600 Series Internet Routers
Cisco 10000 series routers (Edge Services Router (ESR))
Cisco uBR10000 series routers

To remove the files from a compact Flash memory card previously formatted with a Class B Flash filesystem, perform one of these procedures:

For external compact Flash memory cards, issue the erase slot0: command.
For internal compact Flash memory cards, issue the erase flash: command.

To format an external compact Flash memory card with a Class B Flash filesystem, refer to this sample output:

Router# erase slot0:

Erasing the slot0 filesystem will remove all files! Continue? [confirm]
Current DOS File System flash card in slot0: will be formatted into Low
End File System flash card! Continue? [confirm]
Erasing device...
eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
eeeeeeeeeeeeeeeeee
...erased
Erase of slot0: complete


To remove the files from a compact Flash memory card previously formatted with a Class A or Class C Flash filesystem, perform one of these procedures:

For external compact Flash memory cards, issue the format slot0: command.
For internal compact Flash memory cards, issue the format flash: command.

To format an internal compact Flash memory card with a Class A or Class C Flash filesystem, refer to this sample output:

Router# format flash:

Format operation may take a while. Continue? [confirm]
Format operation will destroy all data in "flash:". Continue? [confirm]
Enter volume ID (up to 64 chars)[default flash]:
Current Low End File System flash card in flash will be formatted into DOS
File System flash card! Continue? [confirm]
Format:Drive communication & 1st Sector Write OK...
Writing Monlib sectors ............................
Monlib write complete
..
Format:All system sectors written. OK...

Format:Total sectors in formatted partition:250592
Format:Total bytes in formatted partition:128303104
Format:Operation completed successfully.

Format of flash complete

For more information you may wish to refer to:

Cisco PCMCIA Filesystem Compatibility Matrix and Filesystem Information


View more Cisco How-To Tutorials

Contact Brad Reese
http://www.BradReese.Com

Brad's Top 5 Story Picks
# 1. Cisco skills shortage is baloney, expert says
# 2. Q & A with the ex-Cisco star who joined ethernet fabric switching startup, Woven Systems
# 3. Earth Day message from BradReese.Com
# 4. Vyatta: Cisco's product line remains locked up tighter than Fort Knox
# 5. Help on the way for SMB telephony reseller margins being squeezed to death by Cisco
Story Archives Brad Reese on Cisco Story Archives

Cisco Repair

Cisco Resumes

Cisco Power Supplies

2008 Cisco Salary Rates

  

Difference btw erase and format.

0

I erased the flash on my router and was not able to create a folder on flash. MKDIR command was not accepting as the file system wouldnt accept mkdir command. A google search brought me to this site where I learnt the difference between ERASE and FORMAT. After formatting the flash I was able to create folders and the copying process was much faster. Many thanks for the article.

Cheers,

Kiran

You're Welcome

0

You're welcome Kiran.

Glad this was helpful to you.

Sincerely,

Brad Reese
BradReese.Com Cisco Refurbished

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Welcome, visitor. Register Log in
About Brad Reese on Cisco

Brad Reese cofounded BradReese.Com Cisco Refurbished, which enables affordable networks globally by assuring customer satisfaction with guaranteed one year warranties on both Cisco Repair as well as Refurbished Cisco.

Don't be shy, contact Brad Reese online or call him Toll Free:

866-864-0506

International callers may wish to call Brad by dialing:

850-364-4115

Archives
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
Categories
A classic scam to defraud Cisco's SMARTnet program
America's Best profile written by Useem regarding Chambers' success
Avian Securities Senior Telecom Research Analyst - Catharine Trebnick
Breakingviews.com correspondent - Robert Cyran
CCIE
Careers
Charlie Giancarlo - Managing Director of Silver Lake Partners and Skype investor
Cisco
Cisco ASR 9000 architecture
Cisco ISR G2 Module Support
Cisco Integrated Services Router Generation 2 (ISR G2) Model Comparison
Cisco Integrated Services Routers Generation 2 Portfolio
Cisco Unified Communications Support for Microsoft Windows 7
Cisco is pushing their ASR 9000 at very competitive prices
Cisco is warning Unified Communications customers about NOT successfully offering support for Microsoft Windows 7
Cisco technical star Jonathan Rosenberg
Cisco will have no liability for any delay in delivery
Data Center
Douglas Smith - Cofounder and President of Network Instruments
Expand visibility of NetFlow-dependent NBAD and compliance applications
GigaStor captures and converts packets in NetFlow data flows
Index Venture partner Danny Rimer
Jonathan Rosenberg - a Cisco Fellow in Cisco's Voice Technology Group
Juniper MX960 lab test results
LANs / WANs
Mark Roberts - Polycom vice president of partner marketing
Michael Useem - Professor of Management
Microsoft
NetFlow
NetFlow add-ons
NetFlow overhead can overtax infrastructure
Network Behavior Anomaly Detection (NBAD)
Network Management
Non-NetFlow capable devices are blind to local traffic
Produce NetFlow about any device
SMB
Security
Selection committee member for America's Best Leaders
September 2009 vs. October 2009 Worldwide CCIE Count Comparison
Silver Lake Managing Director - Egon Durban
Skype's cofounders Niklas Zennstrom and Janus Friis
Software
The Charlie angle is to keep Dave Roux on track
The new Cisco ISR G2 portfolio is priced as follows
VoIP / Convergence
What are the benefits of GigaStor NetFlow Agent?
What’s new on the Cisco ISR G2 models vs. the old ISR models?
Windows 7
Windows 7 just not worth an all-out urgent effort by Cisco to support
Wireless / Mobile
eBay CEO - John Donahoe
sFlow
sFlow and NetFlow provides extended visibility
On The Web
Twitter