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. If you'd prefer to explore, try our test area to get started. And see here for current known issues.

New Member

3550 - How do you delete a subdir in Flash?

Hi, I successfully updated the IOS on a 3550 but cannot delete the dir that housed the old IOS.

Here's what I tried:

Switch#rmdir c3550-i9q3l2-mz.121-22.EA4

Remove directory filename [c3550-i9q3l2-mz.121-22.EA4]?

Delete flash:c3550-i9q3l2-mz.121-22.EA4? [confirm]

%Error Removing dir flash:c3550-i9q3l2-mz.121-22.EA4 (Unknown error 93)

I had deleted the files out of the dir. I tried remarking the folder in a number of different ways:

Switch#delete flash:c3550-i9q3l2-mz.121-22.EA4/

Thank you for any help you can offer,

Troy

7 REPLIES
New Member

Re: 3550 - How do you delete a subdir in Flash?

Well, the quick-n-dirty way would be to re-format the flash: and re-save configs and IOS. I just love "Unknown errors", although my memory seems to say I'd seen this once long, long ago... looking through my notes, although I thought that was related to the directory used to be a modular IOS which doesn't apply here....

Have you tried deleting the directory from ROMMON?

New Member

Re: 3550 - How do you delete a subdir in Flash?

I haven't tried yet from ROMMON. I'll check it out.

Thank you,

Troy

Purple

Re: 3550 - How do you delete a subdir in Flash?

You don't have to get rid of all the individual files.

This gets rid of a directory and everything in it.

delete /force /recursive flash:

New Member

Re: 3550 - How do you delete a subdir in Flash?

That cmd will remove files, but not the directory. No luck on removing the old dir.

Still trying,

Troy

Purple

Re: 3550 - How do you delete a subdir in Flash?

It does remove a directory have used it many times getting rid directories that contain ios files. If it didn't work in your case i don't know why .

New Member

Re: 3550 - How do you delete a subdir in Flash?

Maybe operator error on my part! ; )

Yeah, I don't get it...one of many things.

Thank you for your help,

Troy

New Member

All you have to do to get rid

All you have to do to get rid of a directory when in ROMMON mode is use the command recommended by the gent above; however, you must include the directory name, as following:

delete /force /recursive flash:[directory name]

If you don't include the directory name, it won't work.

Louie

4678
Views
10
Helpful
7
Replies