Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

Deleting file containing colon (:) from bootflash:

Due to typo, I ended up having 0 Byte file named something like (no quotes):

"D:Tblahblah_etc_blah"

created on bootflash: volume. Due to the ':' (colon) sign in filename I couldn't delete it after trying all known approaches. Does anybody know how to perform deletion?

Regards,

S.

9 REPLIES
Silver

Deleting file containing colon (:) from bootflash:

Sasha Dundovic wrote:

Due to typo, I ended up having 0 Byte file named something like (no quotes):

"D:Tblahblah_etc_blah"

created on bootflash: volume. Due to the ':' (colon) sign in filename I couldn't delete it after trying all known approaches. Does anybody know how to perform deletion?

Regards,

S.

You say "all possible metods" - what possible methods have you tried?

Have you done

del "D:Tblahblah_etc_blah" including the " marks?

Cheers.

Cisco Employee

Deleting file containing colon (:) from bootflash:

Please paste the output of dir bootlash: and let us kmow that commands you have tried to delete the file.

New Member

Deleting file containing colon (:) from bootflash:

Here's the bootflash: content :

-----

         47     Nov 15 13:45:56 2011  ..tmp-kickstart

         37     Nov 15 13:46:01 2011  ..tmp-system

   20699136     Nov 15 13:45:56 2011  .tmp-kickstart

   74281634     Nov 15 13:46:01 2011  .tmp-system

          0     Nov 15 13:30:34 2011  D:Tn4000-bk9-kickstart.4.1.2.E1.1g

.bin

      49152     Nov 15 13:45:55 2011  lost+found/

   20798976     Nov 15 13:37:08 2011  n4000-bk9-kickstart.4.1.2.E1.1g.bin

   74337505     Nov 15 13:41:53 2011  n4000-bk9.4.1.2.E1.1g.bin

       4096     Mar 02 06:04:34 2011  vdc_2/

       4096     Mar 02 06:04:34 2011  vdc_3/

       4096     Mar 02 06:04:34 2011  vdc_4/

-----

The file in question is 'D:Tn4000-bk9-kickstart.4.1.2.E1.1g.bin'. So far I tried:

del D:Tn4000-bk9-kickstart.4.1.2.E1.1g.bin

del 'D:Tn4000-bk9-kickstart.4.1.2.E1.1g.bin'

del "D:Tn4000-bk9-kickstart.4.1.2.E1.1g.bin"

del D*.bin

del D*

del bootflash:D:Tn4000-bk9-kickstart.4.1.2.E1.1g.bin

del bootflash:D*

but I always get either:

No such file or directory

or

% Invalid URI path at '^' marker.

Honestly, to me, it's a bug.  System shouldn't allow creating such filename.

Silver

Deleting file containing colon (:) from bootflash:

Sasha Dundovic wrote:

Here's the bootflash: content :

-----

         47     Nov 15 13:45:56 2011  ..tmp-kickstart

         37     Nov 15 13:46:01 2011  ..tmp-system

   20699136     Nov 15 13:45:56 2011  .tmp-kickstart

   74281634     Nov 15 13:46:01 2011  .tmp-system

          0     Nov 15 13:30:34 2011  D:Tn4000-bk9-kickstart.4.1.2.E1.1g

.bin

      49152     Nov 15 13:45:55 2011  lost+found/

   20798976     Nov 15 13:37:08 2011  n4000-bk9-kickstart.4.1.2.E1.1g.bin

   74337505     Nov 15 13:41:53 2011  n4000-bk9.4.1.2.E1.1g.bin

       4096     Mar 02 06:04:34 2011  vdc_2/

       4096     Mar 02 06:04:34 2011  vdc_3/

       4096     Mar 02 06:04:34 2011  vdc_4/

-----

The file in question is 'D:Tn4000-bk9-kickstart.4.1.2.E1.1g.bin'. So far I tried:

del D:Tn4000-bk9-kickstart.4.1.2.E1.1g.bin

del 'D:Tn4000-bk9-kickstart.4.1.2.E1.1g.bin'

del "D:Tn4000-bk9-kickstart.4.1.2.E1.1g.bin"

del D*.bin

del D*

del bootflash:D:Tn4000-bk9-kickstart.4.1.2.E1.1g.bin

del bootflash:D*

but I always get either:

No such file or directory

or

% Invalid URI path at '^' marker.

Honestly, to me, it's a bug.  System shouldn't allow creating such filename.

Try

del D\:Tn4000-bk9-kickstart.4.1.2.E1.1g.bin

or

del "D\:Tn4000-bk9-kickstart.4.1.2.E1.1g.bin"

or

del D?Tn400-bk9-kickstart.4.1.2.E1.1g.bin

Cheers

New Member

Deleting file containing colon (:) from bootflash:

Took me a while to get back to this problem.....The latest suggestions didn't work, too. Here's the output:

---

INDRK2CH1SWA# del D\:Tn4000-bk9-kickstart.4.1.2.E1.1g.bin

                  ^

% Invalid URI path at '^' marker.

INDRK2CH1SWA# del "D\:Tn4000-bk9-kickstart.4.1.2.E1.1g.bin

"

                  ^

% Invalid URI path at '^' marker.

---

In attempt to even type '?' (question mark) it fails immediately:

---

INDRK2CH1SWA# del D?

                ^

% Invalid command at '^' marker.

?

---

I still believe this is a bug.

Regards,

S.

Deleting file containing colon (:) from bootflash:

Hi Sasha,

Probably, if your aim is to just delete off that file, then you may try for this option.

1)Enable SCP server on the switch

2) Use some SCP software like WinSCP to access the switch.

3) Delete off the file from the flash

Do let me know if this helps. Will wait for your reply.

Thanks

Vivek

New Member

Deleting file containing colon (:) from bootflash:

I have Nexus 4000 runnning system version 4.1(2)E1(1g). As I know (may be wrong), SCP server is supported starting with version 5? I don't see SCP server option in feature list:

NY5SWA(config)# feature ?

  fip-snooping    Enable/Disable fip-snooping

  interface-vlan  Enable/Disable interface vlan

  lacp            Enable/Disable LACP

  lst             Enable/Disable LST(Link State Tracking)

  private-vlan    Enable/Disable private-vlan

  ssh             Enable/Disable ssh

  tacacs+         Enable/Disable tacacs+

  telnet          Enable/Disable telnet

  udld            Enable/Disable UDLD

Vivek, thanks for your suggestion, but it seems that's not an option in my case.

Regards,

S.

Hall of Fame Super Gold

Deleting file containing colon (:) from bootflash:

Ok, try this ...

COPY everything you want from the bootflash to your TFTP server or a USB stick (that's properly formatted and inserted to this appliance).

Next, format the current bootflash (command:  format bootflash:).  Once the format is done, copy back the files with the IOS going in first. 

New Member

Deleting file containing colon (:) from bootflash:

I'm aware that this is a possibility, but it's a 'brute force' one. I was trying to find out if there's some specific syntax to be used in order to delete this kind of filename in a regular way. Why? Because I want to clear out that there's no syntax that can delete this before contacting Cisco support to report this. Even being probably a minor glitch, system shouldn't allow you to create such filename if you can't delete it later, right?

Regards,

S.

1140
Views
0
Helpful
9
Replies
CreatePlease login to create content