I
I
Ilya Rodionov2017-06-16 22:00:10
linux
Ilya Rodionov, 2017-06-16 22:00:10

How to restore GRUB on an external HDD?

Guys!
There was a problem with the GRUB bootloader on my main HDD, which has a lot of information. The Linux server was spinning on the computer, and during the next update, I got rough.
When booting from live-cd, there are no results: the installer is rude and returns error 1.
So I put ubuntu server in a new way on another HDD.
What we have: /dev/sda - working clean hdd with new system and working rough and mounted /dev/sdb with non-working rough but important files and system, which is mounted as an external hard drive.
Now, being in a system with /dev/sda, I tried to put GRUB on /dev/sdb according to this instruction: http://help.ubuntu.ru/wiki/restoration_grub
And, unfortunately, nothing happened.
If I write the grub-install /dev/sdb command in the terminal, then it returns an error like this: (sorry for not using screenshots or text here)
1cf4bcf8d6bb446ba618c664d9cd7dd8.JPG
If I follow the instructions above and before writing that command, I mount /dev/sdb2 (sdb2 is a section with a Linux server), then it returns the following errors
18dfbbc150e24a0b9af44e02d76a3dd5.JPG
: Help me please. I don't understand what to do

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Moseychuk, 2017-06-16
@ZloyKishechnik

Your partition is GPT. So you either boot via UEFI, and then the bootloader is placed in the EFI partition.
Either you have legacy, but then you must have a Bios-boot partition. Bite off a 2 megabyte disk partition via gparted and create a bios-boot partition. Then continue installing the hornbeam.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question