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.
-
1