banner



How To Repair 16.04 Installation From Live Usb

Ubuntu Alive CD or a USB drive comes in handy at times when something goes wrong. Yous tin do things like recovering data, check for hard disk drive errors, or even restore the Chow bootloader.

It'south easier to mess up the Grub when you have changed the configuration of your computer. For instance, Grub can become inaccessible afterwards y'all installed Windows in a dual kicking configuration with a Linux distro because Windows Kick Manager takes over the bootloader and it doesn't recognize Linux. If you take an Ubuntu Live CD or USB bulldoze lying around, you can use information technology to reset bootloader so that Grub can retake the boot screen.

If you lot haven't created an Ubuntu Live USB drive withal, check out our guide "Creating Ubuntu Live USB drive" and come back and follow the steps:

Resetting Grub Bootloader using a Ubuntu Alive USB drive

This is a command-line way of restoring the grub. If "Terminal" is not your cup of tea, I suggest you check the graphical user interface fashion by using Grub Repair.

Pace 1. Insert your Ubuntu Live USB or CD, then ability on your machine.

Step two. From the Install window, choose the "Effort Ubuntu" option to open an Ubuntu live session.

Try Ubuntu
Endeavor Ubuntu

Pace three. Open a new terminal window from the left console or simply you lot can apply the next shortcut from your keyboard CTRL+ALT+T.

Step 4. First, we need to know which sectionalisation is Ubuntu installed. You can know where Ubuntu is installed by using the "fdisk" or the "blkid" command.

Using the "fdisk" command:

fdisk -l

Afterward executing the previous control, yous will get an output like the below screenshot. As you can see Ubuntu is installed on the "/dev/sda1" partition.

Determine the Partition on Which Ubuntu is Installed Using fdisk
Determine the Partition on Which Ubuntu is Installed Using fdisk

As well, you tin can check where Ubuntu is installed using the "blkid". The "blkid" command can provide you with more data about the partitions particularly if they are labeled.

sudo blkid

Subsequently executing the previous command, information technology will listing all partitions. Only search for the division with type "ext4". As yous can see in our case Ubuntu is installed on the "/dev/sda1" partition.

Determine the Partition on Which Ubuntu is Installed Using blkid
Determine the Partition on Which Ubuntu is Installed Using blkid

Step five. Next, we need to mount the partition where Ubuntu is installed to the "/mnt" mount point.

sudo mount /dev/sda1 /mnt
Mount The Partition with Ubuntu Installed On It
Mountain The Sectionalization with Ubuntu Installed On It

Equally shown in the above screenshot the "/dev/sda1" is mounted successfully.

Step six. Now we will use the "grub-install" command to restore all the missing files into the grub binder.

sudo grub-install --boot-directory=/mnt/boot /dev/sda
Restore Missing Grub Files Using the Grub Install Command
Restore Missing Grub Files Using the Grub Install Command

Finally, yous tin can now reboot your Ubuntu and the Grub boot card should now appear.

Congratulations you accept simply restored the Ubuntu Grub boot menu.

Source: https://www.fosslinux.com/4477/how-to-repair-the-grub-bootloader-using-a-ubuntu-live-usb-drive.htm

Posted by: braswellupostablike.blogspot.com

0 Response to "How To Repair 16.04 Installation From Live Usb"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel