D
D
DR_Demons2014-06-08 12:27:36
linux
DR_Demons, 2014-06-08 12:27:36

How to install grub2 after mbr to gpt conversion?

Hello! I converted mbr to gpt using the gdisk utility, the data remained, but the bootloader was lost (I have it from ubuntu 14.04 grub 2.02), tell me how can I install / restore it?
Thanks in advance!
ps using gparter, you can simply follow the description in the solution, but I didn’t create an unformatted partition, but just marked the partition at the beginning of the disk as bios grub and Linux easily picked up, but win7 does not want to boot. The question is still open, but it will probably be more relevant in a new topic.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
M
Maxim Moseychuk, 2014-06-08
@DR_Demons

You need to create an unformatted partition on the disk, 2 or more megabytes in size. Mark it with the "bios_grub" flag, and then install grub in the same way as on a regular mbr disk (namely, on a disk, not a partition, i.e. on sda).

N
Nazar Mokrinsky, 2014-06-08
@nazarpc

Boot from any flash drive, mount the root of the system anywhere, and execute:
/ dev / sda1 - system disk
/ mnt - where you mounted the root
In general, I recommend using uefi already, there is a grub-efi-amd64 package

I
Igor, 2014-06-08
@merryjane

You can try to boot from the LiveCD, mount the FS and get inside, then do a grub-install on the desired device.
Here are some more options:
ubuntologia.ru/blog/system/118.html

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question