Home | Looking for something? Sign In | New here? Sign Up | Log out

Sunday 8 August 2010

Restoring Grub2 After Installing Windows

/ On : 02:13/ Thank's For Visiting
Easy installation sequence for installing 2 operating system between Windows and Linux is to install Windows first and Linux because Linux is the next in charge of installing the Multi Boot Menu in the MBR (Master Boot Record). Discussion on Windows and Linux installations I will not explain here since a lot of tutorials in a virtual world that already explained about it. What I want to discuss is what if there is damage to the windows and forcing us to reinstall our windows. Will have to reinstall Linux as well? Hohoho there is no problem that there is no way out: D This is the case of my own experience. Previously there were two operating systems that I use is Windows XP and Ubuntu 10:04.

One time my computer up to viruses, more precisely, my windows: P that forced me to reinstall. After I did reinstall my windows turned out to multi-boot menu to choose whether you want to go Ubuntu or Windows has been missing since the installation of Windows earlier. Ok follow these steps will we do to recover GRUB2 (multi boot menu):



Booting using your ubuntu live cd and go into terminal and run command
$ sudo fdisk –l
See where the ubuntu system partition you are! For example on my hard drive system, Ubuntu is available at
/dev/sda4
Mount your ubuntu partition with the command
$ sudo mount/dev/sda4/mnt
Mounting all the existing partition with the command
$ sudo mount-bind /dev/mnt/dev
Come into the system that we have had with the mount command
$ sudo chroot /mnt
After our position in the root then we will not need to run the next command with the sudo prefix command


If you want to make changes to parameters in GRUB, edit the file / etc / default / grub with the command
# nano /etc/default/grub
Run update-grub to automatically generate configuration files
# update-grub
The latter is GRUB2 installation into the MBR (Master Boot Record) with the command
# grub-install /dev/sda

Once completed, restart your computer and see the menu you have returned GRUB2

* NB: Ubuntu is already using a version GRUB2 9:10 (Karmic Koala) upwards

0 comments:

Post a Comment

Don't forget to comment
Thank's

Label

appeareance (2) design (1) gimp (1) GPL (2) Graphic (2) Laptop (1) linux (5) office (1) opensource (3) ubuntu (4)