banner



How To Recover Ubuntu After Installing Windows

Ubuntu and many other Linux distributions use the GRUB2 boot loader. If GRUB2 breaks—for example, if yous install Windows subsequently installing Ubuntu, or overwrite your MBR—y'all won't be able to kicking into Ubuntu.

You lot tin easily restore GRUB2 from a Ubuntu live CD or USB bulldoze. This process is different from restoring the legacy Grub boot loader on older Linux distributions.

This process should work on all versions of Ubuntu. It's been tested on Ubuntu xvi.04 and Ubuntu 14.04.

The Graphical Method: Boot Repair

RELATED: How to Boot Your Reckoner From a Disc or USB Bulldoze

Boot Repair is a graphical tool that tin repair GRUB2 with a single click. This is the ideal solution to kick problems for about users.

If you take the media you installed Ubuntu from, insert it into your calculator, restart, and kicking from the removable drive. If you don't, download a Ubuntu alive CD and burn down it to a disc or create a bootable USB flash drive.

When Ubuntu boots, click "Endeavour Ubuntu" to become a usable desktop environs.

Ensure yous have an Internet connection before standing. You lot may need to cull a Wi-Fi network and enter its passphrase.

Open a Terminal window from the Dash and run the following commands to install and launch Boot Repair:

sudo apt-add-repository ppa:yannubuntu/boot-repair  sudo apt-go update  sudo apt-get install -y boot-repair  boot-repair

The Boot Repair window will automatically browse your organization after y'all run the boot-repair command. After it scans your system, click the "Recommended repair" button to repair GRUB2 with a single click.

You tin can choose to employ the advanced options here, but Ubuntu's wiki recommends you not use the advanced options unless you know what you're doing. The recommended repair option tin fix most problems automatically, and yous could mess up your system even more past selecting the incorrect advanced options.

Boot Repair volition brainstorm working. It may enquire you lot to open a Terminal and copy/paste a few commands into it.

Merely follow the instructions that appear on your screen. Perform the instructions Kick Repair wants you to and click "Frontwards" to go on through the wizard. The tool will walk y'all through everything you lot demand to do.

Restart your computer after the Boot Repair tool finishes applying its changes. Ubuntu should kicking up normally.

The Terminal Method

If y'all'd rather get your hands dirty, yous can practise this yourself from a terminal. Yous'll need to boot from a live CD or USB drive, as in the graphical method above. Ensure the version of Ubuntu on the CD is the same as the version of Ubuntu installed on your computer. For case, if y'all accept Ubuntu fourteen.04 installed, ensure yous utilize a Ubuntu 14.04 live CD.

Open a terminal afterward booting into the live environment. Identify the partition Ubuntu is installed on using one of the following commands:

sudo fdisk -l  sudo blkid

Here's the output of both commands. In the fdisk -l command, the Ubuntu partition is identified past the word Linux in the Arrangement column. In the blkid command, the partition is identified by its ext4 file system.

If you have multiple Linux ext4 partitions, you can get an idea of which is which by viewing the size of the partitions and their guild on the deejay here.

Run the following commands to mountain the Ubuntu partition at  /mnt/ubuntu, replacing /dev/sdX# with the device name of your Ubuntu partition from the higher up commands:

sudo mkdir /mnt/ubuntu  sudo mount /dev/sdX# /mnt/ubuntu

In the screenshot above, our Ubuntu segmentation is /dev/sda1. This means the first partition on the first difficult disk device.

Important: If you have a separate kicking partition, skip the in a higher place control and mountain the boot partition at /mnt/ubuntu/kicking instead. If yous don't know whether you accept a dissever boot partitioning, you probably don't.

Run the following command to reinstall chow from the live CD, replacing /dev/sdX with the device name of the hard disk above. Omit the number. For example, if y'all used /dev/sda1 in a higher place, use /dev/sda here.

sudo chow-install --kick-directory=/mnt/ubuntu/boot /dev/sdX

Restart your computer and Ubuntu should kicking properly.


For more than detailed technical information, including how to use the chroot command to gain admission to a broken Ubuntu system's files and restore GRUB2, consult the Ubuntu wiki.

Source: https://www.howtogeek.com/114884/how-to-repair-grub2-when-ubuntu-wont-boot/

Posted by: coolidgetherintord.blogspot.com

0 Response to "How To Recover Ubuntu After Installing Windows"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel