However, this time we will do a password recovery on linux operating system. The term is commonly referred to as "single mode". There are two methods that we can use to reach single mode. The same way together through editing grub2. Two methods will be discussed on this article.
Method 1
- Turn on your computer.- when you are looking grub2 menu, select your kernel, and then press "e" to edit that kernel option.
- in the end line of "linux /boot/vmlinuz-2.6.32...." you will see "ro quiet".
- add a text the end of ro quite with init=/bin/bash.
- Press Ctrl X or F10 to boot.
Wait until finish, in automaticly you are in root access. So you can change your password now.
Method 2
- Turn on your computer.- select your kernel and then press "e" to editing that kernel.
- in the end line of "linux /boot/vmlinuz-2.6.32...." you will see "ro quiet".
- in the end of ro quite add text single. Like below.
- Press Ctrl X or F10 to boot.
Wait, until show in root access. Now, you can change your root password under single mode. Thanks for your visit.
Paper 4Share - [Recovery Password] Forgot root Password on Linux / Ubuntu / Debian / CentOS