If you are using a UEFI system you would need to adjust these instructions a little to allow for correct installation, start by getting the results of blkid again, this time you will need to look for the EFI boot partition as well as the OS partition, these are the results from my UEFI laptop /dev/sda1: LABEL="Recovery" UUID="72A4A907A4A8CEC3" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="2d5ad23c-d15e-4c7d-8806-ebcd1b89ac99" I am now ready to reboot the machine and can use it as normal. Now to clean up I unmount everything I previously mounted.
INSTALL GRUB ON USB INSTALL
This now places me in the environment of the system located at /dev/sda1, now I can re-install grub with the following code grub install /dev/sdaĪfter these two command have completed I have grub installed back into the Master Boot Record of the hard drive. Sudo mount -bind /dev/pts $TARGET/dev/pts With this information I can now prepare the system using the following commands TARGET=/mnt/sda1
dev/sda10: LABEL="OS3" UUID="76478f76-091c-4917-913a-ae243927259e" TYPE="ext4" PARTUUID="00123d72-0a"įrom this I can see that I want to use the partition /dev/sda1 which is my Q4OS Scorpion installation which is the OS I place in control of grub.
This should give you a listing of the partitions available on your machine something similar to the below example but probably with less partitions as I have 5 different OS’s installed here and 3 DATA partitions (I’m a complex guy ? ) /dev/sda1: LABEL="Scorpion" UUID="0ad7f291-160b-44e9-b3e2-8df28cfdb18c" TYPE="ext4" PARTUUID="00123d72-01" I start by running a Live-Cd on the machine that need grub installing, and open a terminal, I use Q4OS for this but these instructions should work with almost any Live Distribution.įirst we need to find out the root partition, this can be done by using the blkid command, you will need to be root to run this or if you have sudo installed you can use that. On occasion I have had to install grub from a Live-Cd when something has gone wrong or I have forgotten to install it during an OS install, below is the method I use to get it back.