cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
10354
Views
0
Helpful
10
Replies

I can't delete files in Access Point 1602 running in ROMMON mode

jesus.briceno
Level 1
Level 1

Hi:

I want to know if is possible to delete files or directories that are currently allocated in flash memory. As you can see in the following output, I'm in ROMMON mode and any of the images can't boot propoerly.


ap: dir flash:
Directory of flash:/

10 drwx 832 <date> ap1g2-k9w8-mx.153-3.JBB
7 -rwx 230 <date> env_vars
5 drwx 0 <date> ?
6 -rwx 1048 <date> private-multiple-fs
39 drwx 384 <date> configs
8 drwx 64 <date> ap1g2-k9w7-mx.152-4.JB6
41 drwx 832 <date> ap1g2-k9w7-mx.153-3.JD
265 -rwx 349557 <date> crashinfo_20160705-223838-UTC

7404544 bytes available (24531456 bytes used)
ap:

Best regards.

1 Accepted Solution

Accepted Solutions

Ok, let's do this the easy way. 

If autonomous IOS is what you want the AP to boot up with, the easiest (and fastest) way to get this running is to format the flash of the AP (Command:  format flash:). 

Once the format is complete load the autonomous IOS using the Mode Button method.

View solution in original post

10 Replies 10

Leo Laohoo
Hall of Fame
Hall of Fame

Post the complete output to the command "set".

Hi Leo, here is the output:

ap: set
?=
BOOT=flash:/ap1g2-k9w7-mx.152-4.JB6/ap1g2-k9w7-mx.152-4.JB6
CRASHINFO=flash:crashinfo_20160705-223838-UTC
DEFAULT_ROUTER=10.0.0.1
ENABLE_BREAK=yes
IP_ADDR=10.0.0.1
MANUAL_BOOT=no
NETMASK=255.255.255.224
NEW_IMAGE=yes
RELOAD_REASON=23
ROM_PERSISTENT_UTC=1467758293
TERMLINES=0
tftp_init=
ap:
ap:

Regards.

What image/IOS do you want the IOS to boot?

I'd like to use ap1g2-k9w7-mx.153-3.JD. In fact, I tried before to use it, but it didn't work (I used this command: set BOOT flash:/ap1g2-k9w7-mx.153-3.JD/ap1g2-k9w7-mx.153-3.JD if you are wondering), so I tried with ap1g2-k9w7-mx.152-4.JB6 and it appeared to be a problem while extracting files due to space in flash.

BOOT=flash:/ap1g2-k9w7-mx.152-4.JB6/ap1g2-k9w7-mx.152-4.JB6

Currently, the AP is instructed to boot this file (above).  One way of forcing the AP to another IOS is to delete the file specified in the boot variable statement.  

Command:  delete flash:/ap1g2-k9w7-mx.152-4.JB6/ap1g2-k9w7-mx.152-4.JB6

Once this command is entered the IOS file gets deleted.  The AP will now be forced to boot the next available IOS, ap1g2-k9w7-mx.152-4.JB6.

Post the entire bootup process.  I want to see where the AP is failing.

Leo, I get this when I try to delete the file:

ap:
ap: delete flash:/ap1g2-k9w7-mx.152-4.JB6/ap1g2-k9w7-mx.152-4.JB6
Are you sure you want to delete "flash:/ap1g2-k9w7-mx.152-4.JB6/ap1g2-k9w7-mx.152-4.JB6" (y/n)?y
File "flash:/ap1g2-k9w7-mx.152-4.JB6/ap1g2-k9w7-mx.152-4.JB6" not deleted -- no such file or directory
ap:

Ok, let's do this the easy way. 

If autonomous IOS is what you want the AP to boot up with, the easiest (and fastest) way to get this running is to format the flash of the AP (Command:  format flash:). 

Once the format is complete load the autonomous IOS using the Mode Button method.

Hi Leo:

The format flash: command helped me to get free space in flash again. I could extract ap1g2-k9w7-mx.153-3.JD and after boot process the AP is in autonomous mode and working fine, as I wanted. Thanks a lot for your help.

Thanks for the update and don't forget to mark this thread as "Answered".

Review Cisco Networking for a $25 gift card