cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3825
Views
5
Helpful
8
Replies

Can't Delete file in ronmon

coolboarderguy
Level 1
Level 1

Hi All,

I can't delete an old .bin file from the flash dir,

switch: delete c2950-i6q4l2-mz.121-6.EA2c.bin

Are you sure you want to delete "c2950-i6q4l2-mz.121-6.EA2c.bin" (y/n)?y

File "c2950-i6q4l2-mz.121-6.EA2c.bin" not deleted -- permission denied

Why would this be..? Cheers.

coolboarderguy...

8 Replies 8

thisisshanky
Level 11
Level 11

Do you have two images in flash ? If you delete this file (and if this is the only file) then you will be stuck in rommon with no image...

A "dir flash:" at the Switch: prompt should give you the results, what files are in flash. Try a "flash_init" followed by "load_helper" and then try deleting the flash old.bin file.

I havent tried this, but hopefully that will help!!

Sankar Nair
UC Solutions Architect
Pacific Northwest | CDW
CCIE Collaboration #17135 Emeritus

Hi All,

yes, I'd had downloaded a new IOS as the old one was no good. Here is what I trie to do with results below,

switch: dir flash:

Directory of flash:/

2 -rwx 3596 config.old

3 -rwx 856 vlan.dat

4 -rwx 2253443 c2950-i6q4l2-mz.121-6.EA2c.bin

rwx 640 html

16 -rwx 3082112 c2950-i6q4l2-mz.121-22.EA1.bin

18 -rwx 309 env_vars

682496 bytes available (7058944 bytes used)

switch: rename flash:c2950-i6q4l2-mz.121-6.EA2c.bin flash:old.bin

rename: no such file or directory

switch: dir flash:

Directory of flash:/

2 -rwx 3596 config.old

3 -rwx 856 vlan.dat

4 -rwx 2253443 c2950-i6q4l2-mz.121-6.EA2c.bin

rwx 640 html

16 -rwx 3082112 c2950-i6q4l2-mz.121-22.EA1.bin

18 -rwx 309 env_vars

682496 bytes available (7058944 bytes used)

Why is it saying the file doesn't exist, when a dir flash: cmd shows it does..? Cheers.

Hmm..Try booting into IOS mode and try deleting the same.

For this you will have to set the boot parameter as

set BOOT flash: --> this should be the new file name.

Once it completely boots to proper IOS mode, try deleting the old flash file again from privilege mode.

Switch#delete flash: (or whatever file name it is)

HTH

Sankar Nair
UC Solutions Architect
Pacific Northwest | CDW
CCIE Collaboration #17135 Emeritus

Hi All,

getting weirder by the minute,

switch: dir flash:

Directory of flash:/

2 -rwx 3596 config.old

3 -rwx 856 vlan.dat

17 drwx 64 lost+found

5 drwx 640 html

16 -rwx 3082112 c2950-i6q4l2-mz.121-22.EA1.bin

19 -rwx 309 env_vars

682496 bytes available (7058944 bytes used)

switch: boot

Loading "c2950-i6q4l2-mz.121-6.EA2c.bin"...c2950-i6q4l2-mz.121-6.EA2c.bin: permi

ssion denied

Error loading "c2950-i6q4l2-mz.121-6.EA2c.bin"

Interrupt within 5 seconds to abort boot process.

Loading "flash:/lost+found/00004"...############################################

################################################################################

##########################################################

File "flash:/lost+found/00004" uncompressed and installed, entry point: 0x800100

00

executing...

Can someone tell me it's not me..? Lost+Found(never created/named any folder/file this name) Cheers.

EDIT: Just to add more confusion,

when CMDing set BOOT lost+found I get the following,

switch: set BOOT lost+found

switch: boot

Loading "lost+found"...lost+found: permission denied

Error loading "lost+found"

Interrupt within 5 seconds to abort boot process.

Loading "flash:/lost+found/00004"...############################################

################################################################################

##########################################################

File "flash:/lost+found/00004" uncompressed and installed, entry point: 0x800100

00

executing...

and CMDing set BOOT c2950-i6q4l2-mz.121-22.EA1.bin gives this,

switch: set BOOT c2950-i6q4l2-mz.121-22.EA1.bin

switch: boot

Loading "c2950-i6q4l2-mz.121-22.EA1.bin"...c2950-i6q4l2-mz.121-22.EA1.bin: permi

ssion denied

Error loading "c2950-i6q4l2-mz.121-22.EA1.bin"

Interrupt within 5 seconds to abort boot process.

Loading "flash:/lost+found/00004"...############################################

################################################################################

##########################################################

File "flash:/lost+found/00004" uncompressed and installed, entry point: 0x800100

00

executing...

I'm lost...cheers, again.

coolboarderguy...

just use

boot flash:c2950-i6q4l2-mz.121-22.EA1.bin and

then get the switch up and running

and configure the right boot image

via

conf t

boot system flash:c2950-i6q4l2-mz.121-22.EA1.bin

michelpe
Cisco Employee
Cisco Employee

You should have used the CLI

delete flash:c2950-i6q4l2-mz.121-6.EA2c.bin

not just

delete c2950-i6q4l2-mz.121-6.EA2c.bin

Hi All,

ok, I guess the rom gets confused with 2 .bin files, even with setting the BOOT to a particular file. Should I be configuring the terminal or memory to set the BOOT..? Cheers, from a newbie.

Hi All,

maybe I didn't explain mysaelf to wqell yesterday. I'm not wishing to config the setup-config file. Here we resell switches/routers etc. I am responsibile for troubleshooting/fixing etc. With this particular switch, as with most, I just reset to default and make sure it passes the POST and boots etc. We don't even test the interfaces individually, as buyers buy under the condition that they are not tested. I simply want to fix the error that happens at boot, where whatever file set to BOOT gives the permission denied error and then boots with the other .bin. Hope that clears things with this. Appreciating the continued help here. Cheers.