In my case, what boot-repair did was re-install the GRUB2 boot loader with the commands: Remember, that the Pastebin post will expire in a couple of days, so make sure you give it a read soon, otherwise you’ll miss out on seeing what the tool did to fix GRUB2.
If you want to see what boot-repair did to your system, copy and paste the URL into a browser and give the report a read.įigure C Boot-repair has presented me with a URL so I can view the report. When the upload completes, boot-repair will present to you a URL that you can use to view the report ( Figure C). When the process completes, boot-repair will ask you if you want to upload the report to a pastebin ( Figure B).įigure B The boot-repair application has finished running it’s repairing process. The tool will run through the standard fixes for GRUB2. Start the newly installed app with the command:įigure A Running boot-repair via a Ubuntu live session.
Once the repository is added, update apt with the command:Īfter the apt update completes, install boot-repair with the command: Sudo apt-add-repository ppa:yannubuntu/boot-repair To do that, add the necessary repository with the command: What we’re going to do now is install a tool called boot-repair.
Once the desktop appears, make sure there’s a working network connection and open the terminal window.
How to repair GRUB2īoot the affected or test machine from the USB device and click Try Ubuntu. As the boot loader is GRUB2, you should be good to go–GRUB2 is the default boot loader in most Linux distributions. Although we’ll be using a Ubuntu Desktop live instance, the process will work, even if you’re repairing, say, Fedora or CentOS.
Note: The tool we are going to use will work on any system that uses GRUB2. Either way, make sure you’ve created your bootable USB device before you attempt this. I’m going to highly recommend you use the desktop version of Ubuntu–there’s a very handy graphical tool that can fix the problem. For that, you can use a tool like Pop!_OS Popsicle or the always faithful Unetbootin. You’ll also want to have a bootable USB device, with an instance of Ubuntu Desktop ready to boot. To that end, we’ll just use a working (test) instance of Ubuntu Server for this purpose. SEE: Linux service control commands (TechRepublic Premium) What you’ll needĭon’t wait until you have a failed instance of GRUB2 before you master this task. I’m going to walk you through the process of doing just that–repairing and reinstalling GRUB2, with the help of a Ubuntu Live USB device.
Because nothing can toast a sysadmin’s day like having to do a full OS reinstall and data restore on a mission-critical server. It’s probably going to be a very rare occasion when you need to repair or reinstall the GRUB2 bootloader on one of your data center Linux servers, but when that time comes, you will be glad for the knowledge. Master your server with these 7 informative resources (TechRepublic Premium) IBM is all in on hybrid cloud, and its new cloud modernization center wants to help you be, too How to test if your Linux server is vulnerable to Log4j Intel announces 12th generation Intel Core and 50 new processors at CES 2022