cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
114896
Views
23
Helpful
20
Replies

Changeing flash: from read only to read write

Vikingplanet
Level 1
Level 1

good day.

 

i have a Catalyst 3650 that i was going to delete the config file from. and for som reason it was set up previously with the wrong enable password. so i went to ROMMON to delete the config file from there, but then i noticed that flash: was in read only mode and i cant delete the file because of it. so my question is. is there a way to change it to read write, and if so, how? or is there another way i can delete the config file?

 

switch: delete flash:nvram_config
Are you sure you want to delete "flash:nvram_config" (y/n)?y
File "flash:nvram_config" not deleted -- read only file system
switch: dir

List of filesystems currently registered:

              xmodem[0]: (read-only)
                null[1]: (read-write)
                  bs[3]: (read-only)
               flash[18]: (read-only)
                tftp[19]: (read-write)
1 Accepted Solution

Accepted Solutions

Abheesh Kumar
VIP Alumni
VIP Alumni

Hi,

Go to ROMMON and give a try with below commands

switch: flash_init

switch: load_helper

switch: set BYPASS_STARTUP_CONFIG=1

after entering boot command  you will get the initial config dialog and do the basic configuration and save. Then reload the switch and go to ROMMON and change the variable.

set BYPASS_STARTUP_CONFIG=0

If the above command didnt works try with the below

 

switch: set SWITCH_IGNORE_STARTUP_CFG=1

switch: set SWITCH_IGNORE_STARTUP_CFG=0

HTH

Abheesh

View solution in original post

20 Replies 20

Abheesh Kumar
VIP Alumni
VIP Alumni

Hi,

Go to ROMMON and give a try with below commands

switch: flash_init

switch: load_helper

switch: set BYPASS_STARTUP_CONFIG=1

after entering boot command  you will get the initial config dialog and do the basic configuration and save. Then reload the switch and go to ROMMON and change the variable.

set BYPASS_STARTUP_CONFIG=0

If the above command didnt works try with the below

 

switch: set SWITCH_IGNORE_STARTUP_CFG=1

switch: set SWITCH_IGNORE_STARTUP_CFG=0

HTH

Abheesh

The second set of commands worked nicely,
thanks for the help :)

this is also not working. as not recognizing '=' sign

Sorry for the almost year later reply. In hopes that any one else come here looking for why the '=' doesn't work.

Use this command first...

set SWITCH_IGNORE_STARTUP_CFG then use

set SWITCH_IGNORE_STARTUP_CFG 1

 

The first command adds it to the Set Directory and the second command adds the value. You may be able to get away with doing it together in the same command but I separate them for practical use.

I have same Problem .But when i try to enter flash_init command it displays the following :

monitor: command "flash_init" not found.

 

Hi Frds,

 

i have 3650 in which i am not able to get the login screen on console and also via Telnet. see below logs

 

C3650 con0 is now available

 

Press RETURN to get started.


% Authentication failed

% Authentication failed

% Authentication failed

 

2 - when i am trying to do Password recovery Switch  boots in READ ONLY MODE and Load_HELPER is not available.

 


Booting...
Interface GE 0 link down***ERROR: PHY link is down

The system has been interrupted prior to initializing some
filesystems and loading the operating system software.
Console will be reset to 9600 baud rate, need to change terminal setting first.
The following commands will initialize the remaining filesystems,
and finish loading the operating system software:

flash_init
boot


switch:

 

3 ---- there is no Config.text file instead nvram_config file is available.

 


switch: dir flash:
Directory of flash:/

15489 drwx 4096 .
2 drwx 4096 ..
15490 -rw- 81992100 cat3k_caa-base.SPA.03.07.04E.pkg
15491 -rw- 5667516 cat3k_caa-drivers.SPA.03.07.04E.pkg
15492 -rw- 36656136 cat3k_caa-infra.SPA.03.07.04E.pkg
15493 -rw- 46349632 cat3k_caa-iosd-universalk9.SPA.152-3.E4.pkg
15494 -rw- 28904332 cat3k_caa-platform.SPA.03.07.04E.pkg
15495 -rw- 128582464 cat3k_caa-wcm.SPA.10.3.141.0.pkg
15496 -rw- 1236 packages.conf
46465 drwx 4096 virtual-instance
54209 drwx 4096 vman_fdb
69697 drwx 4096 dc_profile_dir
15497 -rw- 2097152 nvram_config
69699 drwx 4096 wnweb_store
15498 -rw- 1600 vlan.dat

1288658944 bytes available (359235584 bytes used)

switch:

 

4 ---- cannot delete NVram_config.

 

please let me know how to do the PAssword recovery in this CASE.

 

ankitsatya30
Level 1
Level 1
how to solve this issue? plz help

are you trying to recover 3560 switch

HTH
Abheesh

its 3650 switch. m trying to copy IOS file from USBflash to flash

Is dir usbflash: showing the list of files in usb, then boot from usbflash:
boot usbflash:<filename>

HTH
Abheesh

yes its showing. i have tried to boot from usbflash but again not allowing to copy files from USBflash to flash.

execute the below commands, Switch will boot from usbflash not from flash
boot usbflash:<filename>
i

HTH
Abheesh

You are in ROMMON mode right.???

yes i am in ROMMON mode. have tried to boot from USBflash but not getting in
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card