This brief tutorial is going to show you how to find out which partition GRUB is installed on in Ubuntu.
I recently wanted to upgrade GRUB in Ubuntu 12.04 (Precise Pangolin) but couldn’t tell for sure on which partition GRUB was installed. So, I decided to look online for help, and couldn’t come up with anything useful. I stumbled upon this script that makes it a lot easier to find out the partition GRUB is installed on and a lot more. So, if you need to re-install or upgrade GRUB in Ubuntu, look for this script to help you.
Objectives:
- Find out which partition GRUB is installed on
- Enjoy!
To get started, press Ctrl – Alt – T on your keyboard to open Terminal. When it opens, run the commands below to download the script.
wget http://downloads.sourceforge.net/project/bootinfoscript/bootinfoscript/0.61/bootinfoscript-061.tar.gz
Next, run the commands below to extract the archived file.
tar -xvf bootinfoscript-061.tar.gz
Then launch the script by running the commands below.
sudo ./bootinfoscript
The script will create a file called ‘RESULTS.txt’. Open it to read the results.
gedit RESULTS.txt
Enjoy!
The actual download location of the script can be found here. You can download it manually, then extract it and run the script from the command. The RESULTS.txt file will be saved in your home directory.