|
Home > Archive > CCNP > August 2001 > Urgent, pls help
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
| ccnpman 2001-08-30, 3:45 am |
| Currently, I try to upload a ios file to the router, and it fails due to limited space in flash memory. Then I try to delete the failure ios file in flash memory, but I fails, anyone has experience to solve it, pls help me, thanks. And below is the output of "dir" and "delete" command I input in the router.
Router1#dir /all
Directory of flash:/
1 -rw- 5344756 <no date> c2600-io3-mz.121-5.T9.bin
2 -rw- 4096 <no date> [c2600-do3s-mz.121-5.T9.bin]
3 -rw- 7233608 <no date> [c2600-do3s-mz.121-5.T9.bin]
16777216 bytes total (4194564 bytes free)
Router1#delete flash:c2600-do3s-mz.121-5.T9.bin
Delete filename [c2600-do3s-mz.121-5.T9.bin]?
Delete flash:c2600-do3s-mz.121-5.T9.bin? [confirm]
%Error deleting flash:c2600-do3s-mz.121-5.T9.bin (No such file or directory)
Router1# | |
|
| use this command
delete slot1:xyz.img
make sure which slot is this 1 or 0 | |
| MadChef 2001-08-30, 5:00 am |
| Try
squeeze flash:
MC | |
| ccnpman 2001-08-30, 5:25 am |
| Hi mkhan,
If the file name is [c2600-do3s-mz.121-5.T9.bin], do you mean the cmd to delete the fail ios is "delete slot1:c2600-do3s-mz.121-5.T9.bin"?
remark: the fail file can't be displayed by cmd "dir", it is displayed by cmd "dir /all" | |
| MadChef 2001-08-30, 6:07 am |
| quote: Originally posted by ccnpman
remark: the fail file can't be displayed by cmd "dir", it is displayed by cmd "dir /all"
When you use dir without the /all arguement it shows only undeleted files. You're seeing deleted files (they have brackets around the filename). You need to squeeze the filesystem.
MadChef | |
| depamo 2001-08-30, 9:39 am |
| If you are trying to update your IOS, if you type in the copy TFTP flash, it should prompt you to remove the old flash prior to copying over the new one. Just make sure that you backup your old IOS to the TFTP server before you do this, if you don't have enough room, it will fail and you will need to reload the old IOS or you will only be able to run from the ROM IOS. Since you already have another IOS on the Flash, you do have to squeeze it anyhow or you won't have enough space. | |
| ccnpman 2001-08-30, 12:25 pm |
| MC>> I can't find the command of "squeeze flash:" in command prompt, and my ios ver is 12.1 and 2600 series router, is there any command serve for the same purpose?
depamo>> since there is 7MB of flash space is occupied by the previous failed file, and now I want to free out the space to store the new ios without remove the existing used one.
Thanks for all reply. | |
| dmaftei 2001-08-30, 12:56 pm |
| quote: Originally posted by ccnpman
I can't find the command of "squeeze flash:" in command prompt, and my ios ver is 12.1 and 2600 series router, is there any command serve for the same purpose?
AFAIK squeeze is available only with a certain type of file system (Class A, I believe). You can try erase flash:. | |
| MadChef 2001-08-31, 5:02 am |
| quote: Originally posted by dmaftei
AFAIK squeeze is available only with a certain type of file system (Class A, I believe. [/B]
I never can remember which class of file system it's used for, but it certainly isn't on the 2600. I can't say that I've ever seen a deleted file on a 2600. Only time I've ever seen that is with a filesystem that can be squeezed.
ccnpman, is there any chance that the image you're trying to put on there is too big to fit with the existing image? What image are you trying to put on there. If this isn't a production router why not just copy the old image off and erase the filesystem like everyone else said? If it blows up, big deal. The 2600 supports tftp images from rommon.
MadChef | |
| ccnpman 2001-08-31, 9:11 am |
| MC>> Since it is a production router and it is placed a long distance to me, if it fails down, I will not have enough to solve it. By the way, thanks very much for your help, and would you suggest the way of rommon? | |
| MadChef 2001-08-31, 2:15 pm |
| No, I wouldn't use rommon unless your boot failed. I would just do a copy tftp flash and erase the file system when it asks like others have suggested. Just make sure you image supports everything you need it to beforehand.
MadChef | |
| mkhan 2001-08-31, 11:48 pm |
| define your secondery bootup sequence in router for TFTP
install the TFTP Server and boot from it in such cases if it fails.
try to copy the orignal .IMG and .BIN file to tftp server, format your flash completely.
and then tftp your router and copy the image you want to copy to the router thru tftp server. then load your .bin
you will safe in this way. |
|
|
|
|