This was taken from Ciscos website and modified for in procedure examples-
http://www-1.cisco.com/warp/customer/474/pswdrec_6000.html
I recently used this to recover the password on my test switch, a Catalyst 6509.
This will work on the following switches:
Catalyst 2900
Catalyst 2900 Series G
Catalyst 2926
Catalyst 4000
Catalyst 4840G
Catalyst 4908G-L3
Catalyst 5000
Catalyst 5500
Catalyst 6000
Step-by-Step Procedure with examples:
1.Attach a terminal or PC with terminal emulation to the console port of the switch. Use the following terminal settings:
9600 baud rate
no parity
8 data bits
1 stop bit
2.Turn off the switch and then turn it on.
! Important You must complete steps 3 through 7 within 30 seconds after you turn the switch off and on and the first time you see the password prompt.!
3.Press Enter at the password prompt to enter a null password.
Boot image: bootflash:cat6000-sup.5-3-3-CSX.bin
Running System Diagnostics from this Supervisor (Module 1)
This may take up to 2 minutes....please wait
Cisco Systems Console
Enter password

assword changed.
Console> (enable)
<press Enter>
4.Type enable at the prompt to enter enable mode.
5.Press Enter at the password prompt to enter a null password.
Console> enable
Enter password:
<press Enter>
6.Change the password using the set password command or the set enablepass command.
7.Press Enter at the prompt to enter the old password.
Console> (enable) set password
Enter old password:
<press Enter>
Enter new password:
<type your new password>
Retype new password:
<type your new password>
Password changed.
Console> (enable) set enablepass
Enter old password:
<press Enter>
Enter new password:
<type your new password>
Retype new password:
<type your new password>
Password changed.
Console> (enable)
8. Passwords changed.