- Unplug Cisco 3560-X power
 
- Hold down "Mode" button on front, and plug in power
 
- Continue to hold "Mode" for about 15 seconds, until the SYST LED turns solid green, then release
 
- Log into the switch via console, you should see the "switch:" prompt
 
- Enter the command 
flash_init 
- Rename the config file with 
rename flash:config.text flash:config.old 
- Enter the command 
boot to load IOS 
- Enter 
no to abort system configuration dialog 
- Proceed to enable mode with the 
en command 
- Type 
rename flash:config.old flash:config.text 
- Then 
copy flash:config.text system:running-config 
- The configuration has now been loaded, go into 
conf t and change the user/enable password 
- Once changed, save the new passwords with 
wr mem