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 can't display, so it will automatically go into windows without any option to enter into ubuntu. So what's the solution?
- Run Ubuntu with live CD
- Then select Try Ubuntu without any change to your computer
- After entering through live CD, run terminal
- Type the command:
sudo su
- 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. - Create a directory to mount partition using this command:
mkdir /media/root
- Then mount linux partition into the directory using this command:
mount /dev/sda7 /media/root
- We check the contents of the directory /media/root by using the following command:
ls /media/root
- Install GRUB on mounted directory /media/root using the following command:
grub-install --root-directory=/media/root /dev/sda7
- If there is no error, please reboot your Ubuntu.
- Then GRUB menu will be display.
No comments :
Post a Comment