- Using another computer, edit the
cmdline.txtfile in the boot partition to include this at the end of the line:
init=/bin/sh
- Boot again
- Become root
# su
- Remount so shadow files are correct
root@home: mount -o remount,rw /
- Reset the password
root@home: passwd {username}
- Power down and remove
cmdline.txtedits - Boot again and get your Pi on!