Password Protect GRUBPassword protect your boot loader so that you get an additional level of security right at the booting time. Also you get a protection layer of protection at physical level. Protect your Server by locking GRUB at boot to avoid any unauthorized access.First make backup of two files, so that if anything goes bad, you have the option to revert back. Create a backup of ‘ /etc/grub2/grub.cfg‘ as ‘ /etc/grub2/grub.cfg.old‘. # cp /boot/grub2/grub.cfg /boot/grub2/grub.cfg.oldAlso, Create a backup of ‘ /etc/grub.d/10linux‘ as ‘ /etc/grub.d/10linux.old‘. # cp /etc/grub.d/10linux /etc/grub.d/10linux.oldNow open ‘ /etc/grub.d/10linux‘ and add the below line at the end of the file.
Encrypted Grub PasswordReplace the password with the one generated on your system. Don’t forget to cross check the password.Also note you need to generate grub.cfg in this case as well, as described above. Reboot and next time you press ‘ e‘ to edit, you will be prompted for username and password.We’ve tried to cover most of the necessary post-installation points of industry standard distributions RHEL 7 and CentOS 7. If you find that we’ve missed certain points or you need to extend this post with a new post-install things, you may share with us, we will include your point in this article by extending it.
Dual Boot Installation with Grub. Installation of Grub2 and dual boot with windows 10. If your Grub configuration is not as you like follow this tutorial. First reinstall Grub. Sudo yum reinstall grub2-tools Login as root in a terminal. Su In another terminal, get information about your Windows 10 hard drive, in my case it was named '/dev/sdb1'. Setting Up grub2 on CentOS 7. This article is largely based on Things to Know About Grub2 and is intended for those who open.