Learning Academy

The Cure of Ignorance is to Question. MUHAMMAD (PBUH)

Ubuntu

How to restore the Ubuntu grub bootloader (9.10 and beyond)?

How to restore the Ubuntu grub bootloader (9.10 and beyond)?

First you need to find out what your drives are called. You can do this by going to a terminal and typing:

Code:
sudo fdisk -l

From that you need to find the device name of your Ubuntu drive, something like “/dev/sda5″.
So, still in the terminal, type:

Code:
sudo mkdir /media/sda5 sudo mount /dev/sda5 /media/sda5

And then, to reinstall the grub:

Code:
sudo grub-install --root-directory=/media/sda5 /dev/sda

Push enter and you’re done! Of course you need to replace “/dev/sda5″ and “/dev/sda” with what you found in the fdisk output.

Muhammad Shaukat

Content Developer at LearnAcad.com

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Pin It on Pinterest