8,560
edits
(Updating to match new version of source page) |
(Updating to match new version of source page) Tags: Mobile web edit Mobile edit |
||
Line 10: | Line 10: | ||
Boot up all other linux OS and at their terminals, do | Boot up all other linux OS and at their terminals, do | ||
sudo grub-install --force /dev/sdxy | {{UserCmd|command=sudo grub-install --force /dev/sdxy}} | ||
where /dev/sdxy is the other OS partition. Note some OS's need command 'grub2-install' | where /dev/sdxy is the other OS partition. Note some OS's need command 'grub2-install'. | ||
When installing a new linux OS, at their installer, always select "installing bootloader to partition". We can also choose not to install bootloader, but selecting 'to partition' (Manjaro calls this 'to system') is good enough and is preferable to have a bootloader installed at every OS. | When installing a new linux OS, at their installer, always select "installing bootloader to partition". We can also choose not to install bootloader, but selecting 'to partition' (Manjaro calls this 'to system') is good enough and is preferable to have a bootloader installed at every OS. | ||
Line 21: | Line 21: | ||
At any linux OS terminal, see output of | At any linux OS terminal, see output of | ||
efibootmgr | {{UserCmd|command=efibootmgr}} | ||
It will give an output like this: | It will give an output like this: | ||
{{UserCmdOutput|command=efibootmgr|result= | |||
<pre> | |||
BootCurrent: 0001 | BootCurrent: 0001 | ||
Timeout: 1 seconds | Timeout: 1 seconds | ||
Line 32: | Line 34: | ||
Boot0005* Hard Drive | Boot0005* Hard Drive | ||
Boot0008* Systemd Boot Manager | Boot0008* Systemd Boot Manager | ||
</pre> | |||
}} | |||
Make sure Manjaro bootorder is at the beginning as above: "BootOrder: 0001,0002,0004,0005,0008" | Make sure Manjaro bootorder is at the beginning as above: "BootOrder: 0001,0002,0004,0005,0008" | ||
If it is not, reorder such that it is, like this: | If it is not, reorder such that it is, like this: | ||
sudo efibootmgr -o 0001,0002,0004,0005,0008 | {{UserCmd|command=sudo efibootmgr -o 0001,0002,0004,0005,0008}} | ||
Whenever we install another OS, it will be at the top of that bootorder; and we will need to reorder such that Manjaro is again at the top. And we can do that at that install livecd media itself. If we forget, we can do it after installation at any OS. For UEFI, we can still select Manjaro to boot at boot-setup (one of F8 ~ F12). | Whenever we install another OS, it will be at the top of that bootorder; and we will need to reorder such that Manjaro is again at the top. And we can do that at that install livecd media itself. If we forget, we can do it after installation at any OS. For UEFI, we can still select Manjaro to boot at boot-setup (one of F8 ~ F12). | ||
Line 43: | Line 47: | ||
However in some situations (and reported in some topics here), it is not (possibly due to firmware issues). The above steps do not ensure that Manjaro bootorder will be booted up. In these cases, one extra command is required. | However in some situations (and reported in some topics here), it is not (possibly due to firmware issues). The above steps do not ensure that Manjaro bootorder will be booted up. In these cases, one extra command is required. | ||
sudo cp /boot/grub/x86_64-efi/core.efi /boot/efi/EFI/boot/bootx64.efi | {{UserCmd|command=sudo cp /boot/grub/x86_64-efi/core.efi /boot/efi/EFI/boot/bootx64.efi}} | ||
Or, if done at livecd (or another OS) and mounted / partition to /mnt and /boot/efi partition to /mnt/boot/efi | Or, if done at livecd (or another OS) and mounted / partition to /mnt and /boot/efi partition to /mnt/boot/efi | ||
sudo cp /mnt/boot/grub/x86_64-efi/core.efi /mnt/boot/efi/EFI/boot/bootx64.efi | {{UserCmd|command=sudo cp /mnt/boot/grub/x86_64-efi/core.efi /mnt/boot/efi/EFI/boot/bootx64.efi}} | ||
Copying /boot/efi/EFI/Manjaro/grubx64.efi instead of /boot/grub/x86_64-efi/core.efi can also accomplish the same thing because /boot/efi/EFI/Manjaro/grubx64.efi is itself a copy of /boot/grub/x86_64-efi/core.efi | Copying /boot/efi/EFI/Manjaro/grubx64.efi instead of /boot/grub/x86_64-efi/core.efi can also accomplish the same thing because /boot/efi/EFI/Manjaro/grubx64.efi is itself a copy of /boot/grub/x86_64-efi/core.efi | ||
Line 53: | Line 57: | ||
So doing this is also an alternative. | So doing this is also an alternative. | ||
sudo cp /boot/efi/EFI/Manjaro/grubx64.efi /boot/efi/EFI/boot/bootx64.efi | {{UserCmd|command=sudo cp /boot/efi/EFI/Manjaro/grubx64.efi /boot/efi/EFI/boot/bootx64.efi}} | ||
Doing this extra command where the extra command is not needed does not seem to harm the system. | Doing this extra command where the extra command is not needed does not seem to harm the system. | ||
Line 64: | Line 68: | ||
At the other OS grub 2 system, create a custom.cfg file | At the other OS grub 2 system, create a custom.cfg file | ||
{{UserCmd|command=sudo touch /boot/grub/custom.cfg}} | |||
Some OS's like Suse, Fedora, Mageia uses directory in /boot/grub2 not /boot/grub, so do so accordingly. | Some OS's like Suse, Fedora, Mageia uses directory in /boot/grub2 not /boot/grub, so do so accordingly. | ||
Then add the following in the newly created custom.cfg. No need to update-grub or change /etc/default/grub and will stand (persist) grub-installs or update-grubs. And of course persists to any new Manjaro kernel. Note this entry/entries will not be shown in their grub.cfg. | Then add the following in the newly created custom.cfg. No need to update-grub or change /etc/default/grub and will stand (persist) grub-installs or update-grubs. And of course persists to any new Manjaro kernel. Note this entry/entries will not be shown in their grub.cfg. | ||
menuentry "Manjaro - configfile " { | {{File|file=/boot/grub/custom.cfg|content= | ||
<pre> | |||
menuentry "Manjaro - configfile " { | |||
insmod part_gpt | insmod part_gpt | ||
part part_msdos | part part_msdos | ||
Line 76: | Line 82: | ||
configfile /boot/grub/grub.cfg | configfile /boot/grub/grub.cfg | ||
} | } | ||
</pre> | |||
}} | |||
btrfs will need additional tweeks (rootflag=subvolume=@) | btrfs will need additional tweeks (rootflag=subvolume=@) | ||
[[Category:Contents Page{{#translation:}}]] | [[Category:Contents Page{{#translation:}}]] |