01-10-2005 10:22 PM - edited 03-02-2019 08:59 PM
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...
01-10-2005 10:58 PM
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!!
01-10-2005 11:16 PM
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
3 -rwx 856
4 -rwx 2253443
rwx 640
16 -rwx 3082112
18 -rwx 309
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
3 -rwx 856
4 -rwx 2253443
rwx 640
16 -rwx 3082112
18 -rwx 309
682496 bytes available (7058944 bytes used)
Why is it saying the file doesn't exist, when a dir flash: cmd shows it does..? Cheers.
01-10-2005 11:27 PM
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:
Once it completely boots to proper IOS mode, try deleting the old flash file again from privilege mode.
Switch#delete flash:
HTH
01-11-2005 12:36 AM
Hi All,
getting weirder by the minute,
switch: dir flash:
Directory of flash:/
2 -rwx 3596
3 -rwx 856
17 drwx 64
5 drwx 640
16 -rwx 3082112
19 -rwx 309
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...
01-11-2005 01:09 AM
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
01-11-2005 01:08 AM
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
01-11-2005 01:19 AM
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.
01-11-2005 05:42 PM
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.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide