Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need help switch says permission denied !

Status
Not open for further replies.

greythoundny

Technical User
Oct 10, 2008
2
US
I have been trying to delete everything in flash and it says permission denied how can I get it to be permission granted I would like to wipe out this switch and reload it ( purchased it off ebay and I would like to clear it of the old owners settings !!! ) Thank you in advance !!!


€PT€


C3500XL Boot Loader (C3500-HBOOT-M) Version 12.0(5.2)XU, MAINTENANCE INTERIM SOF
TWARE
Compiled Mon 17-Jul-00 18:42 by ayounes
starting...
Base ethernet MAC Address: 00:04:dd:e8:2b:80
Xmodem file system is available.

The system has been interrupted prior to initializing the
flash filesystem. The following commands will initialize
the flash filesystem, and finish loading the operating
system software:

flash_init
load_helper
boot

switch: flash_init
Initializing Flash...
flashfs[0]: 111 files, 3 d
flashfs[0]: 111 files, 3 d
flashfs[0]: Total bytes: 3612672
flashfs[0]: Bytes used: 2775552
flashfs[0]: Bytes available: 837120
flashfs[0]: flashfs fsck took 4 seconds.
...done Initializing Flash.
Boot Sector Filesystem (bs:) installed, fsid: 3
Parameter Block Filesystem (pb:) installed, fsid: 4
switch: load_helper
switch: dir flash:
Directory of flash:/

2 -rwx 1645807 <date> c3500XL-c3h2s-mz-120.5.2-XU.bin
3 -rwx 94680 <date> c3500XL-diag-mz-120.5.2-XU
4 drwx 6784 <date> html
111 -rwx 276 <date> env_vars
112 -rwx 2056 <date> vlan.dat
113 -rwx 3309 <date> config.text
114 -rwx 3309 <date> config.old

837120 bytes available (2775552 bytes used)
switch: delete c3500XL-diag-mz-120.5.2-XU
Are you sure you want to delete "c3500XL-diag-mz-120.5.2-XU" (y/n)?y
File "c3500XL-diag-mz-120.5.2-XU" not deleted -- permission denied
switch:
 
Why do you want to delete that file? Are you doing password recovery?
 
Just do a write erase and then delete the vlan.dat file in flash and reload , thats all you need to do .
 
Since you're doing a "password recovery" process, you only need to delete the vlan.dat and config.text files.
switch:delete flash:vlan.dat
switch:delter flash:config.text
switch:reset

The switch will come up "clean". Unless you're wanting to upload another IOS through xmodem, leave the other files alone.
 
Typing is not my strength! Replace delter with delete in my previous post.
 
try this:
switch# delete /r /f flash:c3500XL-diag-mz-120.5.2-XU

where /r is for /recursive and /f is for /force.
Then install new ios required

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top