S
S
SuperNatural2017-03-06 19:08:28
linux
SuperNatural, 2017-03-06 19:08:28

How to fix "grub-install: command not found" error?

Friends, I ask for advice. The server is on Centos 7. Now we replaced the disk in RAID1, created a partition, added it to the system
. On prescribing the bootloader, the system issues the following:
grub-install /dev/sda
-bash: grub-install: command not found
What does this mean and how to solve it? Thanks in advance.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry, 2017-03-06
@plin2s

This means that the system could not find the grub-install executable in the paths specified in $PATH
Try which grub-install.
On Ubuntu it is in /usr/sbin/grub-install
It is also possible that you should be using grub2-install.
CentOS is not at hand, there is nothing to check on.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question