How to reinstall GRUB 2 in case of a dual boot between Windows and Ubuntu, after reinstalling Windows - video tutorial

Hi friends, in today's tutorial you'll learn how to restore GRUB 2 if we use the Linux operating system Ubuntu or another Linux distribution that uses GRUB 2.
What is GRUB 2?
Granted 2 Unified Bootloader is the descendant of the first version of GRUB is the boot loader for Linux distributions. As Windows XP is NTLDR (NT Loader) and Windows 7 has BootMgr (Boot Manager) and just have a Linux boot loader called GRUB.
In which cases is to restore the GRUB?
When you have a dual boot (2 operating systems on the same PC) and for various reasons, the startup will not appear in the Boot Manager that you were able to choose which OS to boot). You've probably encountered situations where you had installed Windows XP, Vista or Ubuntu Linux 7 and on another partition, you formatted C and reinstalled the windows due to a virus and have noticed that on startup, although you have Ubuntu on a another partition, do not you wonder which OS you want to boot. That's because, when you reinstall Windows, it wiped out GRUB. As you know knows GRUB see Windows operating systems but no Windows boot loader knows to see Linux. So if you are thinking of a dual boot with Windows and Ubuntu or any Linux distribution, install Windows first and then install Ubuntu on another partition. A restore GRUB is necessary if you have made some updates to the system, an upgrade to a new kernel and after reboot, the operating system does not boot Ubuntu.
GRUB 2 is recommended to be installed on the primary hard drive (first hard drive - sda) if you want all installed operating systems to be available in a boot manager and at PC startup you can choose which operating system to enter . GRUB 2 can be installed on another hard drive (the second hard drive) but when you start the computer, if the hard drive on which you installed the GRUB is set in the BIOS as a secondary hard drive (Primary Slave or Secondary Slave) to have the boot manager from where you can choose the system to enter because when starting the PC, the search for an operating system is done on the first hard drive or the first partition (Primary Master). To access the operating system installed on the 2nd hard drive (assuming that GRUB 2 is also installed on the 2nd hard drive) you will need to put the 2nd hard drive in the BIOS as being the first (First Boot Device or 2 st Device) and so when starting the PC the boot will be done from hard drive 1 (I recommend watching Tutorial BIOS). In conclusion, whether you have a dual boot between a Windows and a Linux or Linux distributions between 2 PC startup and you can not enter the operating system or give you the opportunity to choose the operating system you want to sign is necessary restore GRUB. That being said I invite you along umrarim video tutorial. Do not forget, if you have suggestions, complaints or additions please write on the comment field, de-also met the comments box if a user has a problem and you can help it, do not hesitate to make only way we can do this place better, see the comments box!
Enjoy !

Adrian Burlugeanu.... linux.videotutorial.ro


Cristian Cismaru: I like everything related to IT&C, I like to share the experience and information I accumulate every day. I'm learning to teach you!

View Comments (35)

  • great tutorial!!
    I met several times issue AST and failed to restore GRUB
    Thanks a lot! you're the best!

  • Adrian Bravo very useful tutorial happened to me so after reinstalling xp not appear that menu and I nistalat and Linux

  • Useful information, thanks. I have a question (could also be a proposal for a future tutorial).
    I would like to customize GRUB. If say, I have a hard already has Windows XP installed, and in addition, install and ubuntu, every time you restart your computer you will be asked which OS to choose. Nothing unusual up here. But I'd like to put the Windows XP operating system priority (do not want to be ubuntu). I mean every time you restart the computer, if I will not choose the keys to choose which operating system, he automatically loads Windows XP. Ubuntu want to use it occasionally.
    Also 10 dialog seconds they choose which OS I want to upload it seems a little high. Probably 3-5 seconds should be more than enough.
    How could I do this?

    • View Product: Useful information, thanks. I have a question (could also be a proposal for a future tutorial).
      I would like to customize GRUB. If say, I have a hard already has Windows XP installed, and in addition, install and ubuntu, every time you restart your computer you will be asked which OS to choose. Nothing unusual up here. But I'd like to put the Windows XP operating system priority (do not want to be ubuntu). I mean every time you restart the computer, if I will not choose the keys to choose which operating system, he automatically loads Windows XP. Ubuntu want to use it occasionally.
      Also 10 dialog seconds they choose which OS I want to upload it seems a little high. Probably 3-5 seconds should be more than enough.
      How could I do this?  

      I will make a tutorial about this as well. I'm really glad that you're interested in Linux, I finally feel that my work makes sense, it's useful to someone ...

  • The tutorial is welcome. I'm glad you did this and in this way I thank the video tutorial team for the time allotted to teach others the "secrets of the PC" and more. and when you have time, tar.gz files, as they should be "installed" using the terminal. Thank you because with your help I also buttoned linux and I have dual boot, I will easily want to get rid of windows and use it only in proportion of 10% compared to Ubuntu. Regards a constant visitor of this site, to be healthy and to as many tutorials as possible.

  • Interesting .. I really wanted to know that. Very useful and easy to do. Explanations for everyone. Merci.

  • Very bun.La Welcome fix this tutorial.Am some prb with the win and wanted to reinstall but Tinus I remember from that tutorial that must be installed first and then win linux.Multumesc

  • Hello, I installed windows and ubuntu on separate hard drives each .. and I don't have grub at startup, the question would be if I give the order from the tutorial does it install my grub without problems? (the one with grub-install) thank you.

  • Useful information, thanks. I have a question (could also be a proposal for a future tutorial).
    I would like to customize GRUB. If say, I have a hard already has Windows XP installed, and in addition, install and ubuntu, every time you restart your computer you will be asked which OS to choose. Nothing unusual up here. But I'd like to put the Windows XP operating system priority (do not want to be ubuntu). I mean every time you restart the computer, if I will not choose the keys to choose which operating system, he automatically loads Windows XP. Ubuntu want to use it occasionally.
    Also 10 dialog seconds they choose which OS I want to upload it seems a little high. Probably 3-5 seconds should be more than enough.
    How could I do this?

    You can install from synaptic startupmanager and then you choose what you want to boot first!

  • good tutorial. but I have a question about this GRUB. I have windoes 7 on my laptop and I installed ubuntu as the 2nd operating system. but I installed it by myself on the same partition with windows- ul, in addition I installed it with wubi.exe. Then, when I made updates for Ubuntu, the system asked me something about something GRUB but not knowing what it was about, I checked everything. And after I restarted the laptop .... I had to enter some command and other things I didn't know. I uninstalled everything and just reinstalled windows. Ubuntu scared me. In conclusion I want to mention that the tutorial is good, but it does not refer to how we need to proceed when ubuntu is installed with wubi.exe. I am waiting for an answer. thank you

Related Post

This website uses cookies.