1. Calculate GRUB's MD5 encryption password:
#grub-md5-crypt
Password:
Retype Password:
After you enter the password for two times to confirm, you will calculate the MD5 encryption value of the password you entered, such as: $1$pfddv1$3x/xnizeysusf7fl9buuj/
The value after which the password is copied for MD5 encryption.
2. Configure Grub
[[email protected] ~]# cat/boot/grub/grub.conf # grub.conf generated by anaconda## Grub after making changes to this file# notice:you has a/boot partition. This means that# all kernel and initrd paths is relative to/boot/, eg.# root (hd0,0) # kernel /vmlinuz-version ro root=/dev/sda2# initrd/initrd-version.img#boot=/dev/sdadefault=0timeout=5Password--md5 $1$pfddv1$3x/xnizeysusf7fl9buuj/Splashimage= (hd0,0)/grub/splash.xpm.gzhiddenmenutitle Red Hat Enterprise Linux Server (2.6.18-308.el5) root (hd0,0) Kernel/vmlinuz-2.6.18-308.el5 ro root=label=/rhgb quiet initrd/initrd-2.6.18-308.el5.img 3. Effective after reboot
"Linux" Grub encryption