How to repair Ubuntu when it won’t boot
Posted by
Unknown
at
1:18 PM
How to repair Ubuntu when it won’t boot
You must know about Ubuntu.We have posted many article on Ubuntu.Many Linux distributions including Ubuntu are using GRUB2 boot loader.So if GRUB2 breaks your Ubuntu won’t boot.And you must be thinking your PC might be got corrupted.Every data stored on your hard drive is lost.But think again We can repair GRUB2 when Ubuntu won”t boot.So here will we be posting two method to repair GRUB2.Just follow these simple steps to get started.
Steps to repair Ubuntu when it won’t Boot
First of all you have to boot into Ubuntu Live Environment using CD or USB flash.Then you can choose any of the give method.Both methods will work.
Method 1.) Using Boot repair
Boot repair is the graphical tool which is made especially to solve boot problems when Ubuntu won’t boot.After booting into live environment open Terminal by pressing Ctrl+Alt+T.And type the following commands and press Enter.
sudo add-apt-repository ppa:yannubuntu/boot-repair
sudo apt-get update
sudo apt-get install -y boot-repair
boot-repair
sudo apt-get update
sudo apt-get install -y boot-repair
boot-repair
You have to enter these command one by one.Once you entered the boot-repair and hit enter Boot repair application will open.Then click on recommended repair and it will repair most of the boot problem.However you can click on Advance Options too where your can customize GRUB2 settings.
Method 2.) Using Terminal
You can also use terminal method to repair GRUB2 boot loader.This method is quite typical for beginners be careful when you are using this method.And other important thing is you should have some version bootable USB or CD for example you installed Ubuntu 14.04 then you must be having same version Bootable CD or USB i.e 14.04.The first steps is same just boot in Ubuntu Live environment.Then open terminal by pressing Ctrl+Alt+T and type the following command.
sudo fdisk -l
After that search for Linux.The Ubuntu partition is defined as Linux.
After that run the following command.
sudo mount /dev/sdX# /mnt
Now replace X# with name of your device where Ubuntu is installed for example in my case Ubuntu is installed in sda5 so I have to run the command ( sudo mount /dev/sda5 /mnt ) in the Terminal.If you have separate boot partition skip the command mention above and mount the boot partition at /mnt/boot.If you don’t know about this then you are not having different boot partition.After that you have to to re-install GRUB2 boot loader to re-install type the command mention below.
sudo grub-install –boot-directory=/mnt/boot /dev/sdX
Replace X with device name suppose if you used sda1 in the command mention below then you have to use /dev/sda here.Wait till the command complete and restart your computer.Now you computer should boot properly.Still facing any problem ? Feel free to contact us.Please share and subscribe to our newsletter to get latest updates directly in your inbox.
0 comments:
Post a Comment