Linux Boot Sequence
MBR will load bootloader (GRUB)
GRUB is the abbreviation for the Grand Unified Bootloader (Multi-os boot manager).
The grub configuration file is: grub.conf configuration overrides the system kernel load
Set Grub MD5 encryption command: Grub-md5-crypt
Password = plaintext or Password--md5 ciphertext
The system starts and loads the INIT program:
Init configuration file/etc/inittab
decided to use that RunLevel run level 0~~6
Common shutdown Commands:
Shutdown-h now
Halt
Poweroff
Init 0
Common Restart Commands:
Shutdown-r now
Reboot
Init 6
Forgot root Password reset method:
Single-user mode modifies the user's password:
Restart
Press E, edit
Enter the interface
Add init/bin/sh as location and delete Rheb section, press CTRL X
Login is successful, you can change the root password
Enter the following command (re-mount the pair to be read and write)
Modify the passwd file directly
As below, you can directly remove the password and save, log in and then make changes
Linux system related, forgot root password