The other day, installing Ubuntu 12.04 on my sister’s laptop, something happened to me that had never happened to me before, after completing the shared installation with Windows 7 and restart the computer, it restarted without showing the grub of Linux and entering directly to Windows 7.
So to fix it I had to install the grub directly from the terminal and enable it to show us the operating systems installed on the computer and thus be able to select from it, with which we want start the system.
This tutorial will also help us for after an installation of Windows, recover the Linux grub, Since when installing Windows we will lose it again.
The process is quite simple to perform, we just have to restart our computer with the distro Ubuntu 12.04 Live CD or USB, And from it, access a new terminal and do the following:
Recovering the Linux grub
First of all it will be from our Live distro, open a terminal window and to Install the Linux Grub |:
- its aptitude install grub
Then we will update the Linux grub with the following command line:
With that you should have fixed the boot system from your computer through the grub of Linux, If at the restart you follow the same thing, do the same steps but changing the command grub by the of grub2.
Now when we restart the system, we can select which operating system installed on our computer we want Sign in now.
This will serve you for every time you lose the Linux grub, Which usually happens every time you install Windows on your computer as a Windows, The operating system of Microsoft, Does not like to share system with anyone, and that is why the disabling of the aforementioned Linux grub.
More information – How to create Live CD from a Linux distro with UNetbootin