cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
4755
Views
0
Helpful
2
Replies

Renaming files Issue 2690

Borg2020
Level 1
Level 1

I have a switch that no one could remember the password to
Ok no worries ill use the password recovery option and that is when the pain began

I can not seem to rename or even delete the files without "No such file or directory" wrecking my day.

Any guidance would be great :)

 

switch: dir flash:
Directory of flash:/

6 drwx 192 Mar 1 1993 00:07:28 +00:00 c2960-lanbasek9-mz.122-50.SE5
562 -rwx 796 Oct 8 2015 03:21:52 +00:00 vlan.dat.renamed
567 -rwx 1918 Mar 1 1993 00:00:57 +00:00 private-config.text.renamed
568 -rwx 2072 Mar 1 1993 00:03:07 +00:00 multiple-fs
570 -rwx 624 Mar 1 1993 00:03:08 +00:00 express_setup.debug
573 -rwx 1590 Mar 1 1993 00:00:57 +00:00 config.text.renamed

20884992 bytes available (11629056 bytes used)

switch: rename flash:vlan.dat.rename flash:vlan.dat
rename: no such file or directory
--- System Configuration Dialog ---

Enable secret warning
----------------------------------
In order to access the device manager, an enable secret is required
If you enter the initial configuration dialog, you will be prompted for the enable secret
If you choose not to enter the intial configuration dialog, or if you exit setup without setting the enable secret,
please set an enable secret using the following CLI in configuration mode-
enable secret 0 <cleartext password>
----------------------------------
Would you like to enter the initial configuration dialog? [yes/no]: n
Switch>en
Switch#dir flash:
Directory of flash:/


    6  drwx         192   Mar 1 1993 00:07:28 +00:00  c2960-lanbasek9-mz.122-50.SE5
  562  -rwx         796   Oct 8 2015 03:21:52 +00:00  vlan.dat.renamed
  567  -rwx        1918   Mar 1 1993 00:00:57 +00:00  private-config.text.renamed
  568  -rwx        2072   Mar 1 1993 00:03:07 +00:00  multiple-fs
  570  -rwx         624   Mar 1 1993 00:03:08 +00:00  express_setup.debug
  573  -rwx        1590   Mar 1 1993 00:00:57 +00:00  config.text.renamed

32514048 bytes total (20884992 bytes free)
Switch#rename flash:vlan.dat.rename flash:vlan.dat
Destination filename [vlan.dat]?
%Error renaming flash:vlan.dat.rename to flash:vlan.dat (No such file or directory)
Switch#
1 Accepted Solution

Accepted Solutions

rename flash:vlan.dat.rename flash:vlan.dat

rename flash:vlan.dat.renamed flash:vlan.dat      ( You forgot the last d on vlan.dat.renamed )

HTH,
Meheretab

View solution in original post

2 Replies 2

rename flash:vlan.dat.rename flash:vlan.dat

rename flash:vlan.dat.renamed flash:vlan.dat      ( You forgot the last d on vlan.dat.renamed )

HTH,
Meheretab

Out of all the people who have looked at the issue and have tried no one picked that up.
That is simply hilarious.
Review Cisco Networking products for a $25 gift card