1, is to use the super user to execute the grub-md5-crypt, the command means that the grub Password using md5 encryption method, if the direct use of plaintext encryption this step can be omitted. Enter the password twice, and then the encrypted password will appear, a string, copy string 2, edit/boot/grub/menu. in the lst file, add this line of password under timeout -- md5 $1 $ iMJtJ/$ c4uwl2vrow.ttvb3abwqa. where
1, is to use the super user to execute the grub-md5-crypt, the command means that the grub Password using md5 encryption method, if the direct use of plaintext encryption this step can be omitted. Enter the password twice, and then the encrypted password will appear, a string, copy the string
2. Edit the/boot/grub/menu. lst file and add the password -- md5 $1 $ iMJtJ/$ c4uwl2vrow.ttvb3abwqa under time out. The red part is the string you just copied.
3. Adding a lock under title linux indicates that the lock will be triggered when it is started, and the lock will be stopped if no password is entered.
4. Restart. You can hear it at grub startup. Press p and enter the password to boot the system normally.