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 Cisco 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
February 2010
January 2010
December 2009
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 Clear Path to 100Gigabit Ethernet on the Alcatel-Lucent Service Router Portfolio
Allan Sulkin - founder and president of enterprise communications systems and applications consultancy - TEQConsult Group
Careers
Chambers and his Board of Dirctors urged Cisco shareholders to vote NO
China networking marketplace
Christian Brothers Investment Services notice
Cisco
Cisco F1Q10 earnings call
Cisco TelePresence
Cisco TelePresence revenue
Cisco engineer - Kevin Murphy
Cisco first quarter net product sales in emerging markets by fiscal year
Cisco has now become the target of unflattering employee reviews
Cisco is well known as being one of the best companies to work for
Cisco responds to the Dell’Oro Group Router Report 3Q09
Cisco stock chart for the last 10 years
Cisco's 1st Quarter Other Product Revenue By Fiscal Year
Cisco's F1Q10 earnings call
Cisco's Form 10-Q
Cisco's new Stock Incentive Plan as amended and restated
Cisco's upcoming annual stockholder's meeting
Data Center
Dave Donatelli - HP executive vice president and general manager of enterprise servers and networking
Dell’Oro Group's 3Q09 vs. 3Q08 SP Edge Router Revenue Market Shares
Did Cisco take its eye off the ball in emerging markets
Do you think Cisco can effectively compete against Huawei
FNF
Financial windfall for Cisco shareholders
Flexible NetFlow
Flip video camcorder
Flip video camcorder revenue
Gilbert Public School's $3.5 million network upgrade to HP
Gilbert Public Schools Board President - Thad Stump
Gilbert Public Schools assistant superintendent - Barb VeNard
Glassdoor.com is financially backed by 2 of the leading Silicon Valley venture capital firms - Benchmark Capital and Sutter Hill Ventures
HP also bid on the project
HP purchasing 3Com
HP's Converged Infrastructure strategy
HP's acquisition of 3Com
Huawei
John Chambers has had some good paydays as the CEO of Cisco
LANs / WANs
NBAD
NetFlow
NetFlow add-ons
Network Behavior Anomaly Detection
Network Management
Popular online career and workplace community - Glassdoor.com
ProCurve ONE alliance
Proposal submitted by Christian Brothers Investment Services
Proxy resolution during Cisco's annual meeting
SMB
Say on executive pay
Security
So how does one verify that Glassdoor's information is really from Cisco employees?
Software
Superintendent Dave Allison
TelePresence revenue
VoIP / Convergence
When Cisco used its common stock to buy Linksys and Pure Digital
Who's right about Cisco's work environment - Fortune or Glassdoor?
Wireless / Mobile
On The Web
Twitter