Flash commands
datchcha
Member Posts: 265
in CCNA & CCENT
How do i erase one file from FLASH? I know the erase command will delete everything in flash
Arrakis
Comments
-
Netstudent Member Posts: 1,693 ■■■□□□□□□□delete slot0:myconfig
where the slot is the slot of the flash memory and myconfig is the same of the file you want to delete. This can be different depending on the model of your router.
here is an whitepaper about flash memory configuration.
http://www.cisco.com/en/US/docs/ios/12_0/configfun/configuration/guide/fcifs.html#wp3761There is no place like 127.0.0.1 BUT 209.62.5.3 is my 127.0.0.1 away from 127.0.0.1! -
datchcha Member Posts: 265Netstudent wrote:delete slot0:myconfig
where the slot is the slot of the flash memory and myconfig is the same of the file you want to delete. This can be different depending on the model of your router.
here is an whitepaper about flash memory configuration.
http://www.cisco.com/en/US/docs/ios/12_0/configfun/configuration/guide/fcifs.html#wp3761
i have a 2650Arrakis -
datchcha Member Posts: 265Netstudent wrote:delete slot0:myconfig
where the slot is the slot of the flash memory and myconfig is the same of the file you want to delete. This can be different depending on the model of your router.
here is an whitepaper about flash memory configuration.
http://www.cisco.com/en/US/docs/ios/12_0/configfun/configuration/guide/fcifs.html#wp3761
when i ru nthe show file systems command it only displays Flash, nothing about a slotArrakis -
Netstudent Member Posts: 1,693 ■■■□□□□□□□you may have to boot to rommon and do a delete flash:filenameThere is no place like 127.0.0.1 BUT 209.62.5.3 is my 127.0.0.1 away from 127.0.0.1!
-
dtlokee Member Posts: 2,378 ■■■■□□□□□□You need to use the "delete flash:/filename.ext" command
Use "show flash" to see what files are there, keep in mind if it has a "d" in the attribute column it's a directory and you would use rmdir.The only easy day was yesterday! -
datchcha Member Posts: 265dtlokee wrote:You need to use the "delete flash:/filename.ext" command
Use "show flash" to see what files are there, keep in mind if it has a "d" in the attribute column it's a directory and you would use rmdir.
This is my output
System flash directory:
File Length Name/status
1 15983752 c2600-j1s3-mz.123-15.bin
2 599 n
[15984480 bytes used, 792732 available, 16777212 total]
16384K bytes of processor board System flash (Read/Write)
Router1#delete flash:/n
Delete filename [n]? y
Delete flash:y? [confirm]y
%Error deleting flash:y (No such file or directory)
Router1#Arrakis -
dtlokee Member Posts: 2,378 ■■■■□□□□□□datchcha wrote:dtlokee wrote:You need to use the "delete flash:/filename.ext" command
Use "show flash" to see what files are there, keep in mind if it has a "d" in the attribute column it's a directory and you would use rmdir.
This is my output
System flash directory:
File Length Name/status
1 15983752 c2600-j1s3-mz.123-15.bin
2 599 n
[15984480 bytes used, 792732 available, 16777212 total]
16384K bytes of processor board System flash (Read/Write)
Router1#delete flash:/n
Delete filename [n]? y
Delete flash:y? [confirm]y
%Error deleting flash:y (No such file or directory)
Router1#
Your problem lies in the "delete filename[n]?" command, just hit enter, it's nat asking you to confirm, it's asking you for the filename and when you typed "y" it thinks the filename is "y" not "n". Notice the error, "%Error deleting flash:y (No such file or directory)" you changed the name of the file it is going to delete by typing "y"The only easy day was yesterday! -
datchcha Member Posts: 265dtlokee wrote:datchcha wrote:dtlokee wrote:You need to use the "delete flash:/filename.ext" command
Use "show flash" to see what files are there, keep in mind if it has a "d" in the attribute column it's a directory and you would use rmdir.
This is my output
System flash directory:
File Length Name/status
1 15983752 c2600-j1s3-mz.123-15.bin
2 599 n
[15984480 bytes used, 792732 available, 16777212 total]
16384K bytes of processor board System flash (Read/Write)
Router1#delete flash:/n
Delete filename [n]? y
Delete flash:y? [confirm]y
%Error deleting flash:y (No such file or directory)
Router1#
Your problem lies in the "delete filename[n]?" command, just hit enter, it's nat asking you to confirm, it's asking you for the filename and when you typed "y" it thinks the filename is "y" not "n". Notice the error, "%Error deleting flash:y (No such file or directory)" you changed the name of the file it is going to delete by typing "y"
Thanks it works...just have to use the squeeze command
thanksArrakis