Tuesday, September 26, 2017

Tutorial How to Fix Broken Ubuntu Boot GRUB

Tutorial How to Fix Broken Ubuntu Boot GRUB


Boot Loader is an application used to select the operating system. The function of boot loader will be visible if we use more than one operating system on a single computer. The linux boot loader called GRUB. GRUB is GRand Unified Bootloader, the powerful bootloader that can load various operating systems.

In Ubuntu, GRUB boot loader configuration file located in /boot/grub/menu.lst or /boot/grub/grub.cfg.

GRUB boot loader is broken because usually it happens on dual boot operating system. When you are after reinstall windows on dual booting, and existing GRUB cant display, so it will automatically go into windows without any option to enter into ubuntu. So whats the solution?

  1. Run Ubuntu with live CD
  2. Then select Try Ubuntu without any change to your computer
  3. After entering through live CD, run terminal
  4. Type the command:
    sudo su
  5.  Then type command:
    fdisk -l

    That command is used to display all disk partition. And then find your ubuntu partition. The linux partition is located in directory /dev/sda7.
  6. Create a directory to mount partition using this command:
    mkdir /media/root
  7. Then mount linux partition into the directory using this command:
    mount /dev/sda7 /media/root
  8. We check the contents of the directory /media/root by using the following command:
    ls /media/root

  9. Install GRUB on mounted directory /media/root using the following command:
    grub-install --root-directory=/media/root /dev/sda7
  10. If there is no error, please reboot your Ubuntu.
  11. Then GRUB menu will be display.


    download file now