When trying to update an Aironet 1262 to a new firmware, I received this error:
ap#archive download-sw /overwrite scp://root@10.10.10.10/ap3g1-k9w8-tar.152-4.JB5.tar
Unable to create temp dir "flash:/update"
My first thought is that the flash was full. Which is odd since normally updating the firmware, I overwrite the old firmware. However, even dir
resulted in an error:
ap#dir
%Error opening flash:/ (Invalid argument)
How do I resolve this issue without trying a reboot of the AP and risking it not booting due to a flash error?
Best Answer
Many Cisco devices include the
fsck
command to check the file system with. If you run this command on the flash, it will attempt to fix file system errors for you. These were my results:Well, this appears to have proved that the file system is full. But did it fix the issue with the flash system so I could look at the flash system to find files to delete? Yes:
You can see why the file system is full, someone copied a firmware tarball direct to the AP's flash instead of using the archive command to pull it remotely. Easy fix though, just delete the tarball:
Ok, file system fixed. Free space created. Did all of this fix the original issue of updating the firmware? Yes: