Thanks Big Dave!
I picked up a really great tip this week while working with my operations manger Big Dave. Dave is a great guy and has been a huge influence of my networking career.
At work this week we had to upgrade the IOS on Cisco 2811. It only had 64MB flash, so the old IOS had to be removed as the new one was 57MB.
Normally i would remove the old IOS first
Router# delete c2800-ipbasek9-mz.124-11.XJ.bin
Then upload the new one via TFTP.
Having done this many times at home, i know this can go wrong and you are left with no IOS image on your router and have to either upload via console cable, for those that have done this will know that you have to set aside a good few hours. Or you can upload the new one from rommon tftp.
Instead of removing the old one what we did was rename the new one like so.
System flash directory:
File Length Name/status 1 8407884 c2800-ipbasek9-mz.124-11.XJ.bin
Now when you upload the new IOS from tftp rename it the the same as the current one.
Router#copy tftp: flash:
Address or name of remote host ? 10.0.0.2
Source filename ? c2800nm-adventerprisek9_ivs-mz.124-24.T.bin
Destination filename [c2800-ipbasek9-mz.124-11.XJ.bin]?
This will replace the old file with the new one, with no need to remove the old one.
Once done you can rename the new file with the correct name.
Router# rename flash:c2800nm-adventerprisek9_ivs-mz.124-24.T.bin
Nice. Thanks Big Dave.