How to Reinstall a Grub Loader

The Grub boot loader installs with Linux operating systems. Grub is the first program that loads when the computer boots up and provides a menu of installed operating systems; users select an operating system to boot in this menu or the default operating system starts automatically. Grub sometimes is corrupted or removed, often after you install Windows after a Linux operating system, since Windows replaces Grub with its own boot loader. Reinstall the Grub boot loader using your Linux operating system's disc, since your Linux operating system is not accessible if Grub needs reinstallation.

Instructions

    • 1

      Insert your Linux operating system's CD or DVD into your computer's disc drive and turn your computer on.

    • 2

      Open a Terminal once the Linux disc boots up by clicking "Applications," "Accessories" or "System Tools" and "Terminal."

    • 3

      List the partitions on your hard drive by typing "sudo fdisk -l" into the Terminal on Ubuntu Linux or "su -c "fdisk -l"" on other distributions of Linux and press "Enter." Type your password and press "Enter" when prompted.

    • 4

      Determine the partition of your Linux operating system by reading the output of the "fdisk -l" command; the appropriate partition is likely the largest one.

    • 5

      Mount the partition your Linux system is installed on by typing "sudo mount /dev/

      sdXY /mnt" into the Terminal on Ubuntu or "su -c "mount /dev/sdXY /mnt"" on other Linux operating systems, replacing "/dev/sdXY" with the appropriate partition code, for example "/dev/sda1," and pressing "Enter."

    • 6

      Reinstall Grub by typing "sudo grub-install --root-directory=/mnt/ /dev/sdX" into the Terminal on Ubuntu Linux or "su -c "grub-install --root-directory=/mnt/ /dev/sdX"" on other Linux operating systems, replacing "/dev/sdX" with the appropriate drive name, for example "/dev/sda," and pressing "Enter."

    • 7

      Restart your computer by typing "sudo reboot" into the Terminal on Ubuntu Linux or "su -c "reboot"" on other Linux distributions, and pressing "Enter." Remove the Linux CD or DVD when prompted.

    • 8

      Log in to your Linux system.

    • 9

      Open a Terminal by clicking "Applications," "Accessories" or "System Tools" and "Terminal."

    • 10

      Update Grub's menu by typing "sudo update-grub" into the Terminal on Ubuntu Linux or "su -c "update-grub"" on other Linux operating systems, and pressing "Enter." Type your password and press "Enter" when prompted.

Related Searches:

References

Comments

You May Also Like

  • Reinstalling GRUB After a Windows Install

    Installing Windows after Linux is already present on your system will undoubtedly remove GRUB (GRand Unified Bootloader) from the hard drive's MBR...

  • How to Reinstall Grub Bootloader

    Boot loaders are software programs that run before the operating system when you power on a computer. Boot loaders manage the process...

  • How to Reinstall Grub

    Grub, the Linux boot manager, allows you to select what operating system you would like your computer to load when it starts....

  • How to Boot From an SD Card

    You can boot a PC from a Secure Digital (SD) card if a PC-compatible operating system has been installed on the card....

  • How to Reinstall XP Bootloader

    Reinstalling Windows XP often means formatting your computer. However, due to viruses and hardware failure, all you may need to reinstall is...

  • How to Reinstall a MBR in Debian

    The Master Boot Record (MBR) is the very first 512 bytes of the main hard drive in your computer. It is what...

  • How to Make a Grub Bootable USB

    The GRUB bootloading software can be loaded onto a USB drive to save you the trouble of installing it on your computer....

  • How to Remove the Grub Boot Loader Without a CD

    Grand unified bootloader, or GRUB, is a software that runs after you turn your computer on. The Master Boot Record, or MBR,...

  • How to Remove GRUB From Boot Loaders

    GNU GRUB is a boot loader typically associated with a Linux installation. Some users prefer it to select certain loading procedures, while...

Related Ads

Featured