PDA

View Full Version : no such file or directory exsists....


zoltron30
12-23-2010, 11:53 AM
trying to upgrade my ios on my 1841 and shows:

1841T#copy flash tftp
Source filename []? c1841-ipbasek9-mz.124-24.T3 (1).bin
Address or name of remote host []? 192.168.0.142
Destination filename [c1841-ipbasek9-mz.124-24.T3]
%Error opening flash:c1841-ipbasek9-mz.124-24.T3 (File not found)
1841T#

im able to ping the tftp server, the .bin file is in my root directory on my tftp server and has worked before. and i'm pretty sure the file name is correct.... dont want to have to upgrade my ios through rommon if i dont have to.....

heres the original ios filename:

c1841-ipbasek9-mz.124-24.T3 (1).bin

also tried without .bin at the end of the file name.....

HermeszData
12-23-2010, 01:53 PM
trying to upgrade my ios on my 1841 and shows:

1841T#copy flash tftp
Source filename []? c1841-ipbasek9-mz.124-24.T3 (1).bin
Address or name of remote host []? 192.168.0.142
Destination filename [c1841-ipbasek9-mz.124-24.T3]
%Error opening flash:c1841-ipbasek9-mz.124-24.T3 (File not found)
1841T#

im able to ping the tftp server, the .bin file is in my root directory on my tftp server and has worked before. and i'm pretty sure the file name is correct.... dont want to have to upgrade my ios through rommon if i dont have to.....

heres the original ios filename:

c1841-ipbasek9-mz.124-24.T3 (1).bin

also tried without .bin at the end of the file name.....

How does the filename appear when you issue:

dir flash:


The problem is that the IOS does not recognize the file name specified. When you copy from flash to anywhere, the first thing that happens is the IOS makes sure the source filename is valid before prerforming the handshake with the tftp server.

EDIT:

as another thought...

I believe the CF card is formatted FAT16. (I know the 2811 is!) In that case, you can use a card reader on your PC to write the new IOS to the CF card and then re-install the card in the router and power it on.

zoltron30
12-24-2010, 12:24 AM
thanks for the help... i had a space in the ios file that i wanted to copy into my routers flash memory.... thanks!!

HermeszData
12-24-2010, 12:50 PM
thanks for the help... i had a space in the ios file that i wanted to copy into my routers flash memory.... thanks!!

When I a copy froom flash to tftp , I first do either a directory listing or a sh ver. From there, I highlight the file name of the IOS (or any file I want to transfer) and issue the copy kbrd shortcut (SecureCrt = cntrl+Insert) then paste the the file name into the command (SecureCrt = Shift+Insert). This way I never have to worry about Fat Finger errors.

I do the same thing when I want to transfer files from the tftp server to the router. saves a lot of time and headaches.


copy flash:c1841-adventerprisek9-mz.124-9.t1.bin tftp://10.10.11.11/c1841-adventerprisek9-mz.124-9.t1.bin


or


copy tftp://10.10.11.11/c1841-adventerprisek9-mz.124-9.t1.bin flash:


In both cases, I copy, then paste, the file filename w/ extension into the command.

zoltron30
12-24-2010, 02:17 PM
When I a copy froom flash to tftp , I first do either a directory listing or a sh ver. From there, I highlight the file name of the IOS (or any file I want to transfer) and issue the copy kbrd shortcut (SecureCrt = cntrl+Insert) then paste the the file name into the command (SecureCrt = Shift+Insert). This way I never have to worry about Fat Finger errors.

I do the same thing when I want to transfer files from the tftp server to the router. saves a lot of time and headaches.


copy flash:c1841-adventerprisek9-mz.124-9.t1.bin tftp://10.10.11.11/c1841-adventerprisek9-mz.124-9.t1.bin


or


copy tftp://10.10.11.11/c1841-adventerprisek9-mz.124-9.t1.bin flash:


In both cases, I copy, then paste, the file filename w/ extension into the command.


willl remember that for next time thanks a lot. i tried loading the ios into my 1841 with the sdm but i rec'd an error about not being able to copy the file due to spaces in the filename. i knew sdm would give me a more direct error message lol