Error copying flash

Unanswered Question
Feb 24th, 2007

Hello All,

I have a 3640 router with 128MB DRAM and 32MB FLASH. It is currently running IOS c3640-jk9o3s-mz.123-19.bin. I am trying to copy a new image into flash (c3640-ik9o3s-mz.124-7.bin) and receive the following output:

%Error copying flash:c3640-ik9o3s-mz.124-7.bin (No space left on device)

This is what I get when a show flash command is issued:

3640_1#sh flash

System flash directory:

File Length Name/status

1 25690048 c3640-ik9o3s-mz.124-7.bin [deleted]

[25690112 bytes used, 7340028 available, 33030140 total]

32768K bytes of processor board System flash (Read/Write)

How come the entire image does not fit into flash when there is enough room?

Thank you in advance.

I have this problem too.
0 votes
  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Loading.
hoogen_82 Sat, 02/24/2007 - 06:49

do a squeeze flash: command

HTH

Hoogen

Do rate if this helps :)

hoogen_82 Sat, 02/24/2007 - 07:13

the last step format your flash and then load the new image

HTH

hoogen

royalblues Sat, 02/24/2007 - 10:06

Mike,

1. Erase the contents of the flash

erase flash:

2. Squeeze flash contents

squeeze flash:

(remember not to reload your router when you erase the flash, otherwise the router would go to rommon mode and you have to do a disaster recovery)

3. Upload the new IOS

4. Reload once upload is successful

let us know how it goes

HTH, rate if it does

Narayan

MikeC5000 Sat, 02/24/2007 - 10:25

It did not work but thank you for the input. I still receive the same error message.

MikeC5000 Sat, 02/24/2007 - 14:14

I still receive the same error message at the same point in the copy. I executd the squeeze command and then ran a sh flash: and got this:

3640_1#sh flash

System flash directory:

No files in System flash

[0 bytes used, 33030140 available, 33030140 total]

32768K bytes of processor board System flash (Read/Write)

I have gotten this same output every time I erase the flash memory. It just continues to tank in the same exact spot. Thank you for your effort.

vaisharm Sun, 02/25/2007 - 04:12

Mike,

Please ensure that there are no files in the flash (not even marked deleted). Next, ensure that the laptop/workstation on which you have the tftp server does not go into standby mode and disbale the screen saver as well. Try a different tftp server.

http://tftpd32.jounin.net/download/tftpd32.302.zip

I have seen it work this way. Good luck!

Do let us know, how it goes.

- Vaibhav

MikeC5000 Sun, 02/25/2007 - 05:45

I tried this procedure 2 times and failed both times in the same spot that it has been failing at. I have also tried different images and get the same results when the image size goes past the point where it fails. Thank you for trying.

Danilo Dy Mon, 02/26/2007 - 06:56

For 3640 after you use the "delete" command, execute "erase" command. You may need to point to "slot0:" or "slot1:" not "flash:", i.e.

3640# delete slot0:c3640-ik9o3s-mz.124-7.bin

or

3640# delete slot1:c3640-ik9o3s-mz.124-7.bin

then..

3640# erase slot0:

or

3640# erase slot1:

If it still doesn't work, can you post the output of the following?

3640# show flash:

3640# show slot0:

3640# show slot1:

We need to see if there is partition.

MikeC5000 Mon, 02/26/2007 - 16:57

It failed again. Here we go:

3640_1#sh flash

System flash directory:

File Length Name/status

1 19578456 c3640-ik9o3s-mz.123-19.bin

[19578520 bytes used, 13451620 available, 33030140 total]

32768K bytes of processor board System flash (Read/Write)

**Here is what is in flash before I start**

3640_1#sh slot0:

%Device 'slot0:' is in REMOVED state

%Error show slot0: (No device available)

3640_1#sh slot1:

%Device 'slot1:' is in REMOVED state

%Error show slot1: (No device available)

**No devices in slot 0 or slot 1**

3640_1#delete flash:c3640-ik9o3s-mz.123-19.bin

Delete filename [c3640-ik9o3s-mz.123-19.bin]?

Delete flash:c3640-ik9o3s-mz.123-19.bin? [confirm]

3640_1#erase flash:

Erasing the flash filesystem will remove all files! Continue? [confirm]

Erasing device... eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee

eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee ...erased

Erase of flash: complete

3640_1#delete slot0:

Delete filename [c3640-ik9o3s-mz.123-19.bin]?

Delete slot0:c3640-ik9o3s-mz.123-19.bin? [confirm]

%Error deleting slot0:c3640-ik9o3s-mz.123-19.bin (No device available)

3640_1#delete slot1:

Delete filename [c3640-ik9o3s-mz.123-19.bin]?

Delete slot1:c3640-ik9o3s-mz.123-19.bin? [confirm]

%Error deleting slot1:c3640-ik9o3s-mz.123-19.bin (No device available)

**Again, no devices installed**

3640_1#3640_1#copy tftp flash

Address or name of remote host [192.168.1.10]?

Source filename [c3640-ik9os3-mz.124-7.bin]? c3640-ik9o3s-mz.124-7.bin

Destination filename [c3640-ik9o3s-mz.124-7.bin]?

Accessing tftp://192.168.1.10/c3640-ik9o3s-mz.124-7.bin...

Erase flash: before copying? [confirm]

Erasing the flash filesystem will remove all files! Continue? [confirm]

Erasing device... eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee

eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee ...erased

Erase of flash: complete

Loading c3640-ik9o3s-mz.124-7.bin from 192.168.1.10 (via Ethernet0/0): !!!!!!!!!

**omitted about a page of !**

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

%Error copying flash:c3640-ik9o3s-mz.124-7.bin (No space left on device)

3640_1#sh flash

System flash directory:

File Length Name/status

1 25690048 c3640-ik9o3s-mz.124-7.bin [deleted]

[25690112 bytes used, 7340028 available, 33030140 total]

32768K bytes of processor board System flash (Read/Write)

3640_1#sh slot0:

%Device 'slot0:' is in REMOVED state

%Error show slot0: (No device available)

3640_1#sh slot1:

%Device 'slot1:' is in REMOVED state

%Error show slot1: (No device available)

3640_1#

Not sure why you wanted the slot0 and slot1 info, but you have it. Thank you for the try.

MikeC5000 Tue, 02/27/2007 - 02:16

I have tried the tftp server you provided the link for. The download manages to crap-out at the same exact spot every time no matter what tftp server I use or how I try to erase/delete/squeeze the flash. Thank you for trying.

Danilo Dy Tue, 02/27/2007 - 02:35

His problem is he cannot totally erase or squeeze the deleted IOS, therefore there is no room for him to install the same or new IOS.

Mike,

If your router have a back-to-back maintenance with Cisco, you should contact them or your Vendor. Maybe send it for RMA, it could be a hardware problem.

smothuku Tue, 02/27/2007 - 03:31

Hi Mike ,

Have you tried loading the IOS using "copy xmodem: flash:flash name" command.

If you are not able to load the IOS using above command then boot the router in rommon mode and use the xmodem procedure to load the new IOS.

Hope this helps you..

Thanks,

Satish

jamesd058 Thu, 04/12/2007 - 08:54

Were all copies from the same source file? I recently tried to restore an IOS to a 2600 by copying the same IOS to over and over. Then I made a new copy from another 2600 and tried it. Worked first time! Even though it wasn't apparent, it seems my original file was corrupt.

deilert Mon, 03/05/2007 - 04:48

Use FTP , there is a limitation on the tftp file size (32 meg I beleive). Using FTP should allow you to tranfer the file

Actions

This Discussion