cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1813
Views
0
Helpful
10
Replies

IOS Upgrade in a C2950-SX - Insufficient flash space

javier.castillo
Level 1
Level 1

How I can free space in flash using CNA safely?

It is safe to say the system boot image can be deleted?

10 Replies 10

Lucien Avramov
Level 10
Level 10

Not sure how you can use CNA, but make sure you copy all the files to a computer / tftp server.

You can compress the running-config :

switch(config)#service compress-config

Then a write mem should compress your image on flash

If you delete the boot image, you will save space, but if the switch crashes, it will go to rommon and you will have to upload the file again to flash memory

Thanks for the replay!

Unfortunatelly I got the message "Boot ROMs do not support NVRAM compression.

Disabling service compress-config."

I just need to know if there is something else I can do other than put more memory.

Leo Laohoo
Hall of Fame
Hall of Fame

Do a "dir" and post the output.

Are you using HTML to log into the switch? If not delete the HTML directory. It should give you enough space for 2 .bin files.

I don't think getting rid of the HTML folder will give me enough space:

2 -rwx 109 Feb 28 1993 19:09:32 -05:00 info

4 -rwx 549 Dec 31 1969 19:01:50 -05:00 env_vars

5 -rwx 736 Jun 12 2007 06:11:41 -05:00 vlan.dat

6 -rwx 1048 Feb 18 2009 13:34:10 -05:00 multiple-fs

7 -rwx 3110758 Feb 28 1993 19:11:29 -05:00 c2950-i6q4l2-mz.121-22.EA6.bin

8 drwx 4160 Feb 28 1993 19:12:09 -05:00 html

377 -rwx 109 Feb 28 1993 19:12:49 -05:00 info.ver

378 -rwx 5275 Feb 18 2009 13:34:10 -05:00 config.text

379 -rwx 25 Feb 18 2009 13:34:10 -05:00 private-config.text

7741440 bytes total (2983936 bytes free)

Hi Javier,

Sounds like it could. Delete the HTML file and you should have more than enough for the second .BIN file.

There is not files tagged as deleted or error so squeeze command didn't help.

This is what I got when I try to do the upgrade:

Determining the total flash size.

Extracting the info file from the tar image.

Reading the info file of the tar image file.

Actual free space 3074560

Required Space 5792768

Software upgrade failed.

There is insufficient flash space for the new image.

Total free space required is 5792768 bytes.

Remove unwanted files from the flash and upgrade again.

Try deleting the html directory + files anyways, it always contains some files inside that hold some of your flash space.

Compare yours with my switch:

C2950G-24#dir

Directory of flash:/

2 -rwx 110 Mar 01 1993 00:46:04 +00:00 info

3 -rwx 3721946 Mar 14 1993 23:11:11 +00:00 c2950-i6k2l2q4-mz.121-22.E

A13.bin

4 -rwx 3117390 Mar 01 1993 01:18:01 +00:00 c2950-i6q4l2-mz.121-22.EA8

5 -rwx 616 Mar 01 1993 00:00:20 +00:00 vlan.dat

7 -rwx 186 Mar 01 1993 00:06:58 +00:00 env_vars

8 -rwx 24 Apr 24 1993 07:23:27 +00:00 private-config.text

9 -rwx 3013 Apr 24 1993 07:23:27 +00:00 config.txt

415 -rwx 110 Mar 01 1993 00:49:41 +00:00 info.ver

7741440 bytes total (893952 bytes free)

------------------------

I have two IOS files just fine. The only difference is the html dir

But anyways, you need:

Total free space required is 5792768 bytes

Since you are installing a .tar image you are going to need to delete the current .bin file as well.

Otherwise delete the html directory and try the upgrade with only the .bin file

Leo Laohoo
Hall of Fame
Hall of Fame

Hi Javier,

The 2950 is not capable of storing 2 FULL IOS (IOS BIN file plus the HTML) but it can accomodate 2 BIN files.

1. Delete the HTML sub-directory;

2. Copy the 2nd bin file from your TFTP server to the switch;

3. Point the bootvar to the 2nd BIN file; and

4. Reboot the switch.

Hope this helps.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card