HowTo reset RaspBerry “pi” and “root” password

  1. Insert the RaspBerry Pi SD card into into your computer or laptop USB Port then edit the file cmdline.txtdwc_otg.lpm_enable=0 console=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait init=/bin/sh
  2. Remove the SD Card from your computer/laptop and insert it back to your RaspBerry Pi
  3. Typemount -o remount, rw /
    passwd pi
    passwd root
    exec /sbin/init
  4. Undo cmdline.txt, remove “init=/bin/sh
  5. Done