Reinstall grub to a partition on efi system

Asked by viking777

Scenario: Efi boot. Boot partition on /dev/sda1, controlling grub on /dev/sda2, second distro on /dev/sda5 with grub installed to the partition. Grub on /dev/sda5 becomes faulty. How can I reinstall the grub of /dev/sda5 TO THE PARTITION /dev/sda5 using Boot Repair?

If I go to Advanced Options/Grub Location the section "Separate /boot/efi partition - sda1" is already checked. If I uncheck it I have the option to select "Separate /boot partition - sda5" except that sda5 is NOT a boot partition.There is no information that I can find that tells me what happens if I press 'Apply' in either of these situations. What I think will happen is in the first case that the grub from /dev/sda5 will be written to the mbr and replace the one from /dev/sda2 - this is NOT what I want, I want it installed on partition /dev/sda5 for chainloading purposes. In the second case I am pretty sure that nothing would boot at all.

 Is this even possible with Boot Repair?(if it isn't, can you change this from a question to a feature request).

This question is purely hypothetical as I have already solved the problem using grub alone, but I would like to know if it can be done with Boot Repair and if so how.

Question information

Language:
English Edit question
Status:
Answered
For:
Boot-Repair Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
YannUbuntu (yannubuntu) said :
#1

> How can I reinstall the grub of /dev/sda5 TO THE PARTITION /dev/sda5 using Boot Repair?

If UEFI is disabled, you can do it by ticking the "Force GRUB to: sda5" option.
AFAIK that's useless if UEFI is enabled.

> except that sda5 is NOT a boot partition.

this is a bug. Please create a bug report indicating your BootInfo URL ( https://help.ubuntu.com/community/Boot-Info )

> (...) Is this even possible with Boot Repair?

I don't understand this question, please reformulate.

Revision history for this message
viking777 (viking-f2s) said :
#2

YannUbuntu,

I have a bit of a conscience bothering you over hypothetical questions that are of minority interest, especially since I have already solved them using other tools. I will therefore leave it up to you, if you want to know more about this then please say so, otherwise I will leave it alone for now and consider it closed.

BTW there is no bug relating to boot partitions, that was a misunderstanding on my part, sorry about that.

Revision history for this message
YannUbuntu (yannubuntu) said :
#3

ok, no problem.

Joyeux Noël :)

Can you help with this problem?

Provide an answer of your own, or ask viking777 for more information if necessary.

To post a message you must log in.