A
A
Alexander2021-04-05 07:42:27
linux
Alexander, 2021-04-05 07:42:27

How to add manjaro to grub next to archlinux?

Hello, there were 2 windows 10 and manjaro systems on the computer, I decided to install archlinux 3 with a system to dig deeper into it and possibly switch to it later. In the hornbeam, it turned out to display only arch and windows 10, now I want to understand how to add manjaro to the hornbeam? os prober installed.

I have the following structure:
- /dev/sda1 - windows bootloader
- /dev/sda5 - manjaro is the root partition
- /dev/sda8 - arch is installed here I

prescribe, mount /dev/sda8 /mnt
grub-install /dev/sda
grub- mkconfig -o /boot/grub/grub.cfg

As I understand what needs to be done mount /dev/sda5 , but I don’t understand where to mount it so that grub sees it, I tried to do
mount /dev/sda1 /mnt/windows as follows
mount /dev/sda5 /mnt/manjaro

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Damian Lewis, 2021-04-06
@DamianLewis

If you already have GRUB installed on the same Manjaro, you don't need to mount anything. Just update the GRUB bootloader.
In Manjaro, open a terminal and type:

sudo update-grub ---output=/mnt/boot/grub/grub.cfg

This command should ONLY be entered if you have boot files on a separate boot partition .
For example, on Mint it’s not like that for me and the boot files are in the root of the system. In this case, you need to enter without /mnt/:
sudo update-grub ---output=/boot/grub/grub.cfg

All partitions will be scanned and the systems found will be added to the bootloader.
If suddenly something goes wrong, although in theory it should not, then here it is described how to restore / reinstall the GRUB bootloader:
Restoring Grub2

Go directly to step 6
Good luck!

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question