How to tutorials, Linux, Linux.Tips, Raspberry Pi

How to boot Raspberry Pi into single user mode?

1 min read

You can configure Raspberry Pi to boot into single-user mode by editing the cmdline.txt using an external computer system. Single user mode on Raspberry Pi allows you the boot the system as user id 0 which the root user. Single user mode allows you to change forgotten user passwords and make other modification to correct your Raspberry Pi system with superuser permissions.

How to boot into single user mode?
  • Insert the card in your Windows/Mac SD card reader
  • Edit the file “cmdline.txt” and append “init=/bin/sh”
  • Insert the card back into the Raspberry Pi again and boot up
  • When prompt available, enter “su” to log as root (with no password)

That’s it now you have successfully logged onto your Raspberry Pi into single user mode as root user without password, you can reset your passwords etc.


Leave a Reply