Ano-Tech Computers
Enter keyword:

Linux: Booting with 'single' argument requires password
Problem:
When trying to recover a lost password, I tried adding the kernel argument 'single' to boot into single user mode. Unfortunately, the init script asks for the root password so I can't reset the password.
 
Solution:
Instead of 'single', use the kernel argument 'init=/bin/sh' to prevent the braindead init script from running. Instead, you get a nice little shell prompt.

Notice that only your root partition will be mounted, and it will be read-only. You can make it read-write using this command: "mount -o rw,remount /".

 
Discuss this solution
Did this article solve your problem? Yes No Did not apply

We welcome anyone who is willing to contribute to this public knowledge base, contact siteadmin@atc.no if you have information you would like to share. The idea is not to replace the commercial support sites, but to publish those hard-to-find solutions you've found yourself looking for over and over again.

Show all articles