In this article I'll evidence y'all how to restore your bootloader, your grub loader that allows you to switch betwixt Windows and Ubuntu – now the bootloader or the grub loader tin can disappear for a number of reasons. If you have Ubuntu running on your computer but y'all decide to install Windows after y'all install Ubuntu, the Bootloader volition be erased. Once you plough off your estimator and and so turn information technology back on, you will be landing on Windows !

That'south a serious upshot considering nosotros want to be able to switch between Ubuntu and Windows.

In order to prepare this issue we would need to create a bootable USB flash drive or hard drive of Ubuntu. Visit the Ubuntu website and download your Ubuntu flavor type. Information technology is recommended to download the 64 fleck version though. The download volition take a while…

In the concurrently we're going to download the programme called universal USB installer hither. Once you have downloaded the USB installer file, click on it and so printing Yes on whatsoever prompts.

Now if the Ubuntu file has finished downloading, you lot can select the Linux distribution from the drop-down. Make sure your USB is plugged in . Specify your USB drive as shown below and bank check the box "We will format [your USB drive ] as FAT32" :

Make sure beforehand to support any important files. Click on Create and press Yes. We are creating a USB because we want to become into Ubuntu Bootloader and try to fix it and then that nosotros become a kick menu to switch between Windows and Ubuntu.

Wait nearly 15-20 minutes equally it completes the creation of the USB. Now you can restart your computer and brand sure to open the kick carte and kick into your USB storage device [make certain it has the priority as shown beneath] :


You may be interested to read: How to install and uninstall applications on Ubuntu ? A Beginner's guide

Ubuntu boot repair

Once you are set up to make your pick, cull 'endeavour Ubuntu without installing' and wait until it loads up. This will bring you to a trial of Ubuntu to a version where basically it lives on that USB storage device. Open up a terminal and type in the command :

sudo add-apt-repository ppa:yannubuntu/boot-repair

So

sudo apt-get update

and finally write :

sudo apt-go install kicking-repair

This latter volition simply install kick repair. And so go ahead and blazon in the control :

boot-repair

This will open the boot repair program (see below). You would need to await a little until information technology loads up.

Kick repair Ubuntu

Now click on Recommend Repair .This will take a few minutes…

You will become a popup window request you to kicking up your computer. So go ahead and restart your machine. In the boot bill of fare you volition hopefully find Ubuntu along with your windows installations.

Customizing Grub Bootloader

In this section, we are going to customize the grub loader so that nosotros would be able to add our own menu entries and delete duplicates.

Then get ahead and log in into Ubuntu. Open up a terminal and type in the command

sudo fdisk – l

This will evidence the states all the available partitions on the electric current device. An example output is shown below:

At present effect the command :

cd /boot/grub/

So

sudo gedit grub.cfg

Which volition open the file chow.cfg. At present we look up for a windows menu entry. 1 of the partitions should comprise the windows files which you can check by displaying its content. Below you can see two windows menu entries :

Here is an example output with a Fedora installed :

You can delete the entry yous wish to remove by making a choice as shown higher up. This will delete the respective carte du jour entry. You lot can also remove other menu entries that you lot don't really use . The next time y'all reboot, you lot will detect in the boot bill of fare that the entry is gone.


If you lot similar the content, we would capeesh your back up by ownership usa a coffee. Cheers then much for your visit and support.

amin nahdy

Amin Nahdy, an aspiring software engineer and a computer geek by nature as well as an avid Ubuntu and open source user. He is interested in information technology peculiarly Linux based ecosystem every bit well as Windows and MacOS. He loves to share and disseminate knowledge to others in a transparent and responsible manner.

Ezoic