{"id":12669,"date":"2019-03-28T06:54:14","date_gmt":"2019-03-28T06:54:14","guid":{"rendered":"http:\/\/www.appservgrid.com\/paw92\/?p=12669"},"modified":"2019-03-28T06:54:14","modified_gmt":"2019-03-28T06:54:14","slug":"how-to-rescue-repair-and-reinstall-grub-boot-loader-in-ubuntu","status":"publish","type":"post","link":"https:\/\/www.appservgrid.com\/paw92\/index.php\/2019\/03\/28\/how-to-rescue-repair-and-reinstall-grub-boot-loader-in-ubuntu\/","title":{"rendered":"How to Rescue, Repair and Reinstall GRUB Boot Loader in Ubuntu"},"content":{"rendered":"<p>This tutorial will guide you on how to rescue, repair or reinstall a damaged Ubuntu machine which cannot be booted due to the fact that the Grub2 boot loader has been compromised and cannot load the boot loader which transfers the control further to the Linux kernel. In all modern Linux operating systems GRUB is the default boot loader.<\/p>\n<p>This procedure has been successfully tested on an\u00a0<strong>Ubuntu 16.04<\/strong>\u00a0server edition with the Grub boot loader damaged. However, this tutorial will only cover Ubuntu server GRUB rescue procedure, although the same procedure can be successfully applied on any Ubuntu system or on the majority of Debian-based distributions.<\/p>\n<h4>Requirements<\/h4>\n<ol>\n<li>\n<ol>\n<li><a href=\"https:\/\/www.ubuntu.com\/download\/server\" target=\"_blank\" rel=\"nofollow noopener\">Download Ubuntu Server Edition DVS ISO Image<\/a><\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<p>You try to boot your Ubuntu server machine and you see that the operating systems no longer starts-up and you discover that the boot loader program no longer works?<\/p>\n<p>Typically, the\u00a0<strong>GNU GRUB<\/strong>\u00a0minimal console appears on your screen, as illustrated on the below screenshot. How can you restore the Grub in Ubuntu?<\/p>\n<div id=\"attachment_27205\" class=\"wp-caption aligncenter\">\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-27205\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/09\/Ubuntu-Grub-Console.png\" alt=\"Ubuntu Grub Console\" width=\"720\" height=\"400\" aria-describedby=\"caption-attachment-27205\" data-lazy-loaded=\"true\" \/><\/p>\n<p id=\"caption-attachment-27205\" class=\"wp-caption-text\">Ubuntu Grub Console<\/p>\n<p>There are a lot of methods in Linux that can be used to re-install a broken grub, some can involve the ability to work and restore the boot loader by using the Linux command line and others are fairly simple and implies booting the hardware with a Linux live CD and using the GUI indications to repair the damaged boot loader.<\/p>\n<p>Among the simplest methods, that can be used in Debian based distributions, especially on Ubuntu systems, is the method presented in this tutorial, which involves only booting the machine into the Ubuntu live DVD ISO image.<\/p>\n<p>The ISO image can be downloaded from the following link:\u00a0<a href=\"http:\/\/releases.ubuntu.com\/\" target=\"_blank\" rel=\"nofollow noopener\">http:\/\/releases.ubuntu.com\/<\/a><\/p>\n<h3>Reinstall Ubuntu GRUB Boot Loader<\/h3>\n<p><strong>1.<\/strong>\u00a0After you\u2019ve downloaded and burned the\u00a0<strong>Ubuntu ISO<\/strong>\u00a0image, or created a bootable USB stick, place the bootable media into your appropriate machine drive, reboot the machine and instruct the\u00a0<strong>BIOS<\/strong>\u00a0to boot into Ubuntu live image.<\/p>\n<div id=\"attachment_27206\" class=\"wp-caption aligncenter\">\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-27206\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/09\/Machine-Boot-Menu.png\" alt=\"Machine Boot Menu\" width=\"640\" height=\"480\" aria-describedby=\"caption-attachment-27206\" data-lazy-loaded=\"true\" \/><\/p>\n<p id=\"caption-attachment-27206\" class=\"wp-caption-text\">Machine Boot Menu<\/p>\n<\/div>\n<p><strong>2.<\/strong>\u00a0On the first screen, choose the\u00a0<strong>language<\/strong>\u00a0and press\u00a0<strong>[Enter]<\/strong>\u00a0key to continue.<\/p>\n<div id=\"attachment_27207\" class=\"wp-caption aligncenter\">\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-27207\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/09\/Choose-Language.png\" alt=\"Choose Language\" width=\"640\" height=\"480\" aria-describedby=\"caption-attachment-27207\" data-lazy-loaded=\"true\" \/><\/p>\n<p id=\"caption-attachment-27207\" class=\"wp-caption-text\">Choose Language<\/p>\n<\/div>\n<p><strong>3.<\/strong>\u00a0On the next screen, press\u00a0<code>F6<\/code>\u00a0function key in order to open the other options menu and select\u00a0<strong>Expert<\/strong>\u00a0mode option. Then, hit\u00a0<strong>Escape<\/strong>\u00a0key to return to\u00a0<strong>Boot Options<\/strong>\u00a0line in editing mode, as illustrated in the below screenshots.<\/p>\n<div id=\"attachment_27209\" class=\"wp-caption aligncenter\">\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-27209\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/09\/Ubuntu-Expert-Mode.png\" alt=\"Ubuntu Expert Mode\" width=\"640\" height=\"480\" aria-describedby=\"caption-attachment-27209\" data-lazy-loaded=\"true\" \/><\/p>\n<p id=\"caption-attachment-27209\" class=\"wp-caption-text\">Ubuntu Expert Mode<\/p>\n<\/div>\n<div id=\"attachment_27208\" class=\"wp-caption aligncenter\">\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-27208\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/09\/Ubuntu-Boot-Options.png\" alt=\"Ubuntu Boot Options\" width=\"640\" height=\"480\" aria-describedby=\"caption-attachment-27208\" data-lazy-loaded=\"true\" \/><\/p>\n<p id=\"caption-attachment-27208\" class=\"wp-caption-text\">Ubuntu Boot Options<\/p>\n<\/div>\n<p><strong>4.<\/strong>\u00a0Next, edit Ubuntu live image boot options by using the keyboard arrows to move the cursor just before the\u00a0<code>quiet<\/code>\u00a0string and write the following sequence as illustrated in the below screenshot.<\/p>\n<pre>rescue\/enable=true \r\n<\/pre>\n<div id=\"attachment_27210\" class=\"wp-caption aligncenter\">\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-27210\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/09\/Enable-Ubuntu-Rescue-Boot-Option.jpg\" sizes=\"auto, (max-width: 853px) 100vw, 853px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/09\/Enable-Ubuntu-Rescue-Boot-Option.jpg 853w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/09\/Enable-Ubuntu-Rescue-Boot-Option-768x576.jpg 768w\" alt=\"Enable Ubuntu Rescue Boot Option\" width=\"853\" height=\"640\" aria-describedby=\"caption-attachment-27210\" data-lazy-loaded=\"true\" \/><\/p>\n<p id=\"caption-attachment-27210\" class=\"wp-caption-text\">Enable Ubuntu Rescue Boot Option<\/p>\n<\/div>\n<p><strong>5.<\/strong>\u00a0After you\u2019ve wrote the above statement, press\u00a0<strong>[Enter]<\/strong>\u00a0key to instruct the live ISO image to boot into rescue mode in order to Rescue a broken system.<\/p>\n<div id=\"attachment_27211\" class=\"wp-caption aligncenter\">\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-27211\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/09\/Ubuntu-Rescue-Mode.png\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/09\/Ubuntu-Rescue-Mode.png 1024w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/09\/Ubuntu-Rescue-Mode-768x576.png 768w\" alt=\"Ubuntu Rescue Mode\" width=\"1024\" height=\"768\" aria-describedby=\"caption-attachment-27211\" data-lazy-loaded=\"true\" \/><\/p>\n<p id=\"caption-attachment-27211\" class=\"wp-caption-text\">Ubuntu Rescue Mode<\/p>\n<\/div>\n<p><strong>6.<\/strong>\u00a0On the next screen select the language you want to perform the system rescue and press\u00a0<strong>[enter]<\/strong>\u00a0key to continue.<\/p>\n<div id=\"attachment_27213\" class=\"wp-caption aligncenter\">\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-27213\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/09\/Choose-Language-in-Rescue-Mode.png\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/09\/Choose-Language-in-Rescue-Mode.png 800w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/09\/Choose-Language-in-Rescue-Mode-768x576.png 768w\" alt=\"Choose Language in Rescue Mode\" width=\"800\" height=\"600\" aria-describedby=\"caption-attachment-27213\" data-lazy-loaded=\"true\" \/><\/p>\n<p id=\"caption-attachment-27213\" class=\"wp-caption-text\">Choose Language in Rescue Mode<\/p>\n<\/div>\n<p><strong>7.<\/strong>\u00a0Next, select your appropriate location from the presented list and press\u00a0<strong>[enter]<\/strong>\u00a0key to move further.<\/p>\n<div id=\"attachment_27214\" class=\"wp-caption aligncenter\">\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-27214\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/09\/Select-Your-Location.png\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/09\/Select-Your-Location.png 800w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/09\/Select-Your-Location-768x576.png 768w\" alt=\"Select Your Location\" width=\"800\" height=\"600\" aria-describedby=\"caption-attachment-27214\" data-lazy-loaded=\"true\" \/><\/p>\n<p id=\"caption-attachment-27214\" class=\"wp-caption-text\">Select Your Location<\/p>\n<\/div>\n<p><strong>8.<\/strong>\u00a0On the next series of screens, select your\u00a0<strong>keyboard layout<\/strong>\u00a0as illustrated in the below screenshots<\/p>\n<div id=\"attachment_27218\" class=\"wp-caption aligncenter\">\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-27218\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/09\/Configure-Keyboard.png\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/09\/Configure-Keyboard.png 800w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/09\/Configure-Keyboard-768x576.png 768w\" alt=\"Configure Keyboard\" width=\"800\" height=\"600\" aria-describedby=\"caption-attachment-27218\" data-lazy-loaded=\"true\" \/><\/p>\n<p id=\"caption-attachment-27218\" class=\"wp-caption-text\">Configure Keyboard<\/p>\n<\/div>\n<div id=\"attachment_27216\" class=\"wp-caption aligncenter\">\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-27216\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/09\/Select-Keyboard-Country-Layout.png\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/09\/Select-Keyboard-Country-Layout.png 800w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/09\/Select-Keyboard-Country-Layout-768x576.png 768w\" alt=\"Select Keyboard Country Layout\" width=\"800\" height=\"600\" aria-describedby=\"caption-attachment-27216\" data-lazy-loaded=\"true\" \/><\/p>\n<p id=\"caption-attachment-27216\" class=\"wp-caption-text\">Select Keyboard Country Layout<\/p>\n<\/div>\n<div id=\"attachment_27215\" class=\"wp-caption aligncenter\">\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-27215\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/09\/Select-Keyboard-Layout.png\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/09\/Select-Keyboard-Layout.png 800w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/09\/Select-Keyboard-Layout-768x576.png 768w\" alt=\"Select Keyboard Layout\" width=\"800\" height=\"600\" aria-describedby=\"caption-attachment-27215\" data-lazy-loaded=\"true\" \/><\/p>\n<p id=\"caption-attachment-27215\" class=\"wp-caption-text\">Select Keyboard Layout<\/p>\n<\/div>\n<p><strong>9.<\/strong>\u00a0After detecting your machine hardware, loading some additional components and configuring the network you will be asked to setup your machine\u00a0<strong>hostname<\/strong>. Because you\u2019re not installing the system, just leave the system hostname as default and press\u00a0<strong>[enter]<\/strong>\u00a0to continue.<\/p>\n<div id=\"attachment_27220\" class=\"wp-caption aligncenter\">\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-27220\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/09\/Detecting-System-Hardware.png\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/09\/Detecting-System-Hardware.png 800w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/09\/Detecting-System-Hardware-768x576.png 768w\" alt=\"Detecting System Hardware\" width=\"800\" height=\"600\" aria-describedby=\"caption-attachment-27220\" data-lazy-loaded=\"true\" \/><\/p>\n<p id=\"caption-attachment-27220\" class=\"wp-caption-text\">Detecting System Hardware<\/p>\n<\/div>\n<div id=\"attachment_27219\" class=\"wp-caption aligncenter\">\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-27219\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/09\/Keep-System-Hostname.png\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/09\/Keep-System-Hostname.png 800w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/09\/Keep-System-Hostname-768x576.png 768w\" alt=\"Keep System Hostname\" width=\"800\" height=\"600\" aria-describedby=\"caption-attachment-27219\" data-lazy-loaded=\"true\" \/><\/p>\n<p id=\"caption-attachment-27219\" class=\"wp-caption-text\">Keep System Hostname<\/p>\n<\/div>\n<p><strong>10.<\/strong>\u00a0Next, based on the supplied physical location the installer image will detect your\u00a0<strong>time zone<\/strong>. This setup will accurately work only if your machine is connected to internet.<\/p>\n<p>However, it\u2019s unimportant if your time zone is not correctly detected, because you are not performing a system installation. Just press\u00a0<code>Yes<\/code>\u00a0to continue further.<\/p>\n<div id=\"attachment_27221\" class=\"wp-caption aligncenter\">\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-27221\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/09\/Keep-Timezone.png\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/09\/Keep-Timezone.png 800w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/09\/Keep-Timezone-768x576.png 768w\" alt=\"Keep Timezone\" width=\"800\" height=\"600\" aria-describedby=\"caption-attachment-27221\" data-lazy-loaded=\"true\" \/><\/p>\n<p id=\"caption-attachment-27221\" class=\"wp-caption-text\">Keep Timezone<\/p>\n<\/div>\n<p><strong>11.<\/strong>\u00a0On the next screen you\u2019ll be directly transferred into rescue mode. Here, you should choose your machine root file system from the provided list. In case your installed system uses a logical volume manager to delimit partitions, it should be easy to detect your\u00a0<strong>root<\/strong>\u00a0partition from the list by reviewing volume group names as illustrated in the below screenshot.<\/p>\n<p>Otherwise, in case you\u2019re not sure which partition is used for the\u00a0<code>\/(root)<\/code>\u00a0file system, you should try to probe each partition until you detect the root file system. After selecting the root partition press\u00a0<strong>[Enter]<\/strong>\u00a0key to continue.<\/p>\n<div id=\"attachment_27222\" class=\"wp-caption aligncenter\">\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-27222\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/09\/Choose-Root-Partition.png\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/09\/Choose-Root-Partition.png 800w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/09\/Choose-Root-Partition-768x576.png 768w\" alt=\"Choose Root Partition\" width=\"800\" height=\"600\" aria-describedby=\"caption-attachment-27222\" data-lazy-loaded=\"true\" \/><\/p>\n<p id=\"caption-attachment-27222\" class=\"wp-caption-text\">Choose Root Partition<\/p>\n<\/div>\n<p><strong>12.<\/strong>\u00a0In case your system has been installed with a separate\u00a0<code>\/boot<\/code>\u00a0partition, the installer will ask you whether you want to mount the separate\u00a0<strong>\/boot<\/strong>\u00a0partition. Select\u00a0<code>Yes<\/code>\u00a0and press\u00a0<strong>[Enter]<\/strong>\u00a0key to continue.<\/p>\n<div id=\"attachment_27223\" class=\"wp-caption aligncenter\">\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-27223\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/09\/Mount-Boot-Partition.png\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/09\/Mount-Boot-Partition.png 800w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/09\/Mount-Boot-Partition-768x576.png 768w\" alt=\"Mount Boot Partition\" width=\"800\" height=\"600\" aria-describedby=\"caption-attachment-27223\" data-lazy-loaded=\"true\" \/><\/p>\n<p id=\"caption-attachment-27223\" class=\"wp-caption-text\">Mount Boot Partition<\/p>\n<\/div>\n<p><strong>13.<\/strong>\u00a0Next, you will be provided with\u00a0<strong>Rescue operations<\/strong>\u00a0menu. Here, select the option to\u00a0<strong>Reinstall the GRUB boot loader<\/strong>\u00a0and press\u00a0<strong>[enter]<\/strong>\u00a0key to continue.<\/p>\n<div id=\"attachment_27224\" class=\"wp-caption aligncenter\">\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-27224\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/09\/Reinstall-Ubuntu-Grub-Loader.png\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/09\/Reinstall-Ubuntu-Grub-Loader.png 800w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/09\/Reinstall-Ubuntu-Grub-Loader-768x576.png 768w\" alt=\"Reinstall Ubuntu Grub Loader\" width=\"800\" height=\"600\" aria-describedby=\"caption-attachment-27224\" data-lazy-loaded=\"true\" \/><\/p>\n<p id=\"caption-attachment-27224\" class=\"wp-caption-text\">Reinstall Ubuntu Grub Loader<\/p>\n<\/div>\n<p><strong>14.<\/strong>\u00a0On the next screen, type your machine disk device where the GRUB will be installed and press\u00a0<strong>[Enter]<\/strong>\u00a0to continue, as shown in the below image.<\/p>\n<p>Usually, you should install the boot loader on your first machine hard disk MBR, which is \/<code>dev\/sda<\/code>\u00a0in most cases. The installation process of GRUB will start as soon as you hit the\u00a0<strong>Enter<\/strong>\u00a0key.<\/p>\n<div id=\"attachment_27225\" class=\"wp-caption aligncenter\">\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-27225\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/09\/Select-Disk-to-Install-Grub-Loader.png\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/09\/Select-Disk-to-Install-Grub-Loader.png 800w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/09\/Select-Disk-to-Install-Grub-Loader-768x576.png 768w\" alt=\"Select Disk to Install Grub Loader\" width=\"800\" height=\"600\" aria-describedby=\"caption-attachment-27225\" data-lazy-loaded=\"true\" \/><\/p>\n<p id=\"caption-attachment-27225\" class=\"wp-caption-text\">Select Disk to Install Grub Loader<\/p>\n<\/div>\n<p><strong>15.<\/strong>\u00a0After the live system installs the\u00a0<strong>GRUB boot loader<\/strong>\u00a0you will be directed back to main\u00a0<strong>rescue mode<\/strong>\u00a0menu. The only thing left now, after you\u2019ve successfully repaired your\u00a0<strong>GRUB<\/strong>, is to\u00a0<strong>reboot<\/strong>\u00a0the machine as shown in the below images.<\/p>\n<div id=\"attachment_27227\" class=\"wp-caption aligncenter\">\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-27227\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/09\/Installing-Ubuntu-Grub-Boot-Loader.png\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/09\/Installing-Ubuntu-Grub-Boot-Loader.png 800w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/09\/Installing-Ubuntu-Grub-Boot-Loader-768x576.png 768w\" alt=\"Installing Ubuntu Grub Boot Loader\" width=\"800\" height=\"600\" aria-describedby=\"caption-attachment-27227\" data-lazy-loaded=\"true\" \/><\/p>\n<p id=\"caption-attachment-27227\" class=\"wp-caption-text\">Installing Ubuntu Grub Boot Loader<\/p>\n<\/div>\n<div id=\"attachment_27226\" class=\"wp-caption aligncenter\">\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-27226\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/09\/Reboot-Ubuntu-System.png\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/09\/Reboot-Ubuntu-System.png 800w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/09\/Reboot-Ubuntu-System-768x576.png 768w\" alt=\"Reboot Ubuntu System\" width=\"800\" height=\"600\" aria-describedby=\"caption-attachment-27226\" data-lazy-loaded=\"true\" \/><\/p>\n<p id=\"caption-attachment-27226\" class=\"wp-caption-text\">Reboot Ubuntu System<\/p>\n<\/div>\n<p>Finally, eject the live bootable media from the appropriate drive, reboot the machine and you should be able to boot into the installed operating system. The first screen to appear should be installed operating system GRUB menu, as illustrated in the below screenshot.<\/p>\n<div id=\"attachment_27228\" class=\"wp-caption aligncenter\">\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-27228\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/09\/Ubuntu-Boot-Menu.png\" alt=\"Ubuntu Boot Menu\" width=\"640\" height=\"480\" aria-describedby=\"caption-attachment-27228\" data-lazy-loaded=\"true\" \/><\/p>\n<p id=\"caption-attachment-27228\" class=\"wp-caption-text\">Ubuntu Boot Menu<\/p>\n<\/div>\n<h3>Manually Reinstall Ubuntu Grub Boot Loader<\/h3>\n<p><strong>14.<\/strong>\u00a0However, if you like to manually reinstall the GRUB boot loader from\u00a0<strong>Rescue operations<\/strong>\u00a0menu, follow all the steps presented in this tutorial until you reach point 13, where you make the following changes: instead of choosing the option to reinstall GRUB boot loader, select the option which says\u00a0<strong>Execute a shell in \/dev\/(your_chosen_root_partition<\/strong>\u00a0and press\u00a0<strong>[Enter]<\/strong>\u00a0key to continue.<\/p>\n<div id=\"attachment_27229\" class=\"wp-caption aligncenter\">\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-27229\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/09\/Select-Execute-a-Shell-in-Root-Partition.png\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/09\/Select-Execute-a-Shell-in-Root-Partition.png 800w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/09\/Select-Execute-a-Shell-in-Root-Partition-768x576.png 768w\" alt=\"Select Execute a Shell in Root Partition\" width=\"800\" height=\"600\" aria-describedby=\"caption-attachment-27229\" data-lazy-loaded=\"true\" \/><\/p>\n<p id=\"caption-attachment-27229\" class=\"wp-caption-text\">Select Execute a Shell in Root Partition<\/p>\n<\/div>\n<p><strong>15.<\/strong>\u00a0On the next screen hit\u00a0<strong>Continue<\/strong>\u00a0by pressing\u00a0<strong>[enter]<\/strong>\u00a0key in order to open a shell in your root file system partition.<\/p>\n<div id=\"attachment_27230\" class=\"wp-caption aligncenter\">\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-27230\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/09\/Open-Shell-Mode.png\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/09\/Open-Shell-Mode.png 800w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/09\/Open-Shell-Mode-768x576.png 768w\" alt=\"Open Shell Mode\" width=\"800\" height=\"600\" aria-describedby=\"caption-attachment-27230\" data-lazy-loaded=\"true\" \/><\/p>\n<p id=\"caption-attachment-27230\" class=\"wp-caption-text\">Open Shell Mode<\/p>\n<\/div>\n<p><strong>16.<\/strong>\u00a0After the shell has been opened in the root file system, execute\u00a0<a href=\"https:\/\/www.tecmint.com\/tag\/linux-ls-command\/\" target=\"_blank\" rel=\"noopener\">ls command<\/a>\u00a0as presented below in order to identify your machine hard disk devices.<\/p>\n<pre># ls \/dev\/sd* \r\n<\/pre>\n<p>After you\u2019ve identified the correct hard disk device (usually the first disk should be\u00a0<code>\/dev\/sda<\/code>), issue the following command to install the GRUB boot loader on the identified hard disk MBR.<\/p>\n<pre># grub-install \/dev\/sda\r\n<\/pre>\n<p>After GRUB has been successfully installed leave the shell prompt by typing exit.<\/p>\n<pre># exit\r\n<\/pre>\n<div id=\"attachment_27231\" class=\"wp-caption aligncenter\">\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-27231\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/09\/Install-Ubuntu-Grub-Boot-Loader.png\" alt=\"Install Ubuntu Grub Boot Loader\" width=\"659\" height=\"270\" aria-describedby=\"caption-attachment-27231\" data-lazy-loaded=\"true\" \/><\/p>\n<p id=\"caption-attachment-27231\" class=\"wp-caption-text\">Install Ubuntu Grub Boot Loader<\/p>\n<\/div>\n<p><strong>17.<\/strong>\u00a0After you\u2019ve exited the shell prompt, you will be returned to main\u00a0<strong>rescue mode<\/strong>\u00a0menu. Here, choose the option to\u00a0<strong>reboot<\/strong>\u00a0the system, eject the live bootable ISO image and your installed operating system should be booted without any issue.<\/p>\n<div id=\"attachment_27232\" class=\"wp-caption aligncenter\">\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-27232\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/09\/Reboot-System.png\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/09\/Reboot-System.png 800w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/09\/Reboot-System-768x576.png 768w\" alt=\"Reboot System\" width=\"800\" height=\"600\" aria-describedby=\"caption-attachment-27232\" data-lazy-loaded=\"true\" \/><\/p>\n<p id=\"caption-attachment-27232\" class=\"wp-caption-text\">Reboot System<\/p>\n<\/div>\n<p>That\u2019s all! With a minimal effort you\u2019ve successfully rendered your Ubuntu machine the ability to boot the installed operating system.<\/p>\n<p><a style=\"font-size: 1rem;\" href=\"https:\/\/www.tecmint.com\/rescue-repair-and-reinstall-grub-boot-loader-in-ubuntu\/\" target=\"_blank\" rel=\"noopener\">Source<\/a><\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>This tutorial will guide you on how to rescue, repair or reinstall a damaged Ubuntu machine which cannot be booted due to the fact that the Grub2 boot loader has been compromised and cannot load the boot loader which transfers the control further to the Linux kernel. In all modern Linux operating systems GRUB is &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.appservgrid.com\/paw92\/index.php\/2019\/03\/28\/how-to-rescue-repair-and-reinstall-grub-boot-loader-in-ubuntu\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;How to Rescue, Repair and Reinstall GRUB Boot Loader in Ubuntu&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-12669","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/12669","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/comments?post=12669"}],"version-history":[{"count":1,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/12669\/revisions"}],"predecessor-version":[{"id":12670,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/12669\/revisions\/12670"}],"wp:attachment":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/media?parent=12669"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/categories?post=12669"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/tags?post=12669"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}