Instance resolution: retrieve the lost Linux system Grub Password
Source: Internet
Author: User
Article Title: instance resolution: retrieve the lost Linux Grub Password. Linux is a technology channel of the IT lab in China. Including desktop applications, Linux system management, kernel research, embedded systems, open source, and other basic categories. If you forget the root password, you can change Grub to the single-user mode to reset the password, what should I do if I forget my Grub Password?
A. Enter the Linux rescue mode: boot the system with a CD, enter "linux rescue" at the "boot>" prompt, and press Enter.
B. if md5 encryption is not used, view/modify "/mnt/sysimage/boot/grub. in conf "," password xxxxxx "* can be deleted directly. If it is md5 encrypted, modify "password -- md5 xxxxxxxxxxxxxxxxxx" to the plaintext password (changed to "password xxxxxx") or directly Delete this sentence.
C. After you exit the shell with the "exit" command, the system will automatically restart and the new settings will take effect.
Of course, if you run the "chroot/mnt/sysimage" command to reset the root partition, the corresponding path is "/boot/grub. conf ".
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service