cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
4268
Views
4
Helpful
9
Replies

Flash space not free after format

Florin Barhala
Level 6
Level 6

Hello,

I just received a 1812 model unit flash memory C class.

I cannot free the space from CF; after format, I receive the same amount of space:

Cisco-1812-II#show flash:

14450688 bytes available (17489920 bytes used)

Cisco-1812-II#format flash:

Format operation may take a while. Continue? [confirm]

Format operation will destroy all data in "flash:".  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: 62583

Format: Total bytes in formatted partition: 32042496

Format: Operation completed successfully.

Format of flash complete

Cisco-1812-II#show flash:

14450688 bytes available (17489920 bytes used)

I believe it's hidden somehow, but no luck until now. I checked secure bootset; any other ideas?

Cisco-1812-II#show secure bootset

%IOS image and configuration resilience is not active

Here is also detailed flash:

Cisco-1812-II#show flash: all

14450688 bytes available (17489920 bytes used)

******** ATA Flash Card Geometry/Format Info ********

ATA CARD GEOMETRY

   Number of Heads:       4

   Number of Cylinders    490

   Sectors per Cylinder   32

   Sector Size            512

   Total Sectors          62720

ATA CARD FORMAT

   Number of FAT Sectors  31

   Sectors Per Cluster    8

   Number of Clusters     7798

   Number of Data Sectors 62583

   Base Root Sector       167

   Base FAT Sector        105

   Base Data Sector       199

ATA MONLIB INFO

   Image Monlib size = 49628

   Disk monlib size = 53760

   Name = c1800-atafslib-m

   Monlib Start sector = 2

   Monlib End sector = 98

   Monlib updated by = C181X-ADVIPSERVICESK9-M12.4(6)T9

   Monlib version = 1

9 Replies 9

Leo Laohoo
Hall of Fame
Hall of Fame

Try this command:  dir flash:

Hi mate,

Thanks for the input; here is the output:

Cisco-1812-II#dir flash:

Directory of flash:/

No files in directory

31940608 bytes total (14450688 bytes free)

Also tried:

Cisco-1812-II#fsck flash:

Checking the partition table and boot sector...

Checking FAT, Files and Directories...

Reclaiming unused space...

Updating FAT...

fsck of flash: complete

Cisco-1812-II#show flash:

14450688 bytes available (17489920 bytes used)

But no luck..

Cisco-1812-II#show flash:

14450688 bytes available (17489920 bytes used)


Hi Florin,

After formating the flash. When you try to upload any ios to it.

Is it still throwing error sufficient memory is not available????

Please do rate if the given information helps.

By

Karthik

Cisco-1812-II#copy tftp flash:

Address or name of remote host [c181x-adventerprisek9-mz.124-24.T2.bin ]? 172.20.20.16

Source filename [c181x-adventerprisek9-mz.124-24.T2.bin]?

Destination filename [c181x-adventerprisek9-mz.124-24.T2.bin]?

Accessing tftp://172.20.20.16/c181x-adventerprisek9-mz.124-24.T2.bin...

Loading c181x-adventerprisek9-mz.124-24.T2.bin from 172.20.20.16 (via Vlan16): !

%Error copying tftp://172.20.20.16/c181x-adventerprisek9-mz.124-24.T2.bin (Not enough space on device)

Any thoughts?

Hi,

can u please check squeeze all or squeeze flash command is accepting...

when u give show flash is there any file is showing available in the flash... if so then give delete flash:

what is the size of your IOS (in bytes) count??? which you are trying to put now..

Please do rate if the given information helps.

By

Karthik

Hello,

squeeze command is available only for Class B, flash cards; mine is Class C, so it doesn't work.

Thanks for your try!

I hope you have a multi-card reader you can borrow because it looks like this is the only way.

I have never seen a behaviour like this before.   So I'm not sure whether you have a CF failure, an IOS bug. 

           

Ok, I thought of this from the beginning, just hoped I could do it from IOS.

As I inserted the CF, there were 3 hidden files. Now comes the question: how can you hide a file on Cisco flash?

In the end I format it and things went back to normal.

Many thanks guys for the support!

L.E. I believe this was related to IOS resiliency, but as I stated before:

#show secure bootset

%IOS image and configuration resilience is not active

A bug maybe?

show secure ?

  bootset  Display information about secured image and configuration files

  |        Output modifiers

 

Hi Florin,

Good to know that you have identified the rootcause. Great. This is a good information for me as well.

Yes. It might be an resilent confguration done on that device. It is a hidden conf and ios that is stored in a secured way.

http://www.cisco.com/en/US/docs/ios/12_3t/12_3t8/feature/guide/gtrescfg.html

By

Karthik

Review Cisco Networking for a $25 gift card