{"id":1251,"date":"2020-07-01T07:52:21","date_gmt":"2020-07-01T00:52:21","guid":{"rendered":"https:\/\/www.whplus.com\/blog\/?p=1251"},"modified":"2021-06-23T10:06:21","modified_gmt":"2021-06-23T03:06:21","slug":"manual-installation-of-grub2-boatloader","status":"publish","type":"post","link":"https:\/\/www.whplus.com\/blog\/2020\/07\/01\/manual-installation-of-grub2-boatloader.html","title":{"rendered":"Manual Installation of Grub2 Boatloader"},"content":{"rendered":"<p>GRUB2\u00a0is the latest version of\u00a0<a href=\"https:\/\/www.gnu.org\/software\/grub\/\">GNU GRUB<\/a>, the\u00a0GRand Unified Bootloader. A bootloader is the first software program that runs when a computer starts. It is responsible for loading and transferring control to the operating system kernel.<\/p>\n<p>Normally,\u00a0GRUB2\u00a0will be installed and set up by the installer,\u00a0Anaconda, during the installation process. You will probably never have to deal with manual installation of\u00a0GRUB2. However, in certain situations , you will want to install\u00a0GRUB2\u00a0manually, especially if you need to repair the existing\u00a0GRUB2\u00a0installation or you want to change its configuration.<\/p>\n<p>This procedure shows the steps to install\u00a0GRUB2\u00a0on your\u00a0Master Boot Record\u00a0(MBR) of your primary hard disk.<\/p>\n<p>1. Install grub2<br \/>\n<code># yum -y install grub2<\/code><\/p>\n<p>2. Create a configuration file for GRUB2.<br \/>\n<code># grub2-mkconfig -o \/boot\/grub2\/grub.cfg<\/code><\/p>\n<p>3. List block devices available on the system. Identify the primary hard disk. Usually, it is the sda device.<br \/>\n<code># lsblk<\/code><\/p>\n<p>4. Install GRUB2 in the MBR of the primary hard disk.<br \/>\n<code># grub2-install \/dev\/sda<\/code><\/p>\n<p>5. Reboot your computer to boot with the newly installed bootloader.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>GRUB2\u00a0is the latest version of\u00a0GNU GRUB, the\u00a0GRand Unified Bootloader. A bootloader is the first software program that runs when a computer starts. It is responsible for loading and transferring control to the operating system kernel. Normally,\u00a0GRUB2\u00a0will be installed and set up by the installer,\u00a0Anaconda, during the installation process. You will probably never have to deal\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.whplus.com\/blog\/2020\/07\/01\/manual-installation-of-grub2-boatloader.html\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-1251","post","type-post","status-publish","format-standard","hentry","category-tutorial"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.whplus.com\/blog\/wp-json\/wp\/v2\/posts\/1251","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.whplus.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.whplus.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.whplus.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.whplus.com\/blog\/wp-json\/wp\/v2\/comments?post=1251"}],"version-history":[{"count":3,"href":"https:\/\/www.whplus.com\/blog\/wp-json\/wp\/v2\/posts\/1251\/revisions"}],"predecessor-version":[{"id":1315,"href":"https:\/\/www.whplus.com\/blog\/wp-json\/wp\/v2\/posts\/1251\/revisions\/1315"}],"wp:attachment":[{"href":"https:\/\/www.whplus.com\/blog\/wp-json\/wp\/v2\/media?parent=1251"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.whplus.com\/blog\/wp-json\/wp\/v2\/categories?post=1251"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.whplus.com\/blog\/wp-json\/wp\/v2\/tags?post=1251"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}